This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Problem with glibc-2.1.3 and gcc-2.95.2 -ffunction-sections
- To: greyham at research dot canon dot com dot au (Graham Stoney)
- Subject: Re: Problem with glibc-2.1.3 and gcc-2.95.2 -ffunction-sections
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 05 Apr 2000 08:59:09 -0700
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <20000405095418.B32F8505E7@brixi.research.canon.com.au>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
greyham@research.canon.com.au (Graham Stoney) writes:
> I've just run into some grief cross-compiling a simple hello world program
> statically linking against glibc-2.1.3 cross-compiled using gcc-2.95.2 with
> -ffunction-sections & -fdata-sections and the binutils-000330 snapshot
> configured for a powerpc-linux target.
It is not necessary to use these options. They are useful only for
statically linked applications and the sources are already structured
so that the least possible code is linked in the application.
Otherwise there wouldn't be thousands of files in the sources.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------