From mint-bounce@lists.fishpool.fi  Thu Aug  6 00:41:50 2009
From: Eero Tamminen <oak@helsinkinet.fi>
Organization: Koti
To: mint@lists.fishpool.fi
Subject: Re: [MiNT] Native gcc 4.4.1 and binutils 2.19.1
Date: Thu, 6 Aug 2009 07:39:00 +0300
User-Agent: KMail/1.9.9
Cc: Miro Kropacek <miro.kropacek@gmail.com>,
        Vincent =?iso-8859-1?q?Rivi=E8re?= <vincent.riviere@freesbee.fr>
References: <c6533ef60907260932r777b32a8nd3057375c89eab5f@mail.gmail.com> <4A79FDC7.5060805@freesbee.fr> <c6533ef60908051500q19b82e4ay91268bb86e2a65c1@mail.gmail.com>
In-Reply-To: <c6533ef60908051500q19b82e4ay91268bb86e2a65c1@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Disposition: inline
Message-Id: <200908060739.00960.oak@helsinkinet.fi>
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: oak@helsinkinet.fi
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id n764fnnd025997

Hi,

On Thursday 06 August 2009, Miro Kropacek wrote:
> Btw, I've got such feeling stripping is allowed also on libs but one
> must use another switch (i.e. not strip -s libc.a but something else)
> ?

>From the strip manual page:
---------
       -s
       --strip-all
           Remove all symbols.

       -g
       -S
       -d
       --strip-debug
           Remove debugging symbols only.
---------


Btw. On Debian stripping is done by the packaging tools Debhelper dh_strip
script which automatically does the right thing.  It also automatically puts
the debug symbols to a separate debug symbols file (/usr/lib/debug/<path to
corresponding binary>) and adds the debug symbol file path & CRC to
the binary's .gnu_debuglink section when so requested 
(with "--dbg-package=<package name>"dh_strip option).

Gdb etc. will then automatically find the debug symbols if they're installed
and one doesn't need to have two sets of binaries, one with debug symbols
and ones without.

Doesn't MiNT RPM & related tools support anything like this?

(Nowadays Ubuntu and RedHat build machines do these kind of debug symbol
packages automatically and put them to a special repo.  As having debug sym
packages almost doubles the number of packages, having them in default
repo would slow down apt etc. when they check for updates and dependencies.
With separate repo one can enable it only when needed.)


	- Eero


