]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/solib-svr4: check that solib is SVR4 in tls_maybe_fill_slot and tls_maybe_erase_slot
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 23 May 2025 16:30:52 +0000 (12:30 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 24 May 2025 14:07:42 +0000 (10:07 -0400)
commitf76436396f33f583ecec33188777ab73f4e59404
tree1fd7174778ad7400bce066c499a7e6016015faad
parent77307a766b6bb1ddd3604f335f30f2e751e77f45
gdb/solib-svr4: check that solib is SVR4 in tls_maybe_fill_slot and tls_maybe_erase_slot

Functions tls_maybe_fill_slot and tls_maybe_erase_slot blindly assume
that the passe solibs come from solib-svr4.  This is not always the
case, because they are called even on the systems where the solib
implementation isn't solib-svr4.  Add some checks to return early in
that case.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32990
Change-Id: I0a281e1f4826aa1914460c2213f0fae1bdc9af7c
Tested-By: Hannes Domani <ssbssa@yahoo.de>
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/solib-svr4.c