Support compilers defaulting to PIE
commit1eac409fb6e772a505d45e65b413be1e258dac94
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 14 Jan 2015 14:29:04 +0000 (14 06:29 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 7 Mar 2015 13:51:18 +0000 (7 05:51 -0800)
treec82f6b5d55a2c23dda7c69ad90b38582d4320e62
parent75adf430d2d7ee16eaf3166680de83b498444720
Support compilers defaulting to PIE

If PIE is the default, we need to build programs as PIE.

[BZ #17841]
* Makeconfig (no-pie-ldflag): New.
(+link): Set to $(+link-pie) if default to PIE.
(+link-tests): Set to $(+link-pie-tests) if default to PIE.
* config.make.in (build-pie-default): New.
* configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
is default.  AC_SUBST.
* configure: Regenerated.
* elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
Makeconfig
config.make.in
configure
configure.ac
elf/Makefile