diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-03-04 16:56:40 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-03-04 16:56:40 +0100 |
commit | d4e5db4e5031f1b4050620e2b5a4599ace52a29f (patch) | |
tree | da30c6651de4b71df354c908f58dba7e45d0a304 /ld/ChangeLog | |
parent | 6b5465b917ed37f7ce5e9bc0b91e07e7adaf101a (diff) | |
download | gdb-d4e5db4e5031f1b4050620e2b5a4599ace52a29f.zip gdb-d4e5db4e5031f1b4050620e2b5a4599ace52a29f.tar.gz gdb-d4e5db4e5031f1b4050620e2b5a4599ace52a29f.tar.bz2 |
ld: adjust ld-scripts/map-address.*
Without setting an image base address and without naming at least .text,
this test produces entirely bogus PE output. To be honest, even the ELF
output looks odd: .text gets placed at 0x10204, and both foo and bar get
associated with .text despite living below its start address.
Since neither image base nor .text placement are the subject of this
test, specify .text placement explicitly and in the PE case force the
image base to zero.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r-- | ld/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 95bb3f6..c451af0 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,11 @@ 2021-03-04 Jan Beulich <jbeulich@suse.com> + * testsuite/ld-scripts/map-address.exp: Set image base to zero + for PE/COFF. + * testsuite/ld-scripts/map-address.t: Place .text. + +2021-03-04 Jan Beulich <jbeulich@suse.com> + * ldexp.c (ldexp_is_final_sym_absolute): New. * ldexp.h (ldexp_is_final_sym_absolute): Declare. * pe-dll.c (generate_reloc): Skip absolute symbols. |