https://sourceware.org/bugzilla/show_bug.cgi?id=27923

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-cfl-2 tmp]$ gcc -pie -fPIE -O2 tst-relr.c
-Wl,--pack-dyn-relocs=relr -fuse-ld=lld
[hjl@gnu-cfl-2 tmp]$ ./a.out
Segmentation fault (core dumped)
[hjl@gnu-cfl-2 tmp]$

Given that the current lld implementation generates broken
binaries for existing glibc without any warning at run-time,
we need a different linker command line option to implement
it properly so that the new binary will fail to run on glibc
without DT_RELR support at run-time.

We can do "-z relr=glibc" which generates DT_RELR and adds a
glibc version dependency against the first version of glibc
with DT_RELR support.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to