diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2002-10-03 04:58:28 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2002-10-03 04:58:28 +0000 |
commit | 28602ebff6fc81337532d280732b52df407b394f (patch) | |
tree | c075e06d16498ad8ffea7ac4a94aeeded4afa7bb /gas/testsuite | |
parent | a58dd3735c499b8e076e7e283b87361732119191 (diff) | |
download | gdb-28602ebff6fc81337532d280732b52df407b394f.zip gdb-28602ebff6fc81337532d280732b52df407b394f.tar.gz gdb-28602ebff6fc81337532d280732b52df407b394f.tar.bz2 |
* contig/tc-sh.c (sh_local_pcrel): New.
(sh_force_relocation): Use sh_local_pcrel.
(md_pcrel_from_section): Check the relocation type whether it
should be resolved locally. Use S_FORCE_RELOC.
* testsuite/gas/sh/pcrel2.d: Check code also.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/sh/pcrel2.d | 20 |
2 files changed, 23 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 1b625c5..6ba1a19 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * testsuite/gas/sh/pcrel2.d: Check code also. + 2002-10-02 Stephen Clarke <stephen.clarke@superh.com> * gas/sh/sh64/ptc32-noexp-1.d: Adjust for changes to *ABS* diff --git a/gas/testsuite/gas/sh/pcrel2.d b/gas/testsuite/gas/sh/pcrel2.d index 9b363af..60a01df 100644 --- a/gas/testsuite/gas/sh/pcrel2.d +++ b/gas/testsuite/gas/sh/pcrel2.d @@ -1,5 +1,23 @@ #as: -big -#objdump: -r +#objdump: -drj.text #name: PC-relative loads .*: file format .*sh.* + +Disassembly of section \.text: + +00000000 <code>: + 0: 8b 01 bf 6 <foo> + 2: d0 02 mov\.l c <bar>,r0 ! 0x6 + 4: 90 02 mov\.w c <bar>,r0 ! 0x0 + +00000006 <foo>: + 6: af fe bra 6 <foo> + 8: 00 09 nop + a: 00 09 nop + +0000000c <bar>: + c: 00 00 .*[ ]*.* + e: 00 06 .*[ ]*.* + 10: 00 0a .*[ ]*.* + 12: 0c 00 .*[ ]*.* |