ELF file format
Dave Korn
dk@artimi.com
Wed Mar 3 12:34:00 GMT 2004
> -----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....
More information about the Binutils
mailing list