diff options
author | Richard Henderson <rth@redhat.com> | 1997-10-15 02:17:00 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1997-10-15 02:17:00 +0000 |
commit | 10b8f7f036e9bd6389f6c71edac032aeab5a01e3 (patch) | |
tree | 4f653088db5c86283e5a9bc70861a159f89c0a94 /gas | |
parent | 81b3b32cda340f84d50aa9bb6ca100f0ad85dead (diff) | |
download | gdb-10b8f7f036e9bd6389f6c71edac032aeab5a01e3.zip gdb-10b8f7f036e9bd6389f6c71edac032aeab5a01e3.tar.gz gdb-10b8f7f036e9bd6389f6c71edac032aeab5a01e3.tar.bz2 |
* config/tc-alpha.h (DIFF_EXPR_OK): Define.
* config/tc-i386.h (DIFF_EXPR_OK): Define.
* config/tc-alpha.c (md_apply_fix): Notice fx_pcrel and substitute
the correct relocation when it exists.
* config/tc-i386.c (md_apply_fix3): Likewise.
* config/tc-ppc.h: Correct typo in comment.
* config/tc-v850.h: Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 11 | ||||
-rw-r--r-- | gas/config/tc-alpha.c | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1dc872d..010e832 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,14 @@ +Tue Oct 14 19:12:45 1997 Richard Henderson <rth@cygnus.com> + + * config/tc-alpha.h (DIFF_EXPR_OK): Define. + * config/tc-i386.h (DIFF_EXPR_OK): Define. + * config/tc-alpha.c (md_apply_fix): Notice fx_pcrel and substitute + the correct relocation when it exists. + * config/tc-i386.c (md_apply_fix3): Likewise. + + * config/tc-ppc.h: Correct typo in comment. + * config/tc-v850.h: Likewise. + Fri Oct 10 16:09:35 1997 Andrew Cagney <cagney@b1.cygnus.com> * config/tc-d10v.c (parallel_ok): Allow parallel instruction issue diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 7f7aaab..08baf6b 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -1050,12 +1050,18 @@ md_apply_fix (fixP, valueP) break; case BFD_RELOC_16: + if (fixP->fx_pcrel) + fixP->fx_r_type = BFD_RELOC_16_PCREL; size = 2; goto do_reloc_xx; case BFD_RELOC_32: + if (fixP->fx_pcrel) + fixP->fx_r_type = BFD_RELOC_32_PCREL; size = 4; goto do_reloc_xx; case BFD_RELOC_64: + if (fixP->fx_pcrel) + fixP->fx_r_type = BFD_RELOC_64_PCREL; size = 8; do_reloc_xx: if (fixP->fx_pcrel == 0 && fixP->fx_addsy == 0) |