]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd: support for NT_386_TLS notes
authorAndrew Burgess <aburgess@redhat.com>
Fri, 25 Jul 2025 18:51:58 +0000 (19:51 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 14 Aug 2025 15:06:47 +0000 (16:06 +0100)
commitea6ec00ff4520895735e4913cb90c933c7296f04
treebb1f7135313068772df075070e991c96c402fb4d
parentd048eee2910878bf46f333f2fdc8ef940bd1638e
bfd: support for NT_386_TLS notes

In a later commit I'd like to add support to GDB for including the
NT_386_TLS note in the core files that GDB creates (using 'gcore'
command).

To achieve this we need some standard boilerplate code added to bfd.

The only part of this patch which I think needs consideration is the
name I selected for the pseudo section to hold the note contents when
a core file is loaded.  I chose '.reg-i386-tls'.  The '.reg' prefix is
the standard used by most other pseudo sections, and the '-i386-tls'
suffix seemed to match the note name, though I added the 'i' to
'i386', instead of just using '.reg-386-tls'.  I thought 'i386' seemed
clearer.

There's no test included here, but when I merge the NT_386_TLS
creation to GDB it will depend on this and act as a test.  I plan to
post that work to the GDB list once this patch is merged.
bfd/elf-bfd.h
bfd/elf.c