Nick Clifton wrote:
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
binutils-2.17 is able to do it! thank you for the help.
-jb
--
mathematician, n.:
Some one who believes imaginary things appear right before your
i's.