[PATCH 0/5] Handle FreeBSD's NT_X86_SEGBASES core dump note
Alan Modra
amodra@gmail.com
Wed Mar 30 05:04:23 GMT 2022
On Thu, Mar 24, 2022 at 01:56:11PM -0700, John Baldwin wrote:
> This core dump note contains the value of the %fsbase and %gsbase
> registers (or on i386 the base address of the respective segments).
> This is used to resolve the address of TLS variables in core dumps.
>
> John Baldwin (5):
> elfcore_grok_freebsd_note: Remove checks of note->namesz.
> Recognize FreeBSD core dump note for x86 segment base registers.
> Use pseudosections for NT_FREEBSD_X86_SEGBASES core dump notes.
> FreeBSD/x86: Read segment base registers from NT_X86_SEGBASES.
> Use I386_GSBASE_REGNUM in i386fbsd_get_thread_local_address.
>
> bfd/ChangeLog | 13 +++++++++++++
> bfd/elf-bfd.h | 2 ++
> bfd/elf.c | 24 ++++++++++++++++--------
> binutils/ChangeLog | 5 +++++
> binutils/readelf.c | 2 ++
> gdb/amd64-fbsd-tdep.c | 18 ++++++++++++++++++
> gdb/i386-fbsd-tdep.c | 25 ++++++++++++++++++++-----
> include/ChangeLog | 4 ++++
> include/elf/common.h | 1 +
> 9 files changed, 81 insertions(+), 13 deletions(-)
The binutils part of this series is fine.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list