Fix linker tests to work with 16-bit targets.
authorStephen Casner <casner@acm.org>
Tue, 21 Apr 2020 14:10:52 +0000 (15:10 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 21 Apr 2020 14:10:52 +0000 (15:10 +0100)
commit39a7b38fac0e6e90baa3d661a271377db3ba1765
tree7773ee3c91298bde03a43c7558b6a2513b9fc28c
parentd89edf9b811ac3c5643b8a866c238a93f35a5e6c
Fix linker tests to work with 16-bit targets.

PR 25829
* testsuite/ld-scripts/script.exp (check_script)
(extract_symbol_test): Make test addresses fit in 16 bits.
* testsuite/ld-scripts/memory.t: Likewise.
* testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
* testsuite/ld-scripts/default-script.t (_START): Likewise.
* testsuite/ld-scripts/default-script1.d: Likewise.
* testsuite/ld-scripts/default-script2.d: Likewise.
* testsuite/ld-scripts/default-script3.d: Likewise.
* testsuite/ld-scripts/default-script4.d: Likewise.
* testsuite/ld-scripts/empty-address-1.t: Likewise.
* testsuite/ld-scripts/empty-address-1.d: Likewise.
* testsuite/ld-scripts/empty-address-2a.d: Likewise.
* testsuite/ld-scripts/empty-address-2b.d: Likewise.
* testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
fit target address size.
  * testsuite/ld-scripts/empty-address-1.s: Likewise.
* testsuite/ld-scripts/empty-address-2.s: Likewise.
16 files changed:
ld/ChangeLog
ld/testsuite/ld-misc/start.s
ld/testsuite/ld-scripts/default-script.t
ld/testsuite/ld-scripts/default-script1.d
ld/testsuite/ld-scripts/default-script2.d
ld/testsuite/ld-scripts/default-script3.d
ld/testsuite/ld-scripts/default-script4.d
ld/testsuite/ld-scripts/empty-address-1.d
ld/testsuite/ld-scripts/empty-address-1.s
ld/testsuite/ld-scripts/empty-address-1.t
ld/testsuite/ld-scripts/empty-address-2.s
ld/testsuite/ld-scripts/empty-address-2a.d
ld/testsuite/ld-scripts/empty-address-2b.d
ld/testsuite/ld-scripts/memory.t
ld/testsuite/ld-scripts/memory_sym.t
ld/testsuite/ld-scripts/script.exp