striping .a files

Michal Moskal malekith at pld-linux.org
Mon May 13 18:33:46 CEST 2002


On Mon, May 13, 2002 at 06:30:13PM +0200, Michal Moskal wrote:
> On Mon, May 13, 2002 at 06:21:06PM +0200, Tomasz Kłoczko wrote:
> > On Mon, 13 May 2002, Michal Moskal wrote:
> > 
> > > On Mon, May 13, 2002 at 06:11:30PM +0200, Tomasz Kłoczko wrote:
> > > > On Mon, 13 May 2002, Michal Moskal wrote:
> > > > > So? Are you going to link anything staticaly just to debug it? In order
> > > > > to debug it properly you gonna have to have sources anyway. Therefore
> > > > > you can build package with --debug. 
> > > > 
> > > > Of course nott but with this stub debug level information you can find for
> > > > example line number in back trace.
> > > 
> > > If you are not going to link something staticaly why are you arguing
> > > about striping static libraries?
> > 
> > Because if you pass -static to link options you must have some static
> > libriaries with *any* debug info. 
> 
> What? You need symbol information, not debug information. This is
> different.

Proof:

[malekith at ep09 y]$ cat main.c
main()
{
foo();
}
[malekith at ep09 y]$ cat test.c
int foo()
{
}
[malekith at ep09 y]$ cc -c *.c
[malekith at ep09 y]$ ar rcs foo.a test.o
[malekith at ep09 y]$ ls -l foo.a
-rw-r--r--    1 malekith pld           852 May 13 18:32 foo.a
[malekith at ep09 y]$ cc main.o foo.a
[malekith at ep09 y]$ strip -g foo.a
[malekith at ep09 y]$ ls -l foo.a    
-rw-r--r--    1 malekith pld           828 May 13 18:32 foo.a
[malekith at ep09 y]$ cc main.o foo.a
[malekith at ep09 y]$ 

-- 
: Michal Moskal :::::::: malekith/at/pld.org.pl :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h



More information about the pld-devel-en mailing list