mthumb in specs file

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


Shaun Jackman wrote:
> Is it possible by hacking the specs file to change the target for
> arm-elf-gcc from -marm to -mthumb? I tried a few obvious things like
> changing marm in *multilib_defaults to mthumb, but this did not have
> the desired effect.

You have to do more than that.  multilib_defaults only controls what 
libraries we link against.  You also need to pass -mthumb by default to 
cc1 and perhaps also the assembler and linker.  Try using gcc -v -mthumb 
  and comparing the result against gcc -v, and then writing specs that 
mimic what -v -mthumb does.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list