diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-04-11 11:30:31 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-04-22 10:59:03 +0200 |
commit | 198abcbb94618730dae1b3f4393efaa49e0ec8c7 (patch) | |
tree | 80c663ec8c907fe0c25d83e3fac5362bc4424ecb /INSTALL | |
parent | 30035d67728a846fa39749cd162afd278ac654c4 (diff) | |
download | glibc-198abcbb94618730dae1b3f4393efaa49e0ec8c7.tar.gz glibc-198abcbb94618730dae1b3f4393efaa49e0ec8c7.tar.xz glibc-198abcbb94618730dae1b3f4393efaa49e0ec8c7.zip |
Default to --with-default-link=no (bug 25812)
This is necessary to place the libio vtables into the RELRO segment. New tests elf/tst-relro-ldso and elf/tst-relro-libc are added to verify that this is what actually happens. The new tests fail on ia64 due to lack of (default) RELRO support inbutils, so they are XFAILed there.
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL index 63c022d6b9..b68884ccd6 100644 --- a/INSTALL +++ b/INSTALL @@ -90,6 +90,12 @@ if 'CFLAGS' is specified it must enable optimization. For example: library will still be usable, but functionality may be lost--for example, you can't build a shared libc with old binutils. +'--with-default-link=FLAG' + With '--with-default-link=yes', the build system does not use a + custom linker script for linking shared objects. The default for + FLAG is the opposite, 'no', because the custom linker script is + needed for full RELRO protection. + '--with-nonshared-cflags=CFLAGS' Use additional compiler flags CFLAGS to build the parts of the library which are always statically linked into applications and |