Gentoo Archives: gentoo-dev

From: Ned Ludd <solar@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Split ELF Debug (default or not?)
Date: Sun, 27 Nov 2005 12:40:07
Message-Id: 1133093893.21175.347.camel@localhost
In Reply to: Re: [gentoo-dev] Split ELF Debug (default or not?) by "Kevin F. Quinn"
1 On Sun, 2005-11-27 at 10:53 +0100, Kevin F. Quinn wrote:
2 > On 26/11/2005 13:55:25, Ned Ludd (solar@g.o) wrote:
3 > > On Sat, 2005-11-26 at 19:30 +0100, Bruno wrote:
4 > >
5 > > > What's the advantage of splitting out the debug info to some extra
6 > > > location instead of leaving it in the original binary (maybe smaller
7 > > > foot-print in memory while the debugging info is not used),
8 > >
9 > > Yes exactly a stripped binary will occupy less space in RAM.
10 >
11 > I may be wrong, but I don't think this is true. As I understand it,
12 > debug sections aren't part of the PT_LOAD segments so the loader won't
13 > load them into memory.
14
15 See the objcopy manpage. Look for the --only-keep-debug section.
16 The entire elf has to be mmaped before individual sections are mapped.
17
18
19 --
20 Ned Ludd <solar@g.o>
21 Gentoo Linux
22
23 --
24 gentoo-dev@g.o mailing list