From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21559 invoked by alias); 8 May 2002 05:33:45 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21545 invoked from network); 8 May 2002 05:33:44 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 8 May 2002 05:33:44 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id ABF389869; Tue, 7 May 2002 22:33:43 -0700 (PDT) Date: Tue, 07 May 2002 22:33:00 -0000 From: Jason R Thorpe To: David O'Brien Cc: binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: [PATCH/RFA] Define various OS/ABI note types Message-ID: <20020507223343.A3435@dr-evil.shagadelic.org> Reply-To: thorpej@wasabisystems.com Mail-Followup-To: Jason R Thorpe , David O'Brien , binutils@sources.redhat.com, gdb-patches@sources.redhat.com References: <20020507131833.M503@dr-evil.shagadelic.org> <20020507152801.A30973@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020507152801.A30973@dragon.nuxi.com>; from obrien@FreeBSD.org on Tue, May 07, 2002 at 03:28:01PM -0700 Organization: Wasabi Systems, Inc. X-SW-Source: 2002-05/txt/msg00198.txt.bz2 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 635 On Tue, May 07, 2002 at 03:28:01PM -0700, David O'Brien wrote: > Please add the FreeBSD .note.ABI-tag if you are going to do this. > FreeBSD has a .note.ABI-tag with note type "1", vendor "FreeBSD", and > description that is a 6-digit number encoding major and minor version. Ok, I've added the note type definition, but I have bothered adding macros to decode the version number. * common.h (NT_GNU_ABI_TAG): Define. (GNU_ABI_TAG_LINUX): Define. (GNU_ABI_TAG_HURD): Define. (GNU_ABI_TAG_SOLARIS): Define. (NT_NETBSD_IDENT): Define. (NT_FREEBSD_ABI_TAG): Define. -- -- Jason R. Thorpe --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=elf-common-patch Content-length: 1002 Index: common.h =================================================================== RCS file: /cvs/src/src/include/elf/common.h,v retrieving revision 1.41 diff -u -r1.41 common.h --- common.h 31 Jan 2002 17:33:02 -0000 1.41 +++ common.h 8 May 2002 05:26:44 -0000 @@ -358,6 +358,21 @@ #define NT_VERSION 1 /* Contains a version string. */ #define NT_ARCH 2 /* Contains an architecture string. */ +/* Values for GNU .note.ABI-tag notes. Note name is "GNU". */ + +#define NT_GNU_ABI_TAG 1 +#define GNU_ABI_TAG_LINUX 0 +#define GNU_ABI_TAG_HURD 1 +#define GNU_ABI_TAG_SOLARIS 2 + +/* Values for NetBSD .note.netbsd.ident notes. Note name is "NetBSD". */ + +#define NT_NETBSD_IDENT 1 + +/* Values for FreeBSD .note.ABI-tag notes. Note name is "FreeBSD". */ + +#define NT_FREEBSD_ABI_TAG 1 + /* These three macros disassemble and assemble a symbol table st_info field, which contains the symbol binding and symbol type. The STB_ and STT_ defines identify the binding and type. */ --RnlQjJ0d97Da+TV1--