linker exit code -1073741819

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

linker exit code -1073741819

1,527 次查看
daniel_ebel
Contributor I

Hello,

 

I'm writing a linker script for the MPC5634M. When compiling these scipt I get the following exit code:

### mwcceppc.exe Driver Error:
#   linker
#   'C:\Programme\Freescale\CW_for_MPC55xx_and_MPC56xx_2.7\PowerPC_EABI_Tools\C
#   ommand_Line_Tools\mwldeppc.exe' returned with exit code -1073741819

 

Does everyone knows what this code means???

 

Thank you for your help

标签 (1)
标记 (1)
0 项奖励
回复
4 回复数

752 次查看
J2MEJediMaster
Specialist I

It looks like the linker is picking garbage up from somewhere and trying to present that as an error code. Did the scripts work before you modified them? If so, what did you change?

 

---Tom

0 项奖励
回复

752 次查看
daniel_ebel
Contributor I

I solved the problem with the help of the freescale support (thanks a lot). They showed me an other approach for my solution and now it works. I still don't know what the problem was but that's okay. As lonag as my application is working now :smileyhappy:

 

daniel_ebel

0 项奖励
回复

752 次查看
FridgeFreezer
Senior Contributor I

So what was the solution?

0 项奖励
回复

752 次查看
jimtrudeau
Senior Contributor I

The suggestion was to refer to the default startup file for guidance to see how it sets up the platform. In this case it was

 

CW_for_MPC55xx_and_MPC56xx_2.7\PowerPC_EABI_Support\Runtime\Src\ __start.c

 

This file allows for user-level initialization before main().  It defines a function called __init_user(). If the program is in C++, __init_user needs to initialize exceptions and static constructors.

So the default startup file will call __init_user().
The user can complete action of startup.

This function is in the __ppc_eabi_init.c file. Placing an  __init_user() function in the __ppc_eabi_init.c file to do specific initialization resolved the problem.

 

There was probably some problem among the startup code used, the lcf file, and the application. By reverting to the "known good" default startup code and initialization, the problem went away.

0 项奖励
回复