This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Section garbage collection problem
- From: "H.J. Lu" <hjl at lucon dot org>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: Denys Vlasenko <vda dot linux at googlemail dot com>, binutils at sourceware dot org, Alan Modra <amodra at bigpond dot net dot au>
- Date: Wed, 19 Sep 2007 06:40:01 -0700
- Subject: Re: Section garbage collection problem
- References: <200709161942.25443.vda.linux@googlemail.com> <p73wsumvoxs.fsf@bingen.suse.de>
On Wed, Sep 19, 2007 at 02:07:27PM +0200, Andi Kleen wrote:
>
> The bigger problem is telling ld that it can drop smp_locks
> snippets which only points to otherwise unused functions. Don't know
> of a solution for that. But if it's not done then any function
> with any such section refering to it couldn't be discarded.
>
Have you trie put smp_locks and unused function in the same
comdat group?
H.J.