From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1EgLp9-0005dY-BM for garchives@archives.gentoo.org; Sun, 27 Nov 2005 12:40:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jARCcAck014535; Sun, 27 Nov 2005 12:38:10 GMT Received: from skinny.southernlinux.net (ns2.rednecks.net [64.192.52.5]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jARCXbaQ007557 for ; Sun, 27 Nov 2005 12:33:38 GMT Received: (qmail 26946 invoked by uid 210); 27 Nov 2005 07:26:44 -0500 Received: from 64.192.53.57 by skinny (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.82/1195. f-prot: 4.4.2/3.14.11. spamassassin: 3.0.2. perlscan: 1.25st. Clear:RC:1(64.192.53.57):. Processed in 0.061249 secs); 27 Nov 2005 12:26:44 -0000 Received: from unknown (HELO montgomery-57.epproach.net) (64.192.53.57) by 0 with SMTP; 27 Nov 2005 07:26:43 -0500 Subject: Re: [gentoo-dev] Split ELF Debug (default or not?) From: Ned Ludd To: gentoo-dev@lists.gentoo.org In-Reply-To: References: <1133031325.5422.317.camel@localhost> Content-Type: text/plain Organization: Gentoo Linux Date: Sun, 27 Nov 2005 07:18:13 -0500 Message-Id: <1133093893.21175.347.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: aa77e34a-bf9d-443b-82c6-7f47a555503e X-Archives-Hash: c520027ea67e4b40459d3a204f54fc89 On Sun, 2005-11-27 at 10:53 +0100, Kevin F. Quinn wrote: > On 26/11/2005 13:55:25, Ned Ludd (solar@gentoo.org) 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 Gentoo Linux -- gentoo-dev@gentoo.org mailing list