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]

Re: ABI indicators for BSD


On Fri, Apr 14, 2000 at 11:26:15AM -0700, David O'Brien wrote:
> 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.
> 

We didn't choose those exiting numbers by random. I have
checked in the following patch. They come from the IA64
pABI. You can get it from the Intel web site.

BTW, I don't remember why we didn't assign a value for
OpenBSD. But we did reserve the number, 5. Maybe it is
for OpenBSD.


H.J.
--
Index: common.h
===================================================================
RCS file: /cvs/src/src/include/elf/common.h,v
retrieving revision 1.15
diff -u -p -r1.15 common.h
--- common.h	2000/03/27 08:39:13	1.15
+++ common.h	2000/04/14 19:12:12
@@ -60,7 +60,14 @@ Foundation, Inc., 59 Temple Place - Suit
 #define EI_OSABI        7       /* Operating System/ABI indication */
 #define ELFOSABI_SYSV   0       /* UNIX System V ABI */
 #define ELFOSABI_HPUX   1       /* HP-UX operating system */
+#define ELFOSABI_NETBSD 2       /* NetBSD */
 #define ELFOSABI_LINUX  3       /* GNU/Linux */
+#define ELFOSABI_HURD   4       /* GNU/Hurd */
+#define ELFOSABI_SOLARIS 6      /* Solaris */
+#define ELFOSABI_MONTEREY 7     /* Monterey */
+#define ELFOSABI_IRIX   8       /* IRIX */
+#define ELFOSABI_FREEBSD 9      /* FreeBSD */
+#define ELFOSABI_TRUE64 10      /* TRUE64 UNIX */
 #define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */
 #define ELFOSABI_ARM   97		/* ARM */
 

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