• Lynn Boger's avatar
    cmd/dist: use -buildmode=pie for pie testing · ca8c361d
    Lynn Boger authored
    Some tests in misc/cgo/test are run with various options including
    '-linkmode=external "-extldflags=-pie"'. On ppc64x passing -pie to
    the external linker with code that was not compiled as position
    independent is incorrect. This works by luck in many cases but is
    not guaranteed to work. I suspect it is an issue on other targets
    as well.
    
    This will now run the tests using -buildmode=pie for the platforms
    that support that buildmode option.
    
    Fixes #21954
    
    Change-Id: I25fc7573f2d3cb5b0d1c691a0ac91aef7715404f
    Reviewed-on: https://go-review.googlesource.com/66870
    Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    ca8c361d
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...