diff options
author | Nick Clifton <nickc@redhat.com> | 2007-11-28 13:04:18 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-11-28 13:04:18 +0000 |
commit | e23f1610289a9ba59e77cc214680d38aa7db9e13 (patch) | |
tree | c6b31554551fb99e3c380ef8296b6f48c6616526 /ld/testsuite/ld-mn10300/mn10300.exp | |
parent | e842223a72b42cb087d8ba304b7b31f5d2131568 (diff) | |
download | gdb-e23f1610289a9ba59e77cc214680d38aa7db9e13.zip gdb-e23f1610289a9ba59e77cc214680d38aa7db9e13.tar.gz gdb-e23f1610289a9ba59e77cc214680d38aa7db9e13.tar.bz2 |
* elf-m10300.c (mn10300_elf_relax_section): Extend previous fix to cover forward jumps.
* ld-mn10300/i135409-5.s: New test case. Check for relaxation to a 16-bit backward jump instruction.
* ld-mn10300/i135409-5.t: Linker script for the new test.
* ld-mn10300/i135409-5.d: Expected disassembly of new test.
* ld-mn10300/mn10300.exp: Run the new test.
Diffstat (limited to 'ld/testsuite/ld-mn10300/mn10300.exp')
-rw-r--r-- | ld/testsuite/ld-mn10300/mn10300.exp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ld/testsuite/ld-mn10300/mn10300.exp b/ld/testsuite/ld-mn10300/mn10300.exp index f67881f..edb1470 100644 --- a/ld/testsuite/ld-mn10300/mn10300.exp +++ b/ld/testsuite/ld-mn10300/mn10300.exp @@ -80,13 +80,21 @@ set mn10300_tests { "i135409-3.x" } { - "adjusting a 16 bit branch" + "adjusting a 16-bit forward branch" "-Ti135409-4.t -relax" "" { "i135409-4.s" } { {objdump -d i135409-4.d} } "i135409-4.x" } + { + "adjusting a 16-bit backward branch" + "-Ti135409-5.t -relax" + "" + { "i135409-5.s" } + { {objdump -d i135409-5.d} } + "i135409-5.x" + } } run_ld_link_tests $mn10300_tests |