Fix the R_ARM_ABS32 relocation implementation. The memory address
contains the addend that we need to include. Obtained from: Juniper Networks. Fixed by: Santhanakrishnan Balraj <sbalraj@juniper.net>
This commit is contained in:
parent
7842451a3a
commit
b2983d3006
@ -169,9 +169,7 @@ elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data,
|
||||
addr = lookup(lf, symidx, 1);
|
||||
if (addr == 0)
|
||||
return -1;
|
||||
if (*where != addr)
|
||||
*where = addr;
|
||||
|
||||
*where += addr;
|
||||
break;
|
||||
|
||||
case R_ARM_COPY: /* none */
|
||||
|
Loading…
x
Reference in New Issue
Block a user