1
0
mirror of https://github.com/golang/go synced 2024-11-19 21:04:43 -07:00
go/misc/cgo/testcarchive
Lynn Boger c15c44ec48 misc/cgo/testcarchive: use -no-pie where needed
Starting in gcc 6, -pie is passed to the linker by default
on some platforms, including ppc64le. If the objects
being linked are not built for -pie then in some cases the
executable could be in error. To avoid that problem, -no-pie
should be used with gcc to override the default -pie option
and generate a correct executable that can be run without error.

Fixes #22126

Change-Id: I4a052bba8b9b3bd6706f5d27ca9a7cebcb504c95
Reviewed-on: https://go-review.googlesource.com/70072
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-10-11 21:01:45 +00:00
..
src runtime: enable/disable SIGPROF if needed when profiling 2017-02-09 18:53:34 +00:00
carchive_test.go misc/cgo/testcarchive: use -no-pie where needed 2017-10-11 21:01:45 +00:00
main2.c runtime: handle SIGPIPE in c-archive and c-shared programs 2017-02-03 20:07:36 +00:00
main3.c misc/cgo/testcarchive: add missing header 2017-03-09 16:42:46 +00:00
main4.c misc/cgo: decrease test failure timeouts 2016-11-17 16:31:34 +00:00
main5.c runtime: handle SIGPIPE in c-archive and c-shared programs 2017-02-03 20:07:36 +00:00
main6.c runtime: enable/disable SIGPROF if needed when profiling 2017-02-09 18:53:34 +00:00
main_unix.c misc/cgo/testcarchive: split main.c into unix and non-unix 2016-03-26 00:57:23 +00:00
main_windows.c misc/cgo/testcarchive: split main.c into unix and non-unix 2016-03-26 00:57:23 +00:00
main.c misc/cgo/testcarchive: split main.c into unix and non-unix 2016-03-26 00:57:23 +00:00