From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28839 invoked by alias); 7 May 2002 20:18:36 -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 28825 invoked from network); 7 May 2002 20:18:34 -0000 Received: from unknown (HELO dr-evil.shagadelic.org) (208.176.2.162) by sources.redhat.com with SMTP; 7 May 2002 20:18:34 -0000 Received: by dr-evil.shagadelic.org (Postfix, from userid 7518) id 00DCA9869; Tue, 7 May 2002 13:18:33 -0700 (PDT) Date: Tue, 07 May 2002 13:18:00 -0000 From: Jason R Thorpe To: binutils@sources.redhat.com Cc: gdb-patches@sources.redhat.com Subject: [PATCH/RFA] Define various OS/ABI note types Message-ID: <20020507131833.M503@dr-evil.shagadelic.org> Reply-To: thorpej@wasabisystems.com Mail-Followup-To: Jason R Thorpe , binutils@sources.redhat.com, gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nzri8VXeXB/g5ayr" Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Wasabi Systems, Inc. X-SW-Source: 2002-05/txt/msg00173.txt.bz2 --nzri8VXeXB/g5ayr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 375 The following patch to include/elf/common.h defines the note types used by GNU and NetBSD ABI identification notes. These are needed by GDB. OK to commit? * 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. -- -- Jason R. Thorpe --nzri8VXeXB/g5ayr Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=elf-common-patch Content-length: 895 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 7 May 2002 20:15:19 -0000 @@ -358,6 +358,17 @@ #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 + /* 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. */ --nzri8VXeXB/g5ayr--