Re: [EXT] Re: gdb does not stop at printf for ppc

Florian Weimer via Libc-help <libc-help-9JcytcrH/[email protected]> Thu, 02 Oct 2025 18:58:46 +0200
Newsgroups gmane.comp.lib.glibc.user,gmane.comp.lib.glibc.alpha,gmane.comp.gdb.devel
Message-ID <[email protected]>
* Peter Bergner via Libc-help:

> Ok, it's an even bigger problem than we thought.  I'm surprised no one
> else has hit this before us.

We've encountered it with fortification and IFUNC resolvers.  It used to
be considered a user error.

> Ok, this is promising and yeah, is what Carl and Uli suggested.
> That said, their comment from the bugzilla:
>
>     The new redirected symbols need to be dynamic symbols in case only
>     the stripped binary is available.

I'd recommend distributions do not strip .symtab on libc.so.6.  I don't
think making this a dynamic symbol is worth it.  It would have to be a
compatibility symbol under a separate symbol version, one for each
variant alias (eight for POWER?).  This is quite a bit of complexity.

Thanks,
Florian