This is the mail archive of the 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]


Gold emits a note holding the version of gold which was used to create
the binary.  This has proved useful for identifying and fixing bugs.
It is similar to the .comment section created by gcc, except that it
follows the note format defined by the ELF ABI.

I committed this patch to define the note type used by gold.  This is
a code within the GNU note namespace.


2008-03-24  Ian Lance Taylor  <>

	* common.h (NT_GNU_GOLD_VERSION): Define.

Index: include/elf/common.h
RCS file: /cvs/src/src/include/elf/common.h,v
retrieving revision 1.92
diff -u -r1.92 common.h
--- include/elf/common.h	12 Mar 2008 08:36:58 -0000	1.92
+++ include/elf/common.h	25 Mar 2008 04:56:09 -0000
@@ -424,6 +424,7 @@
 #define NT_GNU_ABI_TAG		1
 #define NT_GNU_HWCAP		2	/* Used by and kernel vDSO.  */
 #define NT_GNU_BUILD_ID		3	/* Generated by ld --build-id.  */
+#define NT_GNU_GOLD_VERSION	4	/* Generated by gold.  */
 /* Values used in GNU .note.ABI-tag notes (NT_GNU_ABI_TAG).  */
 #define GNU_ABI_TAG_LINUX	0

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