Re: [PATCH] solib-svr4: Avoid unwanted shlib internal BPs When debugging Linux kernel or u-boot

Maciej W. Rozycki
2012-06-08T15:45:14Z

On Fri, 8 Jun 2012, Pedro Alves wrote:

> [...] So it is a contrived
> example to strip "_dl_debug_state" and "_start" but not "main", because
> that's not something that is natural to do.

Indeed, I missed that you referred to that peculiarity rather than
dlopening from a static binary in general.

> "_dl_debug_state" ends up available on static links too, I don't see what
> is there to do.

It can be stripped from a static binary, while it always stays as a
dynamic symbol in ld.so, even if you strip the dynamic linker. However in
practice that probably does not matter indeed.

Maciej