ext: Add extra defines to libelf to support Apple silicon.
The current version of libelf does not include a configuration compatible with Apple silicon. This patch adds the required defines. Change-Id: I9b7b9b1f711973159f31666d3fe480c2dc01a6b7 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/52723 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Austin Harris <mail@austin-harris.com> Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -36,9 +36,15 @@
|
||||
#define LIBELF_ARCH EM_386
|
||||
#define LIBELF_BYTEORDER ELFDATA2LSB
|
||||
#define LIBELF_CLASS ELFCLASS32
|
||||
#elif defined(__aarch64__)
|
||||
#define LIBELF_ARCH EM_AARCH64
|
||||
#define LIBELF_BYTEORDER ELFDATA2LSB
|
||||
#define LIBELF_CLASS ELFCLASS64
|
||||
#else
|
||||
#error Unknown Apple or DragonFly architecture.
|
||||
#endif
|
||||
|
||||
#endif /* __DragonFly__ */
|
||||
#endif /* __APPLE__ || __DragonFly__ */
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user