diff options
author | emaste <emaste@FreeBSD.org> | 2013-09-13 18:21:31 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2013-09-13 18:21:31 +0000 |
commit | b61d028aaba1d450a22c74ca0b6864e4f42393a5 (patch) | |
tree | 543b031b9c8b643f5e16d7f63e6cffeffb4a11a2 /contrib/binutils/include | |
parent | 1b9dc8f60c0b501e17ab3dcdceb4fb2797485692 (diff) | |
download | FreeBSD-src-b61d028aaba1d450a22c74ca0b6864e4f42393a5.zip FreeBSD-src-b61d028aaba1d450a22c74ca0b6864e4f42393a5.tar.gz |
Improve readelf notes output for Linux ELF files
Add four ELF note constants:
- NT_FILE and NT_SIGINFO (core file notes output by recent Linux kernels)
- NT_GNU_ABI_TAG (was incorrectly reported as NT_VERSION)
- NT_GNU_BUILD_ID (used for locating standalone debug files)
Approved by: re (kib)
Diffstat (limited to 'contrib/binutils/include')
-rw-r--r-- | contrib/binutils/include/elf/common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/binutils/include/elf/common.h b/contrib/binutils/include/elf/common.h index 92b8f4d..17ca0d5 100644 --- a/contrib/binutils/include/elf/common.h +++ b/contrib/binutils/include/elf/common.h @@ -388,8 +388,10 @@ #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_FILE 0x46494c45 #define NT_PRXFPREG 0x46e62b7f /* Contains a user_xfpregs_struct; */ /* note name must be "LINUX". */ +#define NT_SIGINFO 0x53494749 /* Note segments for core files on dir-style procfs systems. */ @@ -435,6 +437,9 @@ #define GNU_ABI_TAG_FREEBSD 3 #define GNU_ABI_TAG_NETBSD 4 +/* Values for GNU .note.gnu.build-id notes. Note name is "GNU"." */ +#define NT_GNU_BUILD_ID 3 + /* Values for NetBSD .note.netbsd.ident notes. Note name is "NetBSD". */ #define NT_NETBSD_IDENT 1 |