1
0

001-aarch64_support.patch 360 B

12345678910111213141516171819
  1. --- a/src/local-elf.h
  2. +++ b/src/local-elf.h
  3. @@ -165,6 +165,16 @@
  4. #endif
  5. #define ELF_TARG_DATA ELFDATA2MSB
  6. +#elif defined(__aarch64__)
  7. +
  8. +#define ELF_TARG_MACH EM_AARCH64
  9. +#define ELF_TARG_CLASS ELFCLASS64
  10. +#ifdef __AARCH64EB__
  11. +#define ELF_TARG_DATA ELFDATA2MSB
  12. +#else
  13. +#define ELF_TARG_DATA ELFDATA2LSB
  14. +#endif
  15. +
  16. #else
  17. #error Unknown ELF machine type