diff options
author | Kevin Buettner <kevinb@redhat.com> | 2025-04-23 21:39:28 -0700 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2025-04-24 09:54:42 -0700 |
commit | 3b2dcfb78988846b9a6297865b417130bf1765bc (patch) | |
tree | 23e6d162bd5321f8d3bbaba6fd41fac42bd7a202 /libctf/ctf-error.c | |
parent | e1bedd1b21ec7c3445eafe7cb4557ff6563e7f3b (diff) | |
download | binutils-3b2dcfb78988846b9a6297865b417130bf1765bc.zip binutils-3b2dcfb78988846b9a6297865b417130bf1765bc.tar.gz binutils-3b2dcfb78988846b9a6297865b417130bf1765bc.tar.bz2 |
Track and fetch TLS module ids for MUSL and GLIBC
This commit adds, to solib-svr4.h and solib-svr4.c, functions
glibc_link_map_to_tls_module_id and musl_link_map_to_tls_module_id for
use with callers in a new file svr4-tls-tdep.c (which is not in this
commit). It adds a number of helper functions for implementing link
map to module id support.
It also renames existing function 'find_program_interpreter' to
'svr4_find_program_interpreter' and makes it visible to other source
files within GDB. It will be used in the libc sniffing code in
svr4-tls-tdep.c in a later commit in this series. The libc sniffer is
needed in order to know which link map to module id function to call
as the method for determining module ids differs between libc /
dynamic linker implementations. These details are discussed in
comments in the patch.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=24548
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31563
Tested-By: Luis Machado <luis.machado@arm.com>
Approved-By: Luis Machado <luis.machado@arm.com>
Diffstat (limited to 'libctf/ctf-error.c')
0 files changed, 0 insertions, 0 deletions