Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
ishais
Posts: 3
Registered: ‎07-25-2010
0

Splitting an elf file

 

Hi all,

 

Is there a way to split one elf (executable) file into two separate elf files?

 

I use Microblaze with Virtex4. I want to add a new code part to my current code, but then my code will exceed the size of the flash it is burnt to. Therefore I want to burn the added code to another flash.

 

My code is copied to RAM by a boot loader (which then jumps to RAM and starts regular execution). I intend to copy the new code from the second flash the same way, adjacently (in RAM) to the code copied from the already used flash.

 

For this, I actually need two separate elf files, one for each burnt flash. Since the new code addition will not always be used (and therefore not always be loaded to RAM), I need an exact separation between files, defining only the new code addition as residing in the second file.

 

* Can this be done somehow in the EDK/SDK? (I use version 10.1).

 

* Is there a GNU tool that can split an elf file into two?

 

Thanks

Ishai