010-fix-arc.patch 690 B

123456789101112131415161718192021222324252627282930
  1. From f60b6777cc2047f9845de2c88cf092b045c160c0 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Fri, 17 May 2019 01:44:56 +0000
  4. Subject: [PATCH] local-elf: Add ARC support
  5. Signed-off-by: Rosen Penev <rosenp@gmail.com>
  6. ---
  7. src/local-elf.h | 6 ++++++
  8. 1 file changed, 6 insertions(+)
  9. diff --git a/src/local-elf.h b/src/local-elf.h
  10. index 83ca253..b90baf3 100644
  11. --- a/src/local-elf.h
  12. +++ b/src/local-elf.h
  13. @@ -53,6 +53,12 @@
  14. #endif
  15. #define ELF_TARG_DATA ELFDATA2LSB
  16. +#elif defined (__arc__)
  17. +
  18. +#define ELF_TARG_MACH EM_ARC
  19. +#define ELF_TARG_CLASS ELFCLASS32
  20. +#define ELF_TARG_DATA ELFDATA2LSB
  21. +
  22. #elif defined(__arm__)
  23. #define ELF_TARG_MACH EM_ARM
  24. --
  25. 2.18.1