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}
Solved! Go to Solution.
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
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