generating position independent code problem on STM32F4
Dear Bernard,
thanks for your quick reply, I did not see the post (did not receive the email).
I have in my project a part I’d like to compile with the fPIC option.
I made a call to a test_function from a function in the code compiled with the fPIC option. The test_function also resides in a file compiled with the fPIC option.
Here is an excerpt of the generated assembly (copied from the disassembly view in the eclipse plugin) when using -fPIC option:
135 int ret = test_function(4);
08050802: movs r0, #4
08050804: bl 0x8050964
It appears the generated fPIC code does NOT use relative call inside the fPIC compiled module.
But maybe I have been tricked by the assembly display or do I miss something?
Thanks for your help,
Best regards,
Sylvain