dead function elimination
Nick Clifton
nickc@redhat.com
Tue Dec 19 01:09:00 GMT 2006
Hi Jimmy,
> If i understand things correctly, there is a restriction on
> '--gc-sections' that it doesn't work if the link is dynamic. What if my
> scenario is like this:
>
> libsomething.a - some static library built with -ffunction-sections
> & -fdata-sections
>
> src.o - my source code also built with -ffucntion-sections
>
> final step:
>
> ld -o exec --gc-sections src.o -lsomething
>
> In the above step, ld simply says
>
> '/usr/bin/ld: Warning: gc-sections option ignored'
Hmm, interesting. I had thought that this would work. I will have to
look into it when I get from vacation. Are you using the most up to
date version of the linker sources ?
Cheers
Nick
More information about the Binutils
mailing list