#162363 - jimis - Mon Sep 01, 2008 9:13 am
How can I set my project to use a custom linker script?
From what I have learned so far I need to change the linker parameters. I created a file named customds_arm7.specs
----Original "ds_arm7.specs"
---------------------------------------------------------------
%rename link old_link
*link:
%(old_link) -T ds_arm7.ld%s
*startfile:
ds_arm7_crt0%O%s crti%O%s crtbegin%O%s
----------------------------------------------------------------
----Custom file "customds_arm7.specs"
--------------------------------------------------------------------
%rename link old_link
*link:
%(old_link) -T custom_arm7.ld%s
*startfile:
ds_arm7_crt0%O%s crti%O%s crtbegin%O%s
---------------------------------------------------------------------
All i did was to replace -T ds_arm7.ld%s with -T custom_arm7.ld%s
(the custom_arm7.ld is a copy of the original ds_arm7.ld)
In the makefile in the linker parameters i wrote -specs=customds_arm7.specs and i don't get any errors.
Is this method correct?
From what I have learned so far I need to change the linker parameters. I created a file named customds_arm7.specs
----Original "ds_arm7.specs"
---------------------------------------------------------------
%rename link old_link
*link:
%(old_link) -T ds_arm7.ld%s
*startfile:
ds_arm7_crt0%O%s crti%O%s crtbegin%O%s
----------------------------------------------------------------
----Custom file "customds_arm7.specs"
--------------------------------------------------------------------
%rename link old_link
*link:
%(old_link) -T custom_arm7.ld%s
*startfile:
ds_arm7_crt0%O%s crti%O%s crtbegin%O%s
---------------------------------------------------------------------
All i did was to replace -T ds_arm7.ld%s with -T custom_arm7.ld%s
(the custom_arm7.ld is a copy of the original ds_arm7.ld)
In the makefile in the linker parameters i wrote -specs=customds_arm7.specs and i don't get any errors.
Is this method correct?