On Sun, 2005-11-27 at 10:53 +0100, Kevin F. Quinn wrote:
> On 26/11/2005 13:55:25, Ned Ludd ([EMAIL PROTECTED]) wrote:
> > On Sat, 2005-11-26 at 19:30 +0100, Bruno wrote:
> > 
> > > What's the advantage of splitting out the debug info to some extra 
> > > location instead of leaving it in the original binary (maybe smaller 
> > > foot-print in memory while the debugging info is not used), 
> > 
> > Yes exactly a stripped binary will occupy less space in RAM.
> 
> I may be wrong, but I don't think this is true.  As I understand it,
> debug sections aren't part of the PT_LOAD segments so the loader won't
> load them into memory.

See the objcopy manpage. Look for the --only-keep-debug section.
The entire elf has to be mmaped before individual sections are mapped.


-- 
Ned Ludd <[EMAIL PROTECTED]>
Gentoo Linux

-- 
gentoo-dev@gentoo.org mailing list

Reply via email to