A link failure when upgrading a 5748G project from SDK 1.0.0 to 3.0.3

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

A link failure when upgrading a 5748G project from SDK 1.0.0 to 3.0.3

688 Views
chen1834
Contributor I

Hi NXP Experts, 

There is a compile and link issue happens when I try to update a success MPC5748G project from S32_SDK_S32PA_RTM_1.0.0 to S32_SDK_S32PA_RTM_3.0.3, also update the IDE S32DS for PA from 2017r1 to 2.1. Only one z4_0 core is used. The .ld file is kept same, .cproject file is modified according to new SDK and generated code.

The Console reported an error when linking (compiling seems finished):

c:/nxp/s32ds_power_v2.1/s32ds/build_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: ./Sources/SafeRTOS/kernel/eventgroups.o: the target (pucSSCIRegister) of a R_PPC_VLE_SDA21 relocation is in the wrong output section (.data)

c:/nxp/s32ds_power_v2.1/s32ds/build_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: final link failed: Bad value

collect2.exe: error: ld returned 1 exit status

 

The console info, makefile, .cproject, .ld file and .args are attached.

Why the linker reported a wrong output section (.data)? What's the potential reasons?

Thanks in advance.

0 Kudos
Reply
1 Reply

662 Views
jiri_kral
NXP Employee
NXP Employee
0 Kudos
Reply