How to forcibly link fuunctions in linker file?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to forcibly link fuunctions in linker file?

跳至解决方案
1,498 次查看
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,208 次查看
kef
Specialist I

ENTRIES

   foo1 foo2

   foo3

END

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,208 次查看
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,209 次查看
kef
Specialist I

ENTRIES

   foo1 foo2

   foo3

END

 

0 项奖励
回复