Page 1 of 1

gba.specs

Posted: Fri Jan 27, 2012 10:41 pm
by GABOSNAKE
Hi everyone, I have a question about the gba.specs file, this file is used by arm-eabi-gcc for compiling gba-arm code, so...
Somebody can explain me the function of this file?

file: gba.specs

Code: Select all

%rename link                old_link

*link:
%(old_link) -T gba_cart.ld%s

*startfile:
gba_crt0%O%s crti%O%s crtbegin%O%s
Thanks!

Re: gba.specs

Posted: Tue Feb 07, 2012 4:17 am
by Dwedit
The only part of the .specs file I know is the part where it picks the linkscript (.ld) file. Since I often use custom linkscripts, I need to make the linker use a different specs file just to pick a different linkscript.

Re: gba.specs

Posted: Sun Feb 12, 2012 3:57 am
by GABOSNAKE
Dwedit wrote:The only part of the .specs file I know is the part where it picks the linkscript (.ld) file. Since I often use custom linkscripts, I need to make the linker use a different specs file just to pick a different linkscript.
Oh good, i find the custom script, thank's...