Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hello,
I am trying to integrate Open62541 v1.3 on A53 core running FreeRTOS.
While I am succesful in running a server when I compile Open62541 with UA_NAMESPACE_ZERO=REDUCED, I run into relocation problems when I compile the full nodeset with UA_NAMESPACE_ZERO=FULL.
Here is a list of relocation errors emitted by the linker as well as the compilation flags used:
"C:/ti/gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf/bin/aarch64-none-elf-gcc-9.2.1.exe" -DUA_ARCHITECTURE_FREERTOSLWIP -DSOC_AM64X -D_DEBUG_=1 -O0 -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -mcmodel=large -fno-pie -mstrict-align -mfix-cortex-a53-835769 -mfix-cortex-a53-843419 -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -Wno-unused-but-set-variable -Wno-unused-function -mcpu=cortex-a53+fp+simd -Wl,-Map,"application__MAIN_Cortex_A53_0.Debug.map" -static -Wl,--gc-sections -L"C:/ti/mcu_plus_sdk_am64x_10_01_00_32/source/kernel/freertos/lib" -L"C:/ti/mcu_plus_sdk_am64x_10_01_00_32/source/drivers/lib" -L"C:/ti/mcu_plus_sdk_am64x_10_01_00_32/source/board/lib" -L"C:/ti/mcu_plus_sdk_am64x_10_01_00_32/source/networking/enet/lib" -L"C:/ti/mcu_plus_sdk_am64x_10_01_00_32/source/networking/lwip/lib" -L"/lib" -Wl,--build-id=none -o"application__MAIN_Cortex_A53_0.out" "./syscfg/ti_dpl_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_drivers_open_close.o" "./syscfg/ti_pinmux_config.o" "./syscfg/ti_power_clock_config.o" "./syscfg/ti_board_config.o" "./syscfg/ti_board_open_close.o" "./syscfg/ti_enet_config.o" "./syscfg/ti_enet_open_close.o" "./syscfg/ti_enet_soc.o" "./syscfg/ti_enet_lwipif.o" "./a53_0_freertos/a53_tasks.o" "./a53_0_freertos/main_a53.o" "./driver/adin1300/adin1300.o" "./driver/ascii_conv/src/ascii_conv.o" "./driver/corcomm/src/corcomm.o" "./driver/coremon/src/coremon.o" "./driver/eth_cdd/eth_cdd.o" "./driver/osal/src/osal.o" "./driver/sw_support/src/sw_support_main.o" "./platform_server/opc/src/open62541.o" -Wl,-T"C:/Users/quant/Documents/Projects/lemac/atacama-opc/tool/projectConfig/a53ss0-0_freertos/linker.cmd" -Wl,--start-group -lstdc++ -lgcc -lm -lrdimon -l:freertos.am64x.a53.gcc-aarch64.debug.lib -l:drivers.am64x.a53.gcc-aarch64.debug.lib -l:board.am64x.a53.gcc-aarch64.debug.lib -l:enet-cpsw.am64x.a53.gcc-aarch64.debug.lib -l:lwipif-cpsw-freertos.am64x.a53.gcc-aarch64.debug.lib -l:lwip-freertos.am64x.a53.gcc-aarch64.debug.lib -l:lwip-contrib-freertos.am64x.a53.gcc-aarch64.debug.lib -lc -Wl,--end-group
makefile:186: recipe for target 'application__MAIN_Cortex_A53_0.out' failed
C:/ti/mcu_plus_sdk_am64x_10_01_00_32/source/kernel/freertos/lib\freertos.am64x.a53.gcc-aarch64.debug.lib(portASM.obj): in function `vPortRestoreTaskContext':
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:382:(.vecs+0x80c): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:382:(.vecs+0x820): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:382:(.vecs+0x840): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:/ti/mcu_plus_sdk_am64x_10_01_00_32/source/kernel/freertos/lib\freertos.am64x.a53.gcc-aarch64.debug.lib(portASM.obj): in function `HwiP_SVC_Handler':
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:391:(.vecs+0x950): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:391:(.vecs+0x958): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:391:(.vecs+0x9ac): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:397:(.vecs+0x9d8): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:397:(.vecs+0x9ec): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:397:(.vecs+0xa0c): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:/ti/mcu_plus_sdk_am64x_10_01_00_32/source/kernel/freertos/lib\freertos.am64x.a53.gcc-aarch64.debug.lib(portASM.obj): in function `HwiP_IRQ_Handler':
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:417:(.vecs+0xb38): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.text.HwiP_defaultExcHandler'
C:\ti\mcu_plus_sdk_am64x_10_01_00_32\source\kernel\freertos/portable/GCC/ARM_CA53/portASM.S:442:(.vecs+0xb6c): additional relocation overflows omitted from the output
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [application__MAIN_Cortex_A53_0.out] Error 1
gmake: *** [all] Error 2
makefile:182: recipe for target 'all' failed
I would also like to point out that when I compile the same software for R5F core with TI-CLang 4.0.1 toolchain everything runs smoothly and no such relocation errors occur.
Please advise how to fix this issue.
Best regards,
Paolo Mattachini
