This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: ELF file format
- From: "Gupta Nitin (IFIN DC AI)" <Nitin dot Gupta at infineon dot com>
- To: Sivakumar <skganesan at yahoo dot com>, Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 4 Mar 2004 18:33:02 +0530
- Subject: RE: ELF file format
>Is the size utility or the objdump will only accept
>the .o file generated by the gcc compiler ?
>
The objdump is not necessarily used for object files from gcc.
It can accept various formats including coff, intel hex and motorola
s-record.
What you need to do is get the binary from your compiler and identify the
type of file. A simple catch is use 'file' utility. Or you may have to read
the compiler documents.
Accordinly, invoke objdump if the file format is supported in bfd of
binutils.
>
>
>
>
>> Yes - objdump. If the files are in the ELF format
>> then the readelf
>> program can also read them.
>
>> What information do you want about these sections ?
>> Their size ?
>> Their contents ? There position in the file ?
>>
>> 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.
>>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Search - Find what you're looking for faster
>http://search.yahoo.com
>