How to resolve "internal linker error: File: 'ELF_PPC_EABI.c' Line: 6931"

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to resolve "internal linker error: File: 'ELF_PPC_EABI.c' Line: 6931"

跳至解决方案
2,092 次查看
afleury
Contributor II

Hello,

I have 2 remaining linker errors to resolve with CW PA 10.5.1:

  1. internal linker error: File: 'ELF_PPC_EABI.c' Line: 6931.
  2. internal linker error: File: 'ELF_PPC_EABI.c' Line: 6927.

CW PA doesn't give more. Do those linker errors come from something wrong in the lcf file?

Waiting for any clue.

Regards,

0 项奖励
回复
1 解答
2,039 次查看
afleury
Contributor II

Rewriting a part of the LCF file with this resolve the issue:

.text (TEXT) :
{
*(.text)
*(.init)
*(.fini)
*(.const)
*(hex_section)
}
.ctors : {}
.dtors : {}

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,053 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please open "PowerPC Linker" panel from Project->Properties->C/C++ Build->Settings->PowerPC Linker->Input, in "Library Files", please add files "C:\Freescale\CW_PA_v10.5.1\PA\PA_Support\ewl\lib\librt_E500V2.a" and

"C:\Freescale\CW_PA_v10.5.1\PA\PA_Support\ewl\lib\libc99_E500V2.a".

If your problem persists, would you please send your CodeWarrior project to me to do more investigation?

0 项奖励
回复
2,044 次查看
afleury
Contributor II

Hi yipingwang,

Those two library files were already there in the project. It is something else.

I'm going to try to redo the LCF file first before sending the source code for investigation.

I have attached the LCF file to this message.

Regards,

0 项奖励
回复
2,040 次查看
afleury
Contributor II

Rewriting a part of the LCF file with this resolve the issue:

.text (TEXT) :
{
*(.text)
*(.init)
*(.fini)
*(.const)
*(hex_section)
}
.ctors : {}
.dtors : {}

0 项奖励
回复