Relocation of ELF at target (coldfire)

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

Relocation of ELF at target (coldfire)

791 Views
DhanapalS
Contributor I

Hi,

I want to down load one image and choose 2 locations in target (start address will be decided in target at run time by another code, say boot loader during downloading) and relocate accordingly. 

Have anyone come across such requirement. 

 

One option is to rewrite m68k-elf-objcopy, compile for coldfire and run in target. Any other ideas or tips..

 

Thanks for your time.

 

Regards,

Dhanapal.S 

Labels (1)
0 Kudos
Reply
1 Reply

267 Views
scifi
Senior Contributor I
One way to achieve this is to instruct the compiler/linker to generate position-independent code.
0 Kudos
Reply