]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Add arm64 (aka aarch64) to nlist()
authorGuillem Jover <guillem@hadrons.org>
Fri, 23 Nov 2012 17:32:35 +0000 (18:32 +0100)
committerGuillem Jover <guillem@hadrons.org>
Mon, 27 May 2013 00:49:28 +0000 (02:49 +0200)
src/local-elf.h

index afcc8ed9d2554d213d995809d62e8faec87cb325..37e91461849ffbc93b18dcde55d7ef0e77a5e813 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2009 Guillem Jover <guillem@hadrons.org>
+ * Copyright © 2009, 2012 Guillem Jover <guillem@hadrons.org>
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
 #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