]> git.ipfire.org Git - thirdparty/glibc.git/commit
debug: Link tst-sprintf-fortify-rdonly-static with -Wl,-z,relro [BZ 33183]
authorJohn David Anglin <danglin@gcc.gnu.org>
Thu, 24 Jul 2025 14:53:35 +0000 (10:53 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 24 Jul 2025 14:53:35 +0000 (10:53 -0400)
commitd21c8ba4795044ae863e832d0683ba10fec01c7c
tree9c8c2176edab055f3f80bf91c29d83dd60f29cb9
parent3ff17af18c38727b88d9115e536c069e6b5d601f
debug: Link tst-sprintf-fortify-rdonly-static with -Wl,-z,relro [BZ 33183]

This test requires relro_format be placed in the PT_GNU_RELRO segment.
The ELF linker enables -z relro support by default on all Linux targets
except FRV, HPPA, IA64 and MIPS. On these targets, we need to explicitly
link with -z relro to place relro_format in the PT_GNU_RELRO segment.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
debug/Makefile