Displaying 1 result from an estimated 1 matches for "setaddend".
2014 Feb 26
2
[LLVMdev] [lld] Relocation reading refactoring
...tr);
> + // Read the addend from the section contents
> + // TODO : We should move the way lld reads relocations totally from
> + // ELFObjectFile
> + int32_t addend = *(content.data() + ri->r_offset - symbol->st_value);
> + ERef->setAddend(addend);
> _references.push_back(ERef);
> }
What do you mean by removing relocation reading from the
ELFObjectFile? I considered to customize the relocation reading for
MIPS targets and my first idea was to factor out ELFReference creation
into a couple of virtual functio...