[PATCH] D85774: [XCOFF][AIX] Enable tooling support for 64 bit symbol table parsing
Digger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 06:24:55 PDT 2020
DiggerLin added inline comments.
================
Comment at: llvm/include/llvm/Object/XCOFFObjectFile.h:401
uint32_t getSymbolIndex(uintptr_t SymEntPtr) const;
+ uintptr_t getSymbolAddressByIndex(uint32_t SymbolTableIndex) const;
Expected<StringRef> getSymbolNameByIndex(uint32_t SymbolTableIndex) const;
----------------
jasonliu wrote:
> DiggerLin wrote:
> > this means for getSymbolEntryAddressByIndex(uint32_t SymbolTableIndex) const ?
> Sorry, what's the difference between Symbol and SymbolEntry?
> I'm also seeing `getSymbolIndex` and `getSymbolNameByIndex` around this function. Any reason they are not "SymbolEntry"?
the value of symbol maybe a symbol relocation address , I was confused getSymbolAddress with getting the relocation address at my first glance of the code, getSymbolEntryAddress, that means we need the SymbolEntry address not relocation address of a symbol.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85774/new/
https://reviews.llvm.org/D85774
More information about the llvm-commits
mailing list