Previously, the methods to get addresses for a symbol were somewhat
scattered in many places. You can use getEntryAddr returns the address
of the symbol, but if you want to get the GOT address for the symbol,
you needed to call Out<ELFT>::Got->getEntryAddr(Sym).
This change adds new functions, getVA, getGotVA, getGotPltVA, and
getPltVA to SymbolBody, so that you can use SymbolBody as the central
place to ask about symbols.
Details
Details
- Reviewers
• rafael
Diff Detail
Diff Detail