Finding discarded symbols by --gc-sections with ld

Nick Clifton nickc@redhat.com
Mon Sep 8 16:04:00 GMT 2003


Hi Vincent,

> Is there any other way to have the linker specify which
> symbols/sections it discarded with --gc-sections?

Sorry no.  The linker doe snot have this ability.

> For the moment, I am doing a diff on the two linker logs but it is
> not really convenient...

You could easily write a script to automate this, which should make it
simpler to handle.

Cheers
        Nick
        



More information about the Binutils mailing list