How to forcibly link fuunctions in linker file?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to forcibly link fuunctions in linker file?

Jump to solution
359 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Solution
69 Views
kef
Specialist I

ENTRIES

   foo1 foo2

   foo3

END

 

View solution in original post

0 Kudos
2 Replies
69 Views
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.

70 Views
kef
Specialist I

ENTRIES

   foo1 foo2

   foo3

END

 

View solution in original post

0 Kudos