diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-03-04 16:55:01 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-03-04 16:55:01 +0100 |
commit | 6fa7408d72b3805536e3579ba46b48f07f2e780a (patch) | |
tree | 4bf2a749afaa5ad0866b5659d2f4f6534fad2d5d /bfd | |
parent | 1178743e4c05d9c0daad5a105277fbc42872c9ea (diff) | |
download | gdb-6fa7408d72b3805536e3579ba46b48f07f2e780a.zip gdb-6fa7408d72b3805536e3579ba46b48f07f2e780a.tar.gz gdb-6fa7408d72b3805536e3579ba46b48f07f2e780a.tar.bz2 |
ld: don't generate base relocations in PE output for absolute symbols
It is the very nature of absolute symbols that they don't change even
if the loader decides to put the image at other than its link-time base
address. Of the linker-defined (and PE-specific) symbols __image_base__
(and its alias) needs special casing, as it'll still appear to be
absolute at this point.
A new inquiry function in ldexp.c is needed because PE base relocations
get generated before ldexp_finalize_syms() runs, yet whether a
relocation is needed depends on the ultimate property of a symbol.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions