glibc/scripts
Siddhesh Poyarekar 23645707f1 Replace --enable-static-pie with --disable-default-pie
Build glibc programs and tests as PIE by default and enable static-pie
automatically if the architecture and toolchain supports it.

Also add a new configuration option --disable-default-pie to prevent
building programs as PIE.

Only the following architectures now have PIE disabled by default
because they do not work at the moment.  hppa, ia64, alpha and csky
don't work because the linker is unable to handle a pcrel relocation
generated from PIE objects.  The microblaze compiler is currently
failing with an ICE.  GNU hurd tries to enable static-pie, which does
not work and hence fails.  All these targets have default PIE disabled
at the moment and I have left it to the target maintainers to enable PIE
on their targets.

build-many-glibcs runs clean for all targets.  I also tested x86_64 on
Fedora and Ubuntu, to verify that the default build as well as
--disable-default-pie work as expected with both system toolchains.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2021-12-13 08:08:59 +05:30
..
abi-versions.awk Remove bitrotten --enable-oldest-abi (bug 6652). 2014-09-16 17:45:03 +00:00
abilist.awk nptl_db: Re-use the ELF-to-abilist converter for ABI checking 2021-06-29 22:17:08 +02:00
backport-support.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
build-many-glibcs.py Replace --enable-static-pie with --disable-default-pie 2021-12-13 08:08:59 +05:30
check-c++-types.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
check-execstack.awk check-execstack: Permit sysdeps to xfail some libs 2018-07-20 03:28:14 +02:00
check-initfini.awk Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
check-installed-headers.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
check-local-headers.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
check-localplt.awk Extend local PLT reference check 2015-07-29 11:58:06 -07:00
check-obsolete-constructs.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
check-textrel.awk Do check-textrel test using readelf rather than a build-time C program. 2012-05-01 13:27:11 -07:00
check-wrapper-headers.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
check-wx-segment.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
config-uname.sh Rejigger header generation for default uname implementation. 2010-08-24 11:56:52 -07:00
config.guess Update miscellaneous files from upstream sources. 2019-01-01 00:52:59 +00:00
config.sub Update miscellaneous files from upstream sources. 2019-01-01 00:52:59 +00:00
cpp Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
cross-test-ssh.sh tst: Extend cross-test-ssh.sh to specify if target date can be altered 2021-03-08 22:37:16 +01:00
documented.sh Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
dso-ordering-test.py dso-ordering-test.py: Put all sources in one directory [BZ #28550] 2021-11-15 11:53:40 -08:00
evaluate-test.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
firstversions.awk Fix bug in firstversions.awk version range handling. 2012-01-28 12:02:44 -05:00
gen-as-const.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gen-libc-abis Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
gen-libc-modules.awk Auto-generate libc-modules.h 2014-11-19 12:16:00 +05:30
gen-posix-conf-vars.awk Remove uses of sprintf in gen-posix-conf-vars.awk 2015-01-02 11:16:35 +05:30
gen-rrtypes.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gen-sorted.awk Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
gen-tunables.awk elf: Avoid RELATIVE relocs in __tunables_init 2021-01-21 14:05:15 +00:00
glibc_shared_code.py Port shared code information from the wiki 2021-09-03 22:00:37 +05:30
glibcextract.py glibcextract.py: Place un-assemblable @@@ in a comment 2021-10-19 09:58:16 -07:00
glibcsymbols.py glibcymbols.read_abilist: Add check for duplicate symbols 2021-03-16 15:57:16 +01:00
haveversions.awk Don't build libnsl for new ABIs 2018-09-24 10:23:10 +02:00
install-sh Update miscellaneous files from upstream sources. 2018-12-06 17:21:47 +00:00
lib-names.awk Clean up gnu/lib-names.h generation (bug 14171). 2014-09-26 17:33:04 +00:00
list-fixed-bugs.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
list-sources.sh Update scripts/list-sources.sh for ports repository merge. 2014-06-26 21:30:07 +00:00
localplt.awk Support PLT and GOT references in local PIC check 2015-10-14 06:00:02 -07:00
merge-test-results.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mkinstalldirs Update miscellaneous files from upstream sources. 2018-12-06 17:21:47 +00:00
move-if-change Sync move-if-change from Gnulib 2021-01-02 12:43:58 -08:00
move-symbol-to-libc.py scripts/glibcsymbols.py: Extract from scripts/move-symbol-to-libc.py 2021-03-16 15:57:04 +01:00
pylint Implement benchmarking script in python 2014-03-21 17:32:50 +05:30
pylintrc pylintrc: disable reports 2015-11-11 13:41:57 -05:00
rellns-sh Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
soversions.awk Remove bitrotten --enable-oldest-abi (bug 6652). 2014-09-16 17:45:03 +00:00
sysd-rules.awk sysd-rules: Cut down the number of rtld-% pattern rules 2016-09-20 10:41:05 +02:00
test_printers_common.py Allow gdb version 10 in pretty printer tests. 2021-03-11 14:08:07 +01:00
test_printers_exceptions.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-installation.pl Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
update-abilist.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
update-copyrights Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
vcstocl_quirks.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
versionlist.awk Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
versions.awk Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30