[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.
- [Bug ld/27923] ld: Support DT_RELR relative relocation format, hjl.tools at gmail dot com, 2021/10/18
- [Bug ld/27923] ld: Support DT_RELR relative relocation format,
hjl.tools at gmail dot com <=
- [Bug ld/27923] ld: Support DT_RELR relative relocation format, hjl.tools at gmail dot com, 2021/10/18
- [Bug ld/27923] ld: Support DT_RELR relative relocation format, fweimer at redhat dot com, 2021/10/25
- [Bug ld/27923] ld: Support DT_RELR relative relocation format, hjl.tools at gmail dot com, 2021/10/26
- [Bug ld/27923] ld: Support DT_RELR relative relocation format, hjl.tools at gmail dot com, 2021/10/29
- [Bug ld/27923] ld: Support DT_RELR relative relocation format, sam at gentoo dot org, 2021/10/29