This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

--whole-archive subsitute for Keil Arm Compiler 5

Hello all,

I have 2 lib and final user code.

Let there is one lib called A.lib which has __weak function called "a_funct()". Other lib called B.lib includes A.lib and implement strong function "a_funct()".

B.lib has "b_funct()" function which will call "a_funct()".

When my user code try to call b_funct(), it is calling the weak version of a_funct() and ignoring the strong version.

I am familiar with samilar issue in GCC and it has linker option calle "--whole-archive" which can solve this problem. But not sure with Arm Compiler v5.

can anyone please help me on this?

Thanks,

MK19