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 |