Symptom
The GNU linker does not display the relocation truncated to fit error message when a long call is required and the function being called has not been declared with the __long_call__ attribute or the module making the call has not been compiled with the Code Generation Options > Long Calls project property set to Yes - instead it inserts a veneer that jumps to ARM mode which causes the hard fault exception.
Affects
BINUTILS 2.21
Fix
Add the __long_call__ attribute to the prototype of the function being called or set Code Generation Options > Long Calls project property of the module making the call to Yes. See the relocation truncated to fit: R_ARM_PC24 against symbol" error message
Comments
0 comments
Please sign in to leave a comment.