This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: --gc-sections and C library linkage issues (?)
- To: Alan Modra <alan at linuxcare dot com dot au>
- Subject: Re: --gc-sections and C library linkage issues (?)
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 24 Aug 2000 19:54:08 -0700
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, bug-glibc at gnu dot org, binutils at sources dot redhat dot com
- References: <Pine.LNX.4.21.0008251144540.12108-100000@front.linuxcare.com.au>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Alan Modra <alan@linuxcare.com.au> writes:
> You should be able to do this with a reference to the section symbol
> from any section that you know will escape garbage collection.
No, this is not how it's supposed to work. Different .o files
constribute to special sections but only if the functions in those .o
files are used.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------