This is the mail archive of the binutils@sources.redhat.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]
Other format: [Raw text]

PATCH: ELFOSABI_AROS


On Tue, 14 Jan 2003, Jason R Thorpe wrote:

> On Tue, Jan 14, 2003 at 03:55:13PM +0100, Fabio Alemagna wrote:
>
>  > In case I don't get any feedback, or any positive one, what route do you
>  > suggest I should take? The aim of allocating an AROS-specific ID is to be
>  > able to recognize AROS-specific executables without mistakely loading
>  > other OS's executables and by distinguishing  amongsts different versions
>  > of the AROS-ELF ABI.
>
> For this, you should use the method employed by GNU/Linux and NetBSD,
> which is to use a separate ELF note in the executable that contains
> this information.

Oh, well, I got a positive answer:

    <cite>
    You've got ELFOFABI_AROS with (decimal) value 15 with the
    description "Amiga Research OS" with you listed as the requestor.

    This will show up (eventually) on SCO's gABI web site, currently found
    at http://www.caldera.com/developers/gabi/ .
    </cite>

If you need more details (like the email address and name of the guy who
responded to me) as proof of what I'm saying, please email me privately.

Here's the patch to apply. It includes support also for OpenVMS and NSK
that seem to have been assigned ELFOSABI numbers as well.

2003-01-16  Fabio Alemagna  <falemagn@aros.org>

        * readelf.c (get_osabi_name): Handle ELFOSABI_AROS,
        ELFOSABI_OPENVMS and ELFOSABI_NSK.

--- binutils/readelf.c,jj Thu Jan 16 18:18:17 2003
+++ binutils/readelf.c	  Thu Jan 16 18:21:18 2003
@@ -2830,6 +2830,9 @@
     case ELFOSABI_TRU64:	return "UNIX - TRU64";
     case ELFOSABI_MODESTO:	return "Novell - Modesto";
     case ELFOSABI_OPENBSD:	return "UNIX - OpenBSD";
+    case ELFOSABI_OPENVMS:	return "VMS - OpenVMS";
+    case ELFOSABI_NSK:		return "HP - Non-Stop Kernel";
+    case ELFOSABI_AROS:		return "Amiga Research OS";
     case ELFOSABI_STANDALONE:	return _("Standalone App");
     case ELFOSABI_ARM:		return "ARM";
     default:

2003-01-16  Fabio Alemagna  <falemagn@aros.org>

        * common.h (ELFOSABI_AROS): Defined.
        (ELFOSABI_OPENVMS): Likewise.
        (ELFOSABI_NSK): Likewise.

--- include/elf/common.h.jj  Thu Jan 16 18:30:05 2003
+++ include/elf/common.h     Thu Jan 16 17:58:55 2003
@@ -71,6 +71,9 @@
 #define ELFOSABI_TRU64  10      /* TRU64 UNIX */
 #define ELFOSABI_MODESTO 11     /* Novell Modesto */
 #define ELFOSABI_OPENBSD 12     /* OpenBSD */
+#define ELFOSABI_OPENVMS 13     /* OpenVMS */
+#define ELFOSABI_NSK     14     /* Hewlett-Packard Non-Stop Kernel */
+#define ELFOSABI_AROS    15     /* Amiga Research OS */
 #define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */
 #define ELFOSABI_ARM   97	/* ARM */

---- Ends here ----


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