-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1800 from ghaerr/libelf
[build] Fix elf2elks libelf build on Apple M1
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- elftoolchain-0.7.1/libelf/_libelf_config.h 2024-02-06 14:09:41.000000000 -0700 | ||
+++ 1 2024-02-06 14:09:27.000000000 -0700 | ||
@@ -36,6 +36,10 @@ | ||
#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 | ||
#endif | ||
|
||
#endif /* __DragonFly__ */ |