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

42Bastian list-bastian.schick at sciopta.com
Fri Nov 11 06:20:24 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.

Where does the branch come from ? BLX can only jump a certain number of
bytes wide (21bit IIRC).

-- 
42Bastian
+
| http://www.sciopta.com
| Fastest direct message passing kernel.
| IEC61508 certified.
+



More information about the arm-gnu mailing list