Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ELF ABI and endianness checks for powerpc64
Earlier, it was assumed that ELF ABI v2 is used only on little-endian powerpc64 environments but it seems this ABI can be used independently of endianness. It is expected that any C preprocessor that conforms to the ELF ABI v2 specification must predefine the _CALL_ELF macro and set its value to 2. Instead of looking at __BYTE_ORDER__ to determine whether to use the Local Entry Point (LEP) of symbols, one should look at the _CALL_ELF macro instead as this is ABI-related. Similarly, _CALL_ELF should be used only for determining the ABI version and not the endianness. Reported-by: Naveen N. Rao <[email protected]> Fixes: bbd4180 ("Fix uprobes on powerpc64") Fixes: 1086952 ("clang: Add support to build eBPF for user specified ARCH") Acked-by: Naveen N. Rao <[email protected]> Signed-off-by: Sandipan Das <[email protected]>
- Loading branch information