diff options
author | Timothy Wall <twall@alum.mit.edu> | 2000-06-20 13:29:07 +0000 |
---|---|---|
committer | Timothy Wall <twall@alum.mit.edu> | 2000-06-20 13:29:07 +0000 |
commit | 74459f0e3ead9efad8aa29f2545b53e9c5f9988d (patch) | |
tree | cc6e8a64001a4a530b620ca7a1f906cabab653a9 /ld/testsuite | |
parent | 2ab47eed68c82a9a6d055ba3f49ca6a8a1dd2575 (diff) | |
download | gdb-74459f0e3ead9efad8aa29f2545b53e9c5f9988d.zip gdb-74459f0e3ead9efad8aa29f2545b53e9c5f9988d.tar.gz gdb-74459f0e3ead9efad8aa29f2545b53e9c5f9988d.tar.bz2 |
tic54x/ibmc54xdsp target for ld.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-checks/asm.s | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/script.exp | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/ld/testsuite/ld-checks/asm.s b/ld/testsuite/ld-checks/asm.s index ad5e177..86e7310 100644 --- a/ld/testsuite/ld-checks/asm.s +++ b/ld/testsuite/ld-checks/asm.s @@ -1,9 +1,9 @@ -.text + .text .global foo foo: .long 0x12345678 -.data + .data .global bar bar: .long 0x87654321 diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp index 9b66174..94c5d9b 100644 --- a/ld/testsuite/ld-scripts/script.exp +++ b/ld/testsuite/ld-scripts/script.exp @@ -24,11 +24,17 @@ proc check_script { } { verbose "bad output from nm" fail $testname } else { + set text_end 0x104 + set data_end 0x1004 + if [istarget *c54x*-*-*] then { + set text_end 0x102 + set data_end 0x1002 + } if {$nm_output(text_start) != 0x100} { send_log "text_start == $nm_output(text_start)\n" verbose "text_start == $nm_output(text_start)" fail $testname - } else { if {$nm_output(text_end) < 0x104 \ + } else { if {$nm_output(text_end) < $text_end \ || $nm_output(text_end) > 0x110} { send_log "text_end == $nm_output(text_end)\n" verbose "text_end == $nm_output(text_end)" @@ -37,7 +43,7 @@ proc check_script { } { send_log "data_start == $nm_output(data_start)\n" verbose "data_start == $nm_output(data_start)" fail $testname - } else { if {$nm_output(data_end) < 0x1004 \ + } else { if {$nm_output(data_end) < $data_end \ || $nm_output(data_end) > 0x1010} { send_log "data_end == $nm_output(data_end)\n" verbose "data_end == $nm_output(data_end)" |