Browse Source
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.binutils-2_35-branch
committed by
Nick Clifton
16 changed files with 60 additions and 31 deletions
@ -1,9 +1,11 @@ |
|||
# source: default-script.s |
|||
# ld: -defsym _START=0x8000000 -T default-script.t |
|||
# ld: -defsym _START=0x800 -T default-script.t |
|||
# nm: -n |
|||
# skip: *-*-mingw64 x86_64-*-cygwin |
|||
# Skipped on Mingw64 and Cygwin because the image base defaults to 0x100000000 |
|||
|
|||
#... |
|||
0*8000000 . _START |
|||
0*800 . _START |
|||
#... |
|||
0*8000000 T text |
|||
0*800 T text |
|||
#pass |
|||
|
|||
@ -1,9 +1,11 @@ |
|||
# source: default-script.s |
|||
# ld: -T default-script.t -defsym _START=0x8000000 |
|||
# ld: -T default-script.t -defsym _START=0x800 |
|||
# nm: -n |
|||
# skip: *-*-mingw64 x86_64-*-cygwin |
|||
# Skipped on Mingw64 and Cygwin because the image base defaults to 0x100000000 |
|||
|
|||
#... |
|||
0*8000000 . _START |
|||
0*800 . _START |
|||
#... |
|||
0*9000000 T text |
|||
0*900 T text |
|||
#pass |
|||
|
|||
@ -1,9 +1,11 @@ |
|||
# source: default-script.s |
|||
# ld: -defsym _START=0x8000000 -dT default-script.t |
|||
# ld: -defsym _START=0x800 -dT default-script.t |
|||
# nm: -n |
|||
# skip: *-*-mingw64 x86_64-*-cygwin |
|||
# Skipped on Mingw64 and Cygwin because the image base defaults to 0x100000000 |
|||
|
|||
#... |
|||
0*8000000 . _START |
|||
0*800 . _START |
|||
#... |
|||
0*8000000 T text |
|||
0*800 T text |
|||
#pass |
|||
|
|||
@ -1,9 +1,11 @@ |
|||
# source: default-script.s |
|||
# ld: --default-script default-script.t -defsym _START=0x8000000 |
|||
# ld: --default-script default-script.t -defsym _START=0x800 |
|||
# nm: -n |
|||
# skip: *-*-mingw64 x86_64-*-cygwin |
|||
# Skipped on Mingw64 and Cygwin because the image base defaults to 0x100000000 |
|||
|
|||
#... |
|||
0*8000000 . _START |
|||
0*800 . _START |
|||
#... |
|||
0*8000000 T text |
|||
0*800 T text |
|||
#pass |
|||
|
|||
@ -1,5 +1,5 @@ |
|||
.text |
|||
.global _start |
|||
_start: |
|||
.long __data_start |
|||
.long __data_end |
|||
.dc.a __data_start |
|||
.dc.a __data_end |
|||
|
|||
@ -1,5 +1,5 @@ |
|||
.text |
|||
.global _start |
|||
_start: |
|||
.long __data_end |
|||
.dc.a __data_end |
|||
.p2align 4 |
|||
|
|||
Loading…
Reference in new issue