- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Splitting an elf file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-27-2010 03:06 AM
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











