[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] elf to flat binary conversion




Jivin Alastair Burnett lays it down ...
> Hi,
> 
> I'm playing around with the mb-elf2flt utility to try and convert an elf file to flat binary. My problem is this:
> 
> - I'd like to use this utility with any microblaze related executable - eg an application for running on uclinux or a 'normal' microblaze app. Is it possible to use the util for a conventional elf file (ie no OS on the board). I keep getting the 'input file contains no relocation info' message ... which I guess is correct as the elf file has been fully linked, so maybe I can't use this utility for what I need ...

Using elf2flt on any old executable doesn't really make sense.  Unless
the code is entire pic code and pic data,  you cannot create a working
flat file without relocation information.

> Essentially, I'd like to be able to analyse the various sections of the executable but have a simpler format than elf so this is the main reason for looking at mb-elf2flt. I used mb-objcopy to get a binary file but as this removes any information related to the structure of the executable I thought I'd try elf2flt.

I would use size, objdump and objcopy to analyse binaries.  They have
more options than elf2flt will ever provide :-)

Cheers,
Davidm

-- 
David McCullough, davidm@snapgear.com  Ph:+61 7 34352815 http://www.SnapGear.com
Custom Embedded Solutions + Security   Fx:+61 7 38913630 http://www.uCdot.org
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/