diff options
author | Jeff Law <law@redhat.com> | 1997-01-06 22:25:05 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1997-01-06 22:25:05 +0000 |
commit | 62b2acbabfd617c4ceac4da55af2ab5d53d7167e (patch) | |
tree | 574ce1f99f17995df08bbafc1c16ffde5f093e45 /gas/config/tc-mn10200.c | |
parent | 09a7bde3777261ffb61f794cb40ef22ab3c593c0 (diff) | |
download | gdb-62b2acbabfd617c4ceac4da55af2ab5d53d7167e.zip gdb-62b2acbabfd617c4ceac4da55af2ab5d53d7167e.tar.gz gdb-62b2acbabfd617c4ceac4da55af2ab5d53d7167e.tar.bz2 |
* config/tc-mn10200.c (md_assemble): Tweak fx_offset for pc-relative
relocs.
Relocs for the mn10200.
Diffstat (limited to 'gas/config/tc-mn10200.c')
-rw-r--r-- | gas/config/tc-mn10200.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/config/tc-mn10200.c b/gas/config/tc-mn10200.c index 36894ca..e57a6c1 100644 --- a/gas/config/tc-mn10200.c +++ b/gas/config/tc-mn10200.c @@ -741,6 +741,7 @@ keep_going: else { int reloc, pcrel, reloc_size, offset; + fixS *fixP; reloc = BFD_RELOC_NONE; /* How big is the reloc? Remember SPLIT relocs are @@ -786,9 +787,11 @@ keep_going: else if (reloc_size == 32 || reloc_size == 24) reloc_size = 2; - fix_new_exp (frag_now, f - frag_now->fr_literal + offset, reloc_size, - &fixups[i].exp, pcrel, - ((bfd_reloc_code_real_type) reloc)); + fixP = fix_new_exp (frag_now, f - frag_now->fr_literal + offset, + reloc_size, &fixups[i].exp, pcrel, + ((bfd_reloc_code_real_type) reloc)); + if (pcrel) + fixP->fx_offset += offset; } } } |