S32DS FORCEFILES and FORCEACTIVE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32DS FORCEFILES and FORCEACTIVE

Jump to solution
1,003 Views
yanronglu
Contributor II

How can I achieve the same functionality as CW FORCEFILES in S32DS.

CW lcf file example:

/* This will ensure the rchw and reset vector are not stripped by the linker */
FORCEACTIVE { "bam_rchw" "bam_resetvector" }
FORCEFILES {main.o}

Labels (1)
1 Solution
821 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm not familiar with code warrior linker script. It looks like that on GNU linker you can use just KEEP for particular section: 

.rchw :
{
KEEP(*(.rchw))
} > flash_rchw

.cpu0_reset_vector :
{
KEEP(*(.cpu0_reset_vector))
} > cpu0_reset_vec

 

 

You can find more details in GNU linker documentation https://www.eecs.umich.edu/courses/eecs373/readings/Linker.pdf 

Jiri

View solution in original post

1 Reply
822 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm not familiar with code warrior linker script. It looks like that on GNU linker you can use just KEEP for particular section: 

.rchw :
{
KEEP(*(.rchw))
} > flash_rchw

.cpu0_reset_vector :
{
KEEP(*(.cpu0_reset_vector))
} > cpu0_reset_vec

 

 

You can find more details in GNU linker documentation https://www.eecs.umich.edu/courses/eecs373/readings/Linker.pdf 

Jiri