]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: adjust ld-scripts/map-address.*
authorJan Beulich <jbeulich@suse.com>
Thu, 4 Mar 2021 15:56:40 +0000 (16:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 Mar 2021 15:56:40 +0000 (16:56 +0100)
commitd4e5db4e5031f1b4050620e2b5a4599ace52a29f
treeda30c6651de4b71df354c908f58dba7e45d0a304
parent6b5465b917ed37f7ce5e9bc0b91e07e7adaf101a
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.
ld/ChangeLog
ld/testsuite/ld-scripts/map-address.exp
ld/testsuite/ld-scripts/map-address.t