S32DS FORCEFILES and FORCEACTIVE

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32DS FORCEFILES and FORCEACTIVE

ソリューションへジャンプ
1,251件の閲覧回数
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}

ラベル(1)
タグ(2)
1 解決策
1,069件の閲覧回数
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

元の投稿で解決策を見る

1 返信
1,070件の閲覧回数
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