• Michael Hudson-Doyle's avatar
    cmd/link: do not pass -no-pie to host linker when -linkshared is passed · 2d26a65f
    Michael Hudson-Doyle authored
    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: 's avatarIan Lance Taylor <iant@golang.org>
    2d26a65f
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...