svn commit: r352551 - head/sys/sys
Ed Maste
emaste at FreeBSD.org
Fri Sep 20 09:04:52 UTC 2019
Author: emaste
Date: Fri Sep 20 09:04:52 2019
New Revision: 352551
URL: https://svnweb.freebsd.org/changeset/base/352551
Log:
elf_common: add ELF note names
r348628 added a definition of NT_GNU_BUILD_ID. Some software (Valgrind)
also expects a #define for the note name (ELF_NOTE_GNU) in the case that
NT_GNU_BUILD_ID is defined.
PR: 239669
Reported by: Yuichiro NAITO
Sponsored by: The FreeBSD Foundation
Event: EuroBSDCon FreeBSD DevSummit 2019
Modified:
head/sys/sys/elf_common.h
Modified: head/sys/sys/elf_common.h
==============================================================================
--- head/sys/sys/elf_common.h Fri Sep 20 08:20:20 2019 (r352550)
+++ head/sys/sys/elf_common.h Fri Sep 20 09:04:52 2019 (r352551)
@@ -769,6 +769,12 @@ typedef struct {
#define LL_DELAY_LOAD 0x10
#define LL_DELTA 0x20
+/* Note section names */
+#define ELF_NOTE_FREEBSD "FreeBSD"
+#define ELF_NOTE_NETBSD "NetBSD"
+#define ELF_NOTE_SOLARIS "SUNW Solaris"
+#define ELF_NOTE_GNU "GNU"
+
/* Values for n_type used in executables. */
#define NT_FREEBSD_ABI_TAG 1
#define NT_FREEBSD_NOINIT_TAG 2
More information about the svn-src-all
mailing list