diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-01 13:16:46 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-01 13:16:46 -0700 |
commit | a171378aa472fab0407dc1f99e8e7782286719ed (patch) | |
tree | ec638d9e646e1f5b2030fc20f6005511d20f185b /binutils/readelf.c | |
parent | e330d4c033eab2e0e7206a29d6c11a9a59fd205b (diff) | |
download | binutils-a171378aa472fab0407dc1f99e8e7782286719ed.zip binutils-a171378aa472fab0407dc1f99e8e7782286719ed.tar.gz binutils-a171378aa472fab0407dc1f99e8e7782286719ed.tar.bz2 |
Recognize FreeBSD core dump note for x86 segment base registers.
This core dump note contains the value of the base address of the %fs
and %gs segments for both i386 and amd64 core dumps. It is primarily
useful in resolving the address of TLS variables in core dumps.
binutils/ChangeLog:
* readelf.c (get_freebsd_elfcore_note_type): Handle
NT_FREEBSD_X86_SEGBASES.
include/ChangeLog:
* elf/common.h (NT_FREEBSD_X86_SEGBASES): Define.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index a2dbaa4..84c8cfd4 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -20448,6 +20448,8 @@ get_freebsd_elfcore_note_type (Filedata * filedata, unsigned e_type) return _("NT_PROCSTAT_AUXV (auxv data)"); case NT_FREEBSD_PTLWPINFO: return _("NT_PTLWPINFO (ptrace_lwpinfo structure)"); + case NT_FREEBSD_X86_SEGBASES: + return _("NT_X86_SEGBASES (x86 segment base registers)"); } return get_note_type (filedata, e_type); } |