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/config/tc-sh.c | |
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/config/tc-sh.c')
-rw-r--r-- | gas/config/tc-sh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 74b7593..e9b5d0d 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -3516,7 +3516,7 @@ md_apply_fix3 (fixP, valP, seg) /* Make the jump instruction point to the address of the operand. At runtime we merely add the offset to the actual PLT entry. */ * valP = 0xfffffffc; - val = 0; + val = fixP->fx_offset; if (fixP->fx_subsy) val -= S_GET_VALUE (fixP->fx_subsy); fixP->fx_addnumber = val; |