diff options
author | Brandon Bergren <bdragon@FreeBSD.org> | 2020-09-09 00:06:35 +0000 |
---|---|---|
committer | Brandon Bergren <bdragon@FreeBSD.org> | 2020-09-09 00:06:35 +0000 |
commit | d9052fccdf6533dcd6723739e44cd3bad5cc480b (patch) | |
tree | efe51a2b1f4c9de4d3994b58bdb946a4c61ea8f1 | |
parent | a720b31c2a11d36cca4a67cdf89916eee145f3fd (diff) | |
download | src-d9052fccdf6533dcd6723739e44cd3bad5cc480b.tar.gz src-d9052fccdf6533dcd6723739e44cd3bad5cc480b.zip |
[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.
Notes
Notes:
svn path=/head/; revision=365489
-rw-r--r-- | contrib/elftoolchain/libelf/_libelf_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/elftoolchain/libelf/_libelf_config.h b/contrib/elftoolchain/libelf/_libelf_config.h index 0f7ed031c98f..05869757f663 100644 --- a/contrib/elftoolchain/libelf/_libelf_config.h +++ b/contrib/elftoolchain/libelf/_libelf_config.h @@ -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__) |