search for: containingsection

Displaying 2 results from an estimated 2 matches for "containingsection".

2012 Jan 23
3
[LLVMdev] ELFObjectFile changes, llvm-objdump showing 'wrong' values?
...ountered the following issue: It seems that SymbolRef::getAddress and SymbolRef::getFileOffset have been changed to add the symbol's offset to the offset of the containing section? This has the following implications: To get the /actual/ fileoffset, I now need to do: Symbol.getFileOffset() - ContainingSection.getFileOffset() And to get the address relative to the section, I do: Symbol.getFileOffset() - 2*ContainingSection.getFileOffset() I suspect this isn't the desired functionality (what use is the original value?)? You can also see the impact of this on the tool llvm-objdump (as well as llvm-nm...
2012 Jan 23
0
[LLVMdev] ELFObjectFile changes, llvm-objdump showing 'wrong' values?
...eems that SymbolRef::getAddress and SymbolRef::getFileOffset have > been changed to add the symbol's offset to the offset of the containing > section? > > This has the following implications: > > To get the /actual/ fileoffset, I now need to do: > Symbol.getFileOffset() - ContainingSection.getFileOffset() And to get the > address relative to the section, I do: > Symbol.getFileOffset() - 2*ContainingSection.getFileOffset() > > I suspect this isn't the desired functionality (what use is the original value?)? > > You can also see the impact of this on the tool ll...