mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
* coff-a29k.c (a29k_reloc): Add reloc_entry->address to value of
absolute R_IREL reloc.
This commit is contained in:
@ -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 = SIGN_EXTEND_HWORD(signed_value);
|
||||||
signed_value <<= 2;
|
signed_value <<= 2;
|
||||||
signed_value += sym_value + reloc_entry->addend;
|
signed_value += sym_value + reloc_entry->addend;
|
||||||
if ((signed_value&~0x3ffff) == 0)
|
if (((signed_value + reloc_entry->address) & ~0x3ffff) == 0)
|
||||||
{ /* Absolute jmp/call */
|
{ /* Absolute jmp/call */
|
||||||
insn |= (1<<24); /* Make it absolute */
|
insn |= (1<<24); /* Make it absolute */
|
||||||
|
signed_value += reloc_entry->address;
|
||||||
/* FIXME: Should we change r_type to R_IABS */
|
/* FIXME: Should we change r_type to R_IABS */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user