writing linker scripts...
Nick Clifton
nickc@cambridge.redhat.com
Sat Apr 28 00:45:00 GMT 2001
Hi Alan,
> Nick,
>
> The -no-check-sections was just the ticket.
>
> Is there anyway to set that from inside the linker script, so that it's ALWAYS
> asserted?
>
> I know I could make gcc always pass -Wl,-no-check-sections to every compile, but
> I want to catch people who think that they can do 'ld' commands directly too.
I thought about this at the time I wrote my original reply, but I do
not believe that there is a way (currently) to do this.
My suggestion is that consider developing a patch either to implement
a generic mechanism for linker scripts to set command line switches,
or else a simpler mechanism for a linker script to specify that
certain sections should not be checked for overlaps.
Cheers
Nick
More information about the Binutils
mailing list