The PPC64 elf V2 abi defines 2 entry points for a function. There are a few places we need to calculate the offset from the global entry to the local entry and how this is done is not straight forward. This patch adds a helper function mostly for documentation purposes, explaining how the 2 entry points differ and why we choose one over the other, as well as documenting how the offsets are encoded into a functions st_other field.
Details
Details
- Reviewers
ruiu syzaara MaskRay rdhindsa • espindola - Commits
- rGe0e586b99767: [PPC64] Helper for offset from a function's global entry to local entry. [NFC]
rL342603: [PPC64] Helper for offset from a function's global entry to local entry. [NFC]
rLLD342603: [PPC64] Helper for offset from a function's global entry to local entry. [NFC]
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
Please use error() and returns a dummy value (e.g. 0) because this place is reachable.