[Bug dynamic-link/27924] ld.so: Support DT_RELR relative relocation format
hjl.tools at gmail dot com
sourceware-bugzilla@sourceware.org
Wed Jan 5 03:39:41 GMT 2022
https://sourceware.org/bugzilla/show_bug.cgi?id=27924
--- Comment #16 from H.J. Lu <hjl.tools at gmail dot com> ---
There is another problem. A static PIE with DT_RELR can have
0 DT_RELA entry when all relative relocations are in DT_RELR:
[hjl@gnu-tgl-3 DT_RELR-3]$ readelf -d x-static
Dynamic section at offset 0xbbd88 contains 24 entries:
Tag Type Name/Value
0x000000000000000c (INIT) 0x1000
0x000000000000000d (FINI) 0x8d630
0x0000000000000019 (INIT_ARRAY) 0xb9750
0x000000000000001b (INIT_ARRAYSZ) 8 (bytes)
0x000000000000001a (FINI_ARRAY) 0xb9758
0x000000000000001c (FINI_ARRAYSZ) 8 (bytes)
0x000000006ffffef5 (GNU_HASH) 0x368
0x0000000000000005 (STRTAB) 0x3a0
0x0000000000000006 (SYMTAB) 0x388
0x000000000000000a (STRSZ) 1 (bytes)
0x000000000000000b (SYMENT) 24 (bytes)
0x0000000000000015 (DEBUG) 0x0
0x0000000000000003 (PLTGOT) 0xbd000
0x0000000000000002 (PLTRELSZ) 576 (bytes)
0x0000000000000014 (PLTREL) RELA
0x0000000000000017 (JMPREL) 0x3a8
0x0000000000000007 (RELA) 0x0
0x0000000000000008 (RELASZ) 0 (bytes)
0x0000000000000009 (RELAENT) 24 (bytes)
0x000000006ffffffb (FLAGS_1) Flags: PIE
0x0000000000000024 (RELR) 0x5e8
0x0000000000000023 (RELRSZ) 312 (bytes)
0x0000000000000025 (RELRENT) 8 (bytes)
0x0000000000000000 (NULL) 0x0
[hjl@gnu-tgl-3 DT_RELR-3]$
ld.so doesn't work with 0 DT_RELA entry.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list