imx6: Initial support for SolidRun CuBox-i devices based on i.MX6 processors (i1...
[openwrt/openwrt.git] / package / libs / libbsd / patches / 001-aarch64_support.patch
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
7 +#elif defined(__aarch64__)
8 +
9 +#define ELF_TARG_MACH EM_AARCH64
10 +#define ELF_TARG_CLASS ELFCLASS64
11 +#ifdef __AARCH64EB__
12 +#define ELF_TARG_DATA ELFDATA2MSB
13 +#else
14 +#define ELF_TARG_DATA ELFDATA2LSB
15 +#endif
16 +
17 #else
18
19 #error Unknown ELF machine type