diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2002-11-30 14:09:12 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2002-11-30 14:09:12 +0000 |
commit | 0174e383ca06a8115b179428d4f68a7bdd3e08f2 (patch) | |
tree | 90e25a156954b571ff0218560104bafa799c456b /gas/testsuite | |
parent | 08a1b063ad62ecc1d30f920adf32d46cdc04b1d7 (diff) | |
download | gdb-0174e383ca06a8115b179428d4f68a7bdd3e08f2.zip gdb-0174e383ca06a8115b179428d4f68a7bdd3e08f2.tar.gz gdb-0174e383ca06a8115b179428d4f68a7bdd3e08f2.tar.bz2 |
* config/tc-sh.c (md_apply_fix3): Take account of fx_offset
for BFD_RELOC_32_PLT_PCREL.
* sh/gas/sh/pic.s: Add a test for ".long foo@PLT+.-2-label".
* sh/gas/sh/pic.d: Add expected output.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/sh/pic.d | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/sh/pic.s | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 396a852..3a7f205 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * sh/gas/sh/pic.s: Add a test for ".long foo@PLT+.-2-label". + * sh/gas/sh/pic.d: Add expected output. + 2002-11-29 Nick Clifton <nickc@redhat.com> * gas/arm/arch5tej.s: Replace "nop"s with tests of breakpoint diff --git a/gas/testsuite/gas/sh/pic.d b/gas/testsuite/gas/sh/pic.d index f4ac775..9a2d0ce 100644 --- a/gas/testsuite/gas/sh/pic.d +++ b/gas/testsuite/gas/sh/pic.d @@ -38,3 +38,6 @@ Disassembly of section \.text: 0x00000040 00 00 \.word 0x0000 40: R_SH_PLT32 foo 0x00000042 00 14 mov\.b r1,@\(r0,r0\) +0x00000044 00 00 \.word 0x0000 + 44: R_SH_PLT32 foo +0x00000046 00 1e mov\.l @\(r0,r1\),r0 diff --git a/gas/testsuite/gas/sh/pic.s b/gas/testsuite/gas/sh/pic.s index 6e0c53e..bb9551c 100644 --- a/gas/testsuite/gas/sh/pic.s +++ b/gas/testsuite/gas/sh/pic.s @@ -39,3 +39,5 @@ .long foo@PLT + . - (.LPLTcall_old + 2) .Lfooplt_new: .long foo@PLT - (.LPLTcall_new + 2 - .) +.Lfooplt_old2: + .long foo@PLT + . - 2 - .LPLTcall_old |