This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]