[PATCH] include/elf.h: update for ELFOSABI_* changes.

Thomas Schwinge thomas at codesourcery.com
Wed Oct 31 19:41:50 UTC 2012


ELFOSABI_GNU replaces ELFOSABI_LINUX, the latter is kept as a compatibility
alias, and ELFOSABI_HURD is removed.  See the table on
<http://www.sco.com/developers/gabi/latest/ch4.eheader.html#osabi> for
reference.

Signed-off-by: Thomas Schwinge <thomas at codesourcery.com>
---
 include/elf.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git include/elf.h include/elf.h
index ba3e804..470046e 100644
--- include/elf.h
+++ include/elf.h
@@ -148,8 +148,8 @@ typedef struct
 #define ELFOSABI_SYSV		0	/* Alias.  */
 #define ELFOSABI_HPUX		1	/* HP-UX */
 #define ELFOSABI_NETBSD		2	/* NetBSD.  */
-#define ELFOSABI_LINUX		3	/* Linux.  */
-#define ELFOSABI_HURD		4	/* GNU/Hurd */
+#define ELFOSABI_GNU		3	/* Object uses GNU ELF extensions.  */
+#define ELFOSABI_LINUX		ELFOSABI_GNU	/* Compatibility alias.  */
 #define ELFOSABI_SOLARIS	6	/* Sun Solaris.  */
 #define ELFOSABI_AIX		7	/* IBM AIX.  */
 #define ELFOSABI_IRIX		8	/* SGI Irix.  */
-- 
1.7.10



More information about the uClibc mailing list