aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql.go
diff options
context:
space:
mode:
authorMichael Hudson-Doyle <michael.hudson@canonical.com>2018-04-05 10:07:41 +1200
committerMichael Hudson-Doyle <michael.hudson@canonical.com>2018-04-12 10:21:35 +0000
commit2d26a65f8f1a6fcb0948803589061d99b94fa993 (patch)
treeb735c9ded6a12976a61e5e8b004cc6e1fa98b33f /src/database/sql/sql.go
parent94ef1dafbd9b490bdf7fc40b33df8399eea03b8e (diff)
downloadgo-2d26a65f8f1a6fcb0948803589061d99b94fa993.tar.xz
cmd/link: do not pass -no-pie to host linker when -linkshared is passed
As the comment above the code I'm changing says, when building with -buildmode=exe, the default compiler flags produce code incompatible with PIE. But when -linkshared is passed, the default compiler flags are not used so this does not apply. And now I've found a system (linux/arm64 with glibc 2.27) where this combination of flags causes a problem, albeit for reasons I don't really understand, so stop passing -no-pie when -linkshared is passed. Change-Id: I412ec7941dc0cb89e6d1b171fc29288aadcb9f20 Reviewed-on: https://go-review.googlesource.com/104815 Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/database/sql/sql.go')
0 files changed, 0 insertions, 0 deletions