Re: elf core file format for powerpc

Daniel Jacobowitz
2008-02-05T13:19:50Z

On Tue, Feb 05, 2008 at 06:37:08PM +0530, rahul dev wrote:
> Also, is anyone aware of any link that describes the core file format (elf, linux over powerpc) ? I particulary need information about "note0, .reg, .reg2" sections.

You're using objdump; try using readelf instead. That gives a more
accurate picture of the contents. Then read the ELF gABI which
describes the format of core files.

> Also, is the code for "gcore" available on the internet. I need the
> source code for "gcore" that creates a core file in elf format and
> also adds sections "note0, .reg, .reg2".

Of course it is. It's in the source package for GDB. But it uses the
BFD library, so it's a little complicated to find out where each piece
is implemented.

--
Daniel Jacobowitz
CodeSourcery