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

Maciej W. Rozycki macro@codesourcery.com
Fri Jun 8 15:45:00 GMT 2012


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



More information about the Gdb-patches mailing list