How to forcibly link fuunctions in linker file?

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

How to forcibly link fuunctions in linker file?

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

Hi,

 

how to forcibly link functions in the linker - prm file?

 

in the linker PRM file, what is the syntax to include functions within the ENTRIES keyword?

 

         ENTRIES


                       < function-name syntax ??? >


        END

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,216件の閲覧回数
kef
Specialist I

ENTRIES

   foo1 foo2

   foo3

END

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,216件の閲覧回数
NavidadRedivivu
Contributor III

It should be simply the function name. If you need to specify the precise module (if you have several static functions in several modules with the same name for instance) you can prefix the function name with the module name (e.g. foo.o: myFunc). I think (if memory serves) that you can even use a wildcard character (e.g. foo.o: *).  Things get rather complex if we are talking about C++. I didn't test this but I guess you will have to use the mangled name, which is not especially nice, but at least you have a mean of getting things done.

1,217件の閲覧回数
kef
Specialist I

ENTRIES

   foo1 foo2

   foo3

END

 

0 件の賞賛
返信