search for: cur_label

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

Did you mean: aug_label
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?
...his is odd > 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...