[PATCH] nptl: Export libthread_db-used symbols under GLIBC_PRIVATE

Simon Marchi simon.marchi@polymtl.ca
Sun Jun 20 12:38:07 GMT 2021


On 2021-06-17 3:23 p.m., Florian Weimer via Gdb wrote:
> Kevin, this *almost* gives us the perfect debugging experience with your
> patched GDB in Fedora 35, according to my preliminary tests.  A build
> with the patch is running here:
> 
>   <https://koji.fedoraproject.org/koji/buildinfo?buildID=1773177>
> 
> However, it seems that GDB still needs pthread_create in the .symtab to
> trigger loading of libpthread_db.  A fully stripped libc.so.6 without
> .symtab does not trigger loading in my experiments.  (The other symbols
> we preserve for valgrind's sake and are immaterial to GDB.)  In other
> words,

Stupid question, but: since pthread_create is a function exposed by the
libc.so shared library, won't there still be an entry for it in .dynsym?
And if so, shouldn't GDB see it?

Simon


More information about the Libc-alpha mailing list