bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/31795] ld.bfd makes ELFs of type ET_EXEC for static PIEs when lo


From: mintsuki at protonmail 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:33:21 +0000

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

--- Comment #27 from mintsuki <mintsuki at protonmail dot com> ---
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


And then:

Relocation section '.rela.dyn' at offset 0x3c170 contains 1136 entries:
  Offset          Info           Type           Sym. Value    Sym. Name +
Addend
ffffffff80042bf8  000000000008 R_X86_64_RELATIVE                    -7ffbc3a0
ffffffff80042c08  000000000008 R_X86_64_RELATIVE                    -7ffbc300
ffffffff80043c60  000000000008 R_X86_64_RELATIVE                    -7ffcaa06
ffffffff80043c70  000000000008 R_X86_64_RELATIVE                    -7fffc3a0
ffffffff80043d00  000000000008 R_X86_64_RELATIVE                    -7ffca920
ffffffff80043d10  000000000008 R_X86_64_RELATIVE                    -7fff8670
ffffffff80043ea0  000000000008 R_X86_64_RELATIVE                    -7ffca12c
ffffffff80043ea8  000000000008 R_X86_64_RELATIVE                    -7ffca119
ffffffff80043eb0  000000000008 R_X86_64_RELATIVE                    -7ffca113
ffffffff80043eb8  000000000008 R_X86_64_RELATIVE                    -7ffca10f
ffffffff80043ec0  000000000008 R_X86_64_RELATIVE                    -7ffca104
ffffffff80043ec8  000000000008 R_X86_64_RELATIVE                    -7ffca0fb
ffffffff80043ed0  000000000008 R_X86_64_RELATIVE                    -7ffca0e6
ffffffff80043ed8  000000000008 R_X86_64_RELATIVE                    -7ffca0d7
... continues ...

-- 
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]