Displaying 2 results from an estimated 2 matches for "getfileoffset".
2012 Jan 23
3
[LLVMdev] ELFObjectFile changes, llvm-objdump showing 'wrong' values?
Hi all,
I'm using the MC framework for a project, and while updating to latest
trunk (r148672) encountered 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....
2012 Jan 23
0
[LLVMdev] ELFObjectFile changes, llvm-objdump showing 'wrong' values?
...Mdev] ELFObjectFile changes, llvm-objdump showing 'wrong'
> values?
>
> Hi all,
>
> I'm using the MC framework for a project, and while updating to latest trunk
> (r148672) encountered 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
> addres...