[arm-gnu] relocation truncated to fit: R_ARM_PREL31 against `.main_mem_2'

Ashok Chandran ashokcj at gmail.com
Thu Nov 10 15:57:00 UTC 2011


Hi,

Am using the codesourcery toolchain. The linker exits with the following
message when the segment main_mem_2 is placed at 0x6C000000: "relocation
truncated to fit: R_ARM_PREL31 against `.main_mem_2'"
I tried loading the function address via pointers , but that does not seem
to matter. This is for a cortex-m4 processor. Why doesn't the the BLX/BX
get picked to do the branch?
Appreciate if you can help me out here.

Thanks
Ashok
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/arm-gnu/attachments/20111110/0567e003/attachment.html>


More information about the arm-gnu mailing list