Commit 3bf14195 authored by David Crawshaw's avatar David Crawshaw

cmd/dist: test PIE internal linking on linux/amd64

Change-Id: I88dd0811db3a9864106def47b89848f5c8de94d4
Reviewed-on: https://go-review.googlesource.com/28545
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 675ba53c
......@@ -422,6 +422,18 @@ func (t *tester) registerTests() {
})
}
// Test internal linking of PIE binaries where it is supported.
if t.goos == "linux" && t.goarch == "amd64" {
t.tests = append(t.tests, distTest{
name: "pie_internal",
heading: "internal linking of -buildmode=pie",
fn: func(dt *distTest) error {
t.addCmd(dt, "src", "go", "test", "reflect", "-short", "-buildmode=pie", "-ldflags=-linkmode=internal", t.timeout(60), t.tags(), t.runFlag(""))
return nil
},
})
}
// sync tests
t.tests = append(t.tests, distTest{
name: "sync_cpu",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment