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


 

> -----Original Message-----
> From: binutils-owner On Behalf Of Sivakumar
> Sent: 03 March 2004 08:46

> Iam interested to get the .text, .data, .bss for each of the 
> object file.
> 
> Iam aware of the fact that i can get it by looking into the 
> map file generated by the linker.
> 
> Please suggest me if there is any tool to get the .text, 
> .data, .bss for each object file from the elf file ?
> 
> or is there any other way to do this ?


  'size' is a program already included in binutils that does exactly what
you want.  Try "size --help" for more information.  You may or may not need
to use a bit of shell scripting to process the output it makes into a useful
form for your needs.



    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....




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