Specifying a linker script from the specs file

James E Wilson wilson@specifixinc.com
Thu Mar 10 22:14:00 GMT 2005


Shaun Jackman wrote:
> Why does the above specs snippet cause gcc to forget it's linking
> against thumb libraries?

The -mthumb support works by passing extra -L options to the linker. 
Try using -v and looking at the linker options.

You didn't include your linker script, but a possibility here is that 
you are overriding path names in your linker script, preventing the -L 
options from working as intended.

Also, note that there is a linker --verbose switch that may help debug 
what the linker is doing.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list