This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

armlink error: out of range pc-relative fixup value

Hi,

I am trying to migrate my project targeting an ARM Cortex M4 MCU previously compiled with ARM Compiler 5.06 to ARM Compiler 6.11.

The project uses RTOS Keil RTX v4.81.1

In the linking stage the linker generate the following errors:

project.axf: error: out of range pc-relative fixup value ldr r12,= rt_mut_wait

project.axf: error: out of range pc-relative fixup value ldr r12,= rt_mut_release

I could not find any resources on those errors.

Can it be because the lib used by the project was compiled with compiler 5?

The revision history of RTOSv1 says version 4.81 has added provision for compiler 6.

Please enlighten!

Thanks in advance.

Seng Tak