]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Recognize FreeBSD core dump note for x86 segment base registers.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 1 Apr 2022 20:16:46 +0000 (13:16 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 1 Apr 2022 20:16:46 +0000 (13:16 -0700)
commita171378aa472fab0407dc1f99e8e7782286719ed
treeec638d9e646e1f5b2030fc20f6005511d20f185b
parente330d4c033eab2e0e7206a29d6c11a9a59fd205b
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.
binutils/ChangeLog
binutils/readelf.c
include/ChangeLog
include/elf/common.h