H.J.'s ELFOSABI changes.

This commit is contained in:
Alan Modra
2000-05-23 08:39:07 +00:00
parent 582431e030
commit 175be42842
6 changed files with 54 additions and 3 deletions

View File

@@ -46,6 +46,11 @@ Sat Jul 3 10:35:19 CDT 1999 Joel Sherrill <joel@OARcorp.com>
the .bss section. the .bss section.
* bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2000-05-02 H.J. Lu <hjl@gnu.org>
* elf.c (prep_headers): Use ELFOSABI_NONE instead of
ELFOSABI_SYSV.
2000-04-29 Andreas Jaeger <aj@suse.de> 2000-04-29 Andreas Jaeger <aj@suse.de>
* libbfd-in.h: Correctly check GCC version. * libbfd-in.h: Correctly check GCC version.

View File

@@ -3206,7 +3206,7 @@ prep_headers (abfd)
bfd_big_endian (abfd) ? ELFDATA2MSB : ELFDATA2LSB; bfd_big_endian (abfd) ? ELFDATA2MSB : ELFDATA2LSB;
i_ehdrp->e_ident[EI_VERSION] = bed->s->ev_current; 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; i_ehdrp->e_ident[EI_ABIVERSION] = 0;
for (count = EI_PAD; count < EI_NIDENT; count++) for (count = EI_PAD; count < EI_NIDENT; count++)

View File

@@ -3,6 +3,14 @@
* configure.in: Set version to 2.10. * configure.in: Set version to 2.10.
* configure: Regenerate. * configure: Regenerate.
2000-05-02 H.J. Lu <hjl@gnu.org>
* readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
and ELFOSABI_OPENBSD.
2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG> 2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* arlex.l: Add directives to increase lex buffer size. * arlex.l: Add directives to increase lex buffer size.

View File

@@ -1931,9 +1931,18 @@ get_osabi_name (osabi)
switch (osabi) switch (osabi)
{ {
case ELFOSABI_SYSV: return _("UNIX - System V"); case ELFOSABI_NONE: return _("UNIX - System V");
case ELFOSABI_HPUX: return _("UNIX - HP-UX"); case ELFOSABI_HPUX: return _("UNIX - HP-UX");
case ELFOSABI_NETBSD: return _("UNIX - NetBSD");
case ELFOSABI_LINUX: return _("UNIX - Linux"); case ELFOSABI_LINUX: return _("UNIX - Linux");
case ELFOSABI_HURD: return _("GNU/Hurd");
case ELFOSABI_SOLARIS: return _("UNIX - Solaris");
case ELFOSABI_MONTEREY: return _("UNIX - Monterey");
case ELFOSABI_IRIX: return _("UNIX - IRIX");
case ELFOSABI_FREEBSD: return _("UNIX - FreeBSD");
case ELFOSABI_TRU64: return _("UNIX - TRU64");
case ELFOSABI_MODESTO: return _("Novell - Modesto");
case ELFOSABI_OPENBSD: return _("UNIX - OpenBSD");
case ELFOSABI_STANDALONE: return _("Standalone App"); case ELFOSABI_STANDALONE: return _("Standalone App");
case ELFOSABI_ARM: return _("ARM"); case ELFOSABI_ARM: return _("ARM");
default: default:

View File

@@ -1,3 +1,23 @@
2000-05-02 H.J. Lu <hjl@gnu.org>
* common.h (ELFOSABI_NONE): Renamed from ELFOSABI_SYSV.
(ELFOSABI_MODESTO): Defined.
(ELFOSABI_OPENBSD): Likewise.
2000-04-14 H.J. Lu <hjl@gnu.org>
* common.h (ELFOSABI_TRUE64): Renamed to ELFOSABI_TRU64.
2000-04-14 H.J. Lu <hjl@gnu.org>
* 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 <denisc@overta.ru> 2000-03-27 Denis Chertykov <denisc@overta.ru>
* avr.h: New file. AVR ELF support for BFD. * avr.h: New file. AVR ELF support for BFD.

View File

@@ -58,9 +58,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define EI_VERSION 6 /* File version */ #define EI_VERSION 6 /* File version */
#define EI_OSABI 7 /* Operating System/ABI indication */ #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_HPUX 1 /* HP-UX operating system */
#define ELFOSABI_NETBSD 2 /* NetBSD */
#define ELFOSABI_LINUX 3 /* GNU/Linux */ #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_STANDALONE 255 /* Standalone (embedded) application */
#define ELFOSABI_ARM 97 /* ARM */ #define ELFOSABI_ARM 97 /* ARM */