imxrt1050 build error: relocation truncated to fit: R_ARM_PREL31 against `.text....

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imxrt1050 build error: relocation truncated to fit: R_ARM_PREL31 against `.text....

718 Views
Cindy
Contributor III

I am locating just  dummy.o to RAM. The dummy.o contains only a small initialise() as shown below:-

void initialise()
{
    int j;

    j = 5 + 6;
}

and I encounters the build error:-

Cindy_0-1666260379960.png

 

 

I have attached the linker scripts. Please advise how to get rid of the problem.

 

Thank you.

 

Best Regards,

Cindy

 

/* Specific program code that need to be in RAM */
.text.ram : AT(__TEXT_RAM_ROM)
{
. = ALIGN(4);
__text_ram_start__ = .; /* create a global symbol at text.ram start */
KEEP(*(.isr_vector_ram)) /* Startup code */
*(.interrupt_ram) /* Startup code */
*(.text.ram)
*fsl_cache.o(.text*)
*fsl_flexspi.o(.text*)
/**qspi_fpga_comm.o(.text*)*/
*fsl_flexcan.o(.text*)
*can_impl.o(.text*)
*can_impl.o(.rodata*)
*critical_section.o(.text*)
*critical_section.o(.rodata*)
*qspi_nor_flash.o(.text*)
*qspi_nor_flash.o(.rodata*)
*reentrant_qspi_nor_flash_decorator.o(.text*)
*reentrant_qspi_nor_flash_decorator.o(.rodata*)
*dummy.o(.text*)
. = ALIGN(4);
__text_ram_end__ = .; /* define a global symbol at text.ram end */
} > m_ram

0 Kudos
Reply
1 Reply