OSDN Git Service

* elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
authorAlan Modra <amodra@bigpond.net.au>
Sat, 30 Jun 2001 03:15:46 +0000 (03:15 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Sat, 30 Jun 2001 03:15:46 +0000 (03:15 +0000)
commit5c57606307e54ca51f1490cb3cd10e387209e623
treefb9b642d82fb4c036943e44be979f60f9b6d5224
parenta6459dbc4b4541ea65bb39413940b46cb5e1ab39
* 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