Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2019 09:04:52 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352551 - head/sys/sys
Message-ID:  <201909200904.x8K94qs0068775@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909200904.x8K94qs0068775>