]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld/PE: no base relocs for section (relative) ones
authorJan Beulich <jbeulich@suse.com>
Mon, 23 Sep 2024 13:26:29 +0000 (15:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Sep 2024 13:26:29 +0000 (15:26 +0200)
commit72cd2c70977943054ff784b7278cef5262288f32
tree9d49f5e9745eb7596a4348d2fd5e5848f682d5d5
parente02f4847761b2d80309b7ca1f7b90b4fb8caf96a
ld/PE: no base relocs for section (relative) ones

Even more so than image relative (RVA) relocations, section relative
ones as well as section ones should not have base relocations created in
the final PE image. Reportedly section relative relocations will want
using for TLS support in the (Windows) compiler.

While there also correct the names for two of the "image base" relocs.
ld/pe-dll.c
ld/testsuite/ld-pe/pe.exp
ld/testsuite/ld-pe/secidx-reloc.d [new file with mode: 0644]
ld/testsuite/ld-pe/secrel-reloc.d [new file with mode: 0644]