MPC5121 CodeWarrier relocatable output

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

MPC5121 CodeWarrier relocatable output

2,829 次查看
martinw
Contributor III
Hi,


MPC5121 power pc, no OS (actually a port of an OS we wrote in-house for Coldfire)

I want to be able to read an application at boot time (from SD card) and relocate it to run at a memory address defined at run time.

My understanding of elf is that there is an option to produce a binary file that contains relocation tables etc.

Can anyone tell me if the CodeWarrier linker can produce the required elf format?

And where can I find the specification for the elf format that CodeWarrier generates?

Many thanks

Martin Wakely

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

1,171 次查看
CrasyCat
Specialist III
Hello
 
This can probably be implemented using PIC code.
 
CrasyCat
0 项奖励
回复

1,171 次查看
martinw
Contributor III
Will you explain what you mean by PIC code please?


0 项奖励
回复

1,171 次查看
J2MEJediMaster
Specialist I
PIC = Position Independent Code. The branch and jump instructions use relative addresses, rather than absolute addresses. This allows the program to be loaded just about anywhere in memory. Check the Build Tools manual and the Power Architecture Targeting Maunal for PIC/PID support. Search for the string "PIC/PID" in the Acrobat files of these manuals to get started.

---Tom
0 项奖励
回复

1,171 次查看
martinw
Contributor III
Thanks - I'll look that up.  For one (horrible) moment I thought it might be a Microchip reference :smileywink:

Cheers
0 项奖励
回复