summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/include
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2013-07-18 17:25:50 +0000
committeremaste <emaste@FreeBSD.org>2013-07-18 17:25:50 +0000
commit71f36ebafc0f4422d0ac42c0b8d466d57f14bedd (patch)
tree259a4c07d4650d26064d28d2a1ecd8d13d220421 /contrib/binutils/include
parent110931b35d69de2ab71d15fa3c64a6b05797e419 (diff)
downloadFreeBSD-src-71f36ebafc0f4422d0ac42c0b8d466d57f14bedd.zip
FreeBSD-src-71f36ebafc0f4422d0ac42c0b8d466d57f14bedd.tar.gz
Handle FreeBSD-specific ELF notes
Add a function to return the specific type, when the note's Name field is 'FreeBSD'. r249558 added FreeBSD-specific ELF note types that reuse type numbers of existing generic / Linux types. This caused 'readelf -n' to produce incorrect output on FreeBSD core files. Sponsored by: DARPA, AFRL MFC after: 3 days
Diffstat (limited to 'contrib/binutils/include')
-rw-r--r--contrib/binutils/include/elf/common.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/contrib/binutils/include/elf/common.h b/contrib/binutils/include/elf/common.h
index eb38192..92b8f4d 100644
--- a/contrib/binutils/include/elf/common.h
+++ b/contrib/binutils/include/elf/common.h
@@ -388,7 +388,6 @@
#define NT_PRPSINFO 3 /* Contains copy of prpsinfo struct */
#define NT_TASKSTRUCT 4 /* Contains copy of task struct */
#define NT_AUXV 6 /* Contains copy of Elfxx_auxv_t */
-#define NT_THRMISC 7 /* Contains copy of thrmisc struct */
#define NT_PRXFPREG 0x46e62b7f /* Contains a user_xfpregs_struct; */
/* note name must be "LINUX". */
@@ -401,6 +400,19 @@
#define NT_LWPSINFO 17 /* Has a struct lwpsinfo_t */
#define NT_WIN32PSTATUS 18 /* Has a struct win32_pstatus */
+/* Note segments for core files on FreeBSD systems. Note name
+ must start with "FreeBSD". */
+#define NT_THRMISC 7 /* Contains copy of thrmisc struct */
+#define NT_PROCSTAT_PROC 8
+#define NT_PROCSTAT_FILES 9
+#define NT_PROCSTAT_VMMAP 10
+#define NT_PROCSTAT_GROUPS 11
+#define NT_PROCSTAT_UMASK 12
+#define NT_PROCSTAT_RLIMIT 13
+#define NT_PROCSTAT_OSREL 14
+#define NT_PROCSTAT_PSSTRINGS 15
+#define NT_PROCSTAT_AUXV 16
+
/* Note segments for core files on NetBSD systems. Note name
must start with "NetBSD-CORE". */
OpenPOWER on IntegriCloud