search for: label_at_section_start

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

2011 Nov 17
1
[LLVMdev] How to get ELF section virtual starting address from MCSymbolRefExpr?
I have a case where I the expression (MCSymbolRefExpr) is the offset from the beginning of the section. The need is to combine that offset to the virtual address of the section it belongs, in this case .text, but it could be any section. I can get a MCSectionELF class object from MCSymbol that I get from MCSymbolRefExpr: int Kind = Value->getKind(); if (Kind == MCExpr::SymbolRef) {
2011 Nov 21
0
[LLVMdev] How to get ELF section virtual starting address from MCSymbolRefExpr?
...gt; since I would have expected methods for accessing every part of the ELF > section header entry. > > How does one get the virtual address (sh_addr in ELF) starting from a > MCSymbolRefExpr? The offset is not know until relaxation. You probably want an expression that is (cur_label - label_at_section_start), no? > Thanks, > > Jack > Cheers, Rafael ------------------------------ Message: 7 Date: Sat, 19 Nov 2011 12:42:34 -0800 From: Eli Friedman <eli.friedman at gmail.com> Subject: Re: [LLVMdev] llvm_anyint_ty clarification To: Alberto Magni <alberto.magni86 at gmail.com>...