ELF file format
Nick Clifton
nickc@redhat.com
Thu Mar 4 12:14:00 GMT 2004
Hi Siva,
> Is there any reader utility which can read the .o
> files generated by the assembler.
Yes - objdump. If the files are in the ELF format then the readelf
program can also read them.
> I want to get the .text, .data, .bss from the object
> file.
What information do you want about these sections ? Their size ?
Their contents ? There position in the file ?
> I am aware of the "size" bin utility.
> When i give the object file as input to the "size"
> utility it is not accepting it.
> It is saying that the file format not recognized
Which version of the binutils sources are you using ? How did you
build these sources ? How did you build the object file that size
does not recognise ?
The size program is able to display the sizes of object files whose
format it recognises.
Cheers
Nick
PS. Please reply to the list and not to me directly.
More information about the Binutils
mailing list