projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5051b6f
)
* coff-a29k.c (a29k_reloc): Add reloc_entry->address to value of
author
Ian Lance Taylor
<ian@airs.com>
Fri, 1 Apr 1994 17:44:29 +0000
(17:44 +0000)
committer
Ian Lance Taylor
<ian@airs.com>
Fri, 1 Apr 1994 17:44:29 +0000
(17:44 +0000)
absolute R_IREL reloc.
bfd/coff-a29k.c
patch
|
blob
|
history
diff --git
a/bfd/coff-a29k.c
b/bfd/coff-a29k.c
index 9084a40dcee10ee7265511c0d044339c1064cc6e..1016b21251eae497d9666dae28ad8f51613053e4 100644
(file)
--- a/
bfd/coff-a29k.c
+++ b/
bfd/coff-a29k.c
@@
-126,9
+126,10
@@
a29k_reloc (abfd, reloc_entry, symbol_in, data, input_section, output_bfd,
signed_value = SIGN_EXTEND_HWORD(signed_value);
signed_value <<= 2;
signed_value += sym_value + reloc_entry->addend;
- if ((
signed_value&~0x3ffff) == 0)
+ if ((
(signed_value + reloc_entry->address) & ~0x3ffff) == 0)
{ /* Absolute jmp/call */
insn |= (1<<24); /* Make it absolute */
+ signed_value += reloc_entry->address;
/* FIXME: Should we change r_type to R_IABS */
}
else