--gc-sections and --emit-relocs

David Lamy-Charrier david.lamy@gmail.com
Sat Dec 23 08:14:00 GMT 2006


Hi,

I am interested in exactly the same feature and I ask this question on
the mailing list on October 11th or 12th.

Here is the response I get from Nick Clifton:
http://sourceware.org/ml/binutils/2006-10/msg00082.html
and
http://sourceware.org/ml/binutils/2006-10/msg00084.html

If you find any ways/patchs to make it work, I am highly interested.

Hope this help,
David

2006/12/22, Tristan Gingold <tgingold@free.fr>:
> Hi,
>
> It seems --gc-sections is disabled when --emit-relocs is set.  Although this is
> not specified in the documentation, a warning is emitted and the sources
> are clear about this point.
>
> Is there any foundamental reasons for this ?
> Does supporting --gc-sections when --emit-relocs require a lot of work ?
>
> I'd like to be able to reduce the size of static relocatable modules (not .so!)
>
> Thanks,
> Tristan.
>



More information about the Binutils mailing list