define linker section for entire file

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

define linker section for entire file

ソリューションへジャンプ
1,156件の閲覧回数
shanescott
Contributor III

Using "__attribute__"  I am able to locate a function in a particular linker section.  This is ok sometimes but for large files it becomes tedious.  Is there a way to specify a section for the entire file?

Thanks 

0 件の賞賛
返信
1 解決策
998件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Not to specify a section for the file, but you can use the object file name in the linker file as shown in

Putting Code of Files into Special Section with the GNU Linker | MCU on Eclipse 

I hope this helps,

Erich

元の投稿で解決策を見る

2 返答(返信)
998件の閲覧回数
shanescott
Contributor III

Perfect! Thanks

0 件の賞賛
返信
999件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Not to specify a section for the file, but you can use the object file name in the linker file as shown in

Putting Code of Files into Special Section with the GNU Linker | MCU on Eclipse 

I hope this helps,

Erich