This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ABI indicators for BSD


This patch assigns some ABI indicators.  FreeBSD current brands ELF
binaries so it knows which ABI they require.  The current FreeBSD way has
been deamed bogus, so using the EI_OSABI field is probably the easily way
to change to a more aporoved branding method.  Adding a .note section to
ELF binaries that don't have them is another approach that may be used in
the future.


2000-04-14  David O'Brien  <obrien@FreeBSD.org>

	* common.h (ELFOSABI_FREEBSD,ELFOSABI_NETBSD,ELFOSABI_OPENBSD): Assign
	ABI indicators.


Index: common.h
===================================================================
RCS file: /cvs/src/src/include/elf/common.h,v
retrieving revision 1.15
diff -u -r1.15 common.h
--- common.h	2000/03/27 08:39:13	1.15
+++ common.h	2000/04/14 17:32:30
@@ -61,8 +61,11 @@
 #define ELFOSABI_SYSV   0       /* UNIX System V ABI */
 #define ELFOSABI_HPUX   1       /* HP-UX operating system */
 #define ELFOSABI_LINUX  3       /* GNU/Linux */
-#define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */
+#define ELFOSABI_FREEBSD 4      /* FreeBSD ELF ABI */
+#define ELFOSABI_NETBSD 5       /* NetBSD ELF ABI */
+#define ELFOSABI_OPENBSD 6      /* OpenBSD ELF ABI */
 #define ELFOSABI_ARM   97		/* ARM */
+#define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */
 
 #define EI_ABIVERSION   8       /* ABI version */
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]