This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: elf core file format for powerpc
On Feb 5, 2008 11:31 AM, Jim Blandy <jimb@red-bean.com> wrote:
> One source of confusion is that the code in GDB that operates on BFD
> sections is actually accessing ELF notes, in a PT_NOTE program header.
> When BFD opens a core file and sees a PT_NOTE program header, it
> turns each note into a "section" with a known name. See
> bfd/elfcore.h:elf_core_file_p, and uses of
> _bfd_elfcore_make_pseudosection.
(Thus Daniel's recommendation that you use elfread, instead of
objdump. objdump presents BFD's point of view on the world, and
'magic' processing of this sort is pretty confusing. readelf shows
you exactly what's there.)