bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/27923] ld: Support DT_RELR relative relocation format


From: hjl.tools at gmail dot com
Subject: [Bug ld/27923] ld: Support DT_RELR relative relocation format
Date: Mon, 18 Oct 2021 14:45:41 +0000

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

[Prev in Thread] Current Thread [Next in Thread]