mirror of
https://github.com/opnsense/src.git
synced 2026-04-03 00:15:16 -04:00
[PowerPC64LE] PPC64LE support for libelf.
Fix native detection when building on powerpc64le. I will be submitting this and r361104 upstream shortly. Sponsored by: Tag1 Consulting, Inc.
This commit is contained in:
parent
a720b31c2a
commit
d9052fccdf
1 changed files with 4 additions and 0 deletions
|
|
@ -94,7 +94,11 @@
|
|||
#elif defined(__powerpc64__)
|
||||
|
||||
#define LIBELF_ARCH EM_PPC64
|
||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||
#define LIBELF_BYTEORDER ELFDATA2LSB
|
||||
#else
|
||||
#define LIBELF_BYTEORDER ELFDATA2MSB
|
||||
#endif
|
||||
#define LIBELF_CLASS ELFCLASS64
|
||||
|
||||
#elif defined(__powerpc__)
|
||||
|
|
|
|||
Loading…
Reference in a new issue