[PATCH/RFA] Define various OS/ABI note types

Jason R Thorpe thorpej@wasabisystems.com
Tue May 7 22:33:00 GMT 2002


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 <thorpej@wasabisystems.com>
-------------- next part --------------
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.  */


More information about the Gdb-patches mailing list