Changing linker script (AURIX)

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
HanStep
Newbie
Posts: 3
Joined: Wed Dec 23, 2015 11:53 am

Changing linker script (AURIX)

Post by HanStep » Thu Sep 15, 2016 12:18 pm

Hello,

I would like to implement some memory test functions from a software library (SafeTlib). Several tests require specific linker support. Section alignment and memory section reservations are assumed to be defined by the linker script. I guess the linker script is generated dynamically by Erika (\Debug\master\ee_tc27x_gnu_relocable.ld)

Is there a way to insert own entries or to make changes in the linker script?

Thanks in advance!

Best regards,
Stephan

P.S.: I´m working with Erika Enterprise 2.6.0, GNU compiler and AURIX TC277 microcontroller.

e.guidieri
Full Member
Posts: 166
Joined: Tue May 10, 2011 2:05 pm

Re: Changing linker script (AURIX)

Post by e.guidieri » Fri Sep 16, 2016 1:58 pm

You can use LINKERSCRIPT = "your_linker_script.ld"; entry in CPU_DATA OIL construct.

http://erika.tuxfamily.org/wiki/index.p ... _Aurix#CPU

If you are building as single ELF (As does it seems since you are pointing to a generated file of the single ELF build toolchain) you need to provide the final linkerscript even in the MCU_DATA construct. A good starting point for this linker script is the one you find in the Debug folder, at the end of a normal ERIKA build.

Errico Guidieri

Post Reply