Richard Cooper has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/52723 )

Change subject: ext: Add extra defines to libelf to support Apple silicon.
......................................................................

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
---
M ext/libelf/_libelf_config.h
1 file changed, 19 insertions(+), 1 deletion(-)



diff --git a/ext/libelf/_libelf_config.h b/ext/libelf/_libelf_config.h
index 1b8f35b..b968441 100644
--- a/ext/libelf/_libelf_config.h
+++ b/ext/libelf/_libelf_config.h
@@ -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__


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/52723
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I9b7b9b1f711973159f31666d3fe480c2dc01a6b7
Gerrit-Change-Number: 52723
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Cooper <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to