* elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
commit28e70c7c4a540259e84eb3c4a5d7ee25c9b43364
authorAlan Modra <amodra@bigpond.net.au>
Sat, 30 Jun 2001 03:15:46 +0000 (30 03:15 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Sat, 30 Jun 2001 03:15:46 +0000 (30 03:15 +0000)
treea05f0b280ec736030b72720433e7be6f83794623
parentac94f0379d09b2d80941ea8568d353c7d29b4994
* elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
and _bfd_elfcore_strndup.
(struct elf_backend_data): Add elf_backend_grok_prstatus
and elf_backend_grok_psinfo.
* elf.c (_bfd_elfcore_make_pseudosection): New function.
(elfcore_grok_prstatus): Use it.
(elfcore_make_note_pseudosection): Likewise.
(elfcore_strndup):  Rename to...
(_bfd_elfcore_strndup): Here, and make global.
(elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
(elfcore_grok_note): Call elf_backend_grok_prstatus
and elf_backend_grok_psinfo if available.
* elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
(_bfd_elf32_mips_grok_psinfo): New function.
(elf_backend_grok_prstatus): Define.
(elf_backend_grok_psinfo): Define.
* elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
(elf_backend_grok_psinfo): Likewise.
(elfNN_bed): Include elf_backend_grok_prstatus and
elf_backend_grok_psinfo.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c
bfd/elf32-mips.c
bfd/elfxx-target.h