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 21:09:13 -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.0008251256320.18022-100000@front.linuxcare.com.au>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Alan Modra <alan@linuxcare.com.au> writes:
> I don't particularly like a). Adding support in gas/config/obj-elf.c for
> a "k" section attribute letter and corresponding "keep" section attribute
> word is trivial. The only tricky thing to decide is whether such an
> attribute needs to appear in the elf section flags (ie. needs a new SHF_
> flag), or should just affect the BFD section flags. I'm inclined to think
> there is no need for a new SHF_ flag.
The revised ELF gABI includes support for section groups. This allows
to say that sections from the group are removed either all or none.
This is what I meant by saying "use --gc-sections when it's
implemented". If somebody wants to do it in BFD, fine. Otherwise it
has to wait until the new implementation is available.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------