From eb09642bf7268460a7aceee22f037609c7efe46a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 23 May 2000 08:39:07 +0000 Subject: H.J.'s ELFOSABI changes. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 2 +- include/elf/ChangeLog | 20 ++++++++++++++++++++ include/elf/common.h | 11 ++++++++++- 4 files changed, 36 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1170c34e3b3..53993bd4185 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -46,6 +46,11 @@ Sat Jul 3 10:35:19 CDT 1999 Joel Sherrill the .bss section. * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. +2000-05-02 H.J. Lu + + * elf.c (prep_headers): Use ELFOSABI_NONE instead of + ELFOSABI_SYSV. + 2000-04-29 Andreas Jaeger * libbfd-in.h: Correctly check GCC version. diff --git a/bfd/elf.c b/bfd/elf.c index c210638beff..5fd4533df86 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -3206,7 +3206,7 @@ prep_headers (abfd) bfd_big_endian (abfd) ? ELFDATA2MSB : ELFDATA2LSB; i_ehdrp->e_ident[EI_VERSION] = bed->s->ev_current; - i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_SYSV; + i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_NONE; i_ehdrp->e_ident[EI_ABIVERSION] = 0; for (count = EI_PAD; count < EI_NIDENT; count++) diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index e1f68c39b00..4b5a50b175e 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,23 @@ +2000-05-02 H.J. Lu + + * common.h (ELFOSABI_NONE): Renamed from ELFOSABI_SYSV. + (ELFOSABI_MODESTO): Defined. + (ELFOSABI_OPENBSD): Likewise. + +2000-04-14 H.J. Lu + + * common.h (ELFOSABI_TRUE64): Renamed to ELFOSABI_TRU64. + +2000-04-14 H.J. Lu + + * common.h (ELFOSABI_NETBSD): Defined. + (ELFOSABI_HURD): Likewise. + (ELFOSABI_SOLARIS): Likewise. + (ELFOSABI_MONTEREY): Likewise. + (ELFOSABI_IRIX): Likewise. + (ELFOSABI_FREEBSD): Likewise. + (ELFOSABI_TRUE64): Likewise. + 2000-03-27 Denis Chertykov * avr.h: New file. AVR ELF support for BFD. diff --git a/include/elf/common.h b/include/elf/common.h index fe8c2169d88..09b96697ad8 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -58,9 +58,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define EI_VERSION 6 /* File version */ #define EI_OSABI 7 /* Operating System/ABI indication */ -#define ELFOSABI_SYSV 0 /* UNIX System V ABI */ +#define ELFOSABI_NONE 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_TRU64 10 /* TRU64 UNIX */ +#define ELFOSABI_MODESTO 11 /* Novell Modesto */ +#define ELFOSABI_OPENBSD 12 /* OpenBSD */ #define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */ #define ELFOSABI_ARM 97 /* ARM */ -- cgit v1.2.1