nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: mipsel-linux-gcc keeps core dumping
From: Yu Xuanwei
Date: Thu, 1 Feb 2001 09:07:33 +0800


----- Original Message -----
From: Alex Holden <alex@linuxhacker.org>
To: Yu Xuanwei <yxw@chinacluster.com>
Cc: nanogui linuxhacker <nanogui@linuxhacker.org>
Sent: Wednesday, January 31, 2001 5:53 PM
Subject: Re: mipsel-linux-gcc keeps core dumping


> On Wed, 31 Jan 2001, Yu Xuanwei wrote:
> > > Don't do that- strip removes the symbols which are needed when linking
the
> > > objects together. You can strip the program after it's been linked
> > > together.
> > I doubt it. As far as I know, a striped library is available.
>
> [alex@hyperspace tea-total]# rm -f teatotal
> [alex@hyperspace tea-total]# strip *.o
> [alex@hyperspace tea-total]# make teatotal
> gcc  -s -o teatotal teatotal.o teauntea.o tea-kgen.o randdev.o tead.o
> teatun.o teash.o teacp.o teaprot.o huffman.o heap.o base64.o md5.o btea.o
> readkey.o lineget.o util.o getarg.o
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x36): undefined reference to `main'
> collect2: ld returned 1 exit status
> make: *** [teatotal] Error 1
> [alex@hyperspace tea-total]#
>

You are right. I misunderstood you. what I meant is that the library
binaries linked Ok can be striped. That won't affect the running a.out. Is
this right?

> --
> ------- Alex Holden -------
> http://www.linuxhacker.org/
>  http://www.robogeeks.org/
>
>


nanogui@linuxhacker.org