|
From: | hjl.tools at gmail dot com |
Subject: | [Bug ld/31795] ld.bfd makes ELFs of type ET_EXEC for static PIEs when load address is non-0 |
Date: | Sun, 26 May 2024 14:39:00 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31795 --- Comment #29 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to mintsuki from comment #27) > This is the aforementioned other kernel's readelf -d output: > > > Dynamic section at offset 0x46b70 contains 13 entries: > Tag Type Name/Value > 0x0000000000000004 (HASH) 0xffffffff8003c140 > 0x000000006ffffef5 (GNU_HASH) 0xffffffff8003c150 > 0x0000000000000005 (STRTAB) 0xffffffff8003c138 > 0x0000000000000006 (SYMTAB) 0xffffffff8003c120 > 0x000000000000000a (STRSZ) 1 (bytes) > 0x000000000000000b (SYMENT) 24 (bytes) > 0x0000000000000015 (DEBUG) 0x0 > 0x0000000000000007 (RELA) 0xffffffff8003c170 > 0x0000000000000008 (RELASZ) 27264 (bytes) > 0x0000000000000009 (RELAENT) 24 (bytes) > 0x000000006ffffffb (FLAGS_1) Flags: PIE > 0x000000006ffffff9 (RELACOUNT) 1136 > 0x0000000000000000 (NULL) 0x0 > Your kernel contains the relocated addresses in dynamic section since its load address != 0. Try load address == 0, these addresses will be different. You need to decide how to handle addresses like 0x0000000000000007 (RELA) 0xffffffff8003c170 Should you add load address to them or not? -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |