How to put glibc-2.2.2 on a diet...

David Korn dkorn@pixelpower.com
Fri Jun 22 08:44:00 GMT 2001


>-----Original Message-----
>From: Peter Barada [ mailto:pbarada@mail.wm.sps.mot.com ]
>Sent: 22 June 2001 16:41


>[/tmp] > powerpc-linux-size hello
>   text	   data	    bss	    dec	    hex	filename
> 256268	   4124	   3348	 263740	  4063c	hello
>[/tmp] > powerpc-linux-strip hello
>[/tmp] > powerpc-linux-size hello
>   text	   data	    bss	    dec	    hex	filename
> 256268	   4124	   3348	 263740	  4063c	hello
>[/tmp] > ls -l hello
>-rwxrwxr-x    1 pbarada  users      267528 Jun 22 11:38 hello*
>
>stripping it can't make it smaller than the size of the elf header,
>text segment and data segment.

  Ideally you want to build glibc using -ffunction-sections, the same
way that libgcc works.  Dunno if just saying CFLAGS=-ffunction-sections
on the glibc make command line would do the job or not, but you could
do worse than give it a go.  I am unfamiliar with the glibc build
process and can't even begin to guess whether it will work or not, but as
long as it doesn't do anything too tricky it should be ok.


      DaveK
-- 
we are not seats or eyeballs or end users or consumers.
we are human beings - and our reach exceeds your grasp.
                    deal with it.                      - cluetrain.org 


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list