Displaying 1 result from an estimated 1 matches for "getrelocationoffset".
2016 Mar 24
1
[PATCH] D15965: Add support for dumping relocations in non-relocatable files
...ild an ordered map of all sections and their bounds, check if the relocation lands within a section
o Subtract the section address from the relocation address
Since getAddress isn’t in RelocationRef at the moment, this is going to have to be getAddress for MachO and COFF.
COFFObjectFile::getRelocationOffset returns R->VirtualAddress, so inside here I’m going to have to find the section it belongs to, add it to the result so it can later be subtracted off by llvm-objdump
MachOObjectFile::getRelocationOffset also returns getAnyRelocationAddress so I’ll have to also find its containing section and...