From: Guillem Jover Date: Fri, 23 Nov 2012 17:32:35 +0000 (+0100) Subject: Add arm64 (aka aarch64) to nlist() X-Git-Tag: 0.5.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf683a275a13c2d8bd0ebc9a5953bb974aba3fae;p=thirdparty%2Flibbsd.git Add arm64 (aka aarch64) to nlist() --- diff --git a/src/local-elf.h b/src/local-elf.h index afcc8ed..37e9146 100644 --- a/src/local-elf.h +++ b/src/local-elf.h @@ -1,5 +1,5 @@ /* - * Copyright © 2009 Guillem Jover + * Copyright © 2009, 2012 Guillem Jover * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -59,6 +59,16 @@ #define ELF_TARG_DATA ELFDATA2LSB #endif +#elif defined(__aarch64__) + +#define ELF_TARG_MACH EM_AARCH64 +#define ELF_TARG_CLASS ELFCLASS64 +#if defined(__AARCH64EB__) +#define ELF_TARG_DATA ELFDATA2MSB +#else +#define ELF_TARG_DATA ELFDATA2LSB +#endif + #elif defined(__avr32__) #ifndef EM_AVR32