This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: ELF file format
- From: "Dave Korn" <dk at artimi dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Wed, 3 Mar 2004 12:33:24 -0000
- Subject: 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....