From 7eb0e446bedb484a49120c16b03fdb6539cda1fc Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 2 May 2000 17:54:32 +0000 Subject: [PATCH] 2000-05-02 H.J. Lu * 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. --- binutils/ChangeLog | 8 ++++++++ binutils/readelf.c | 11 ++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 008456af3..a25691b75 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,11 @@ +2000-05-02 H.J. Lu + + * 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-05-02 Kazu Hirata * coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate. diff --git a/binutils/readelf.c b/binutils/readelf.c index a24bbcda2..5856723f3 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -2052,9 +2052,18 @@ get_osabi_name (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_NETBSD: return _("UNIX - NetBSD"); 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_ARM: return _("ARM"); default: -- 2.11.4.GIT