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:
Marcel Moolenaar 2011-02-17 19:31:21 +00:00
parent 7842451a3a
commit b2983d3006

View File

@ -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 */