This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]