diff options
author | Alan Modra <amodra@gmail.com> | 2001-06-30 03:15:46 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-06-30 03:15:46 +0000 |
commit | bb0082d686d9a84f29c7e6bb36736f68aa65169e (patch) | |
tree | 2933920838b2b1c92be2905e6f923281367f2d21 /bfd/elfxx-target.h | |
parent | b64977c5ff2661a4e20d2dcbf999b143670ac742 (diff) | |
download | ppe42-binutils-bb0082d686d9a84f29c7e6bb36736f68aa65169e.tar.gz ppe42-binutils-bb0082d686d9a84f29c7e6bb36736f68aa65169e.zip |
* 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.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r-- | bfd/elfxx-target.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h index 8258a6add9..5f413d2be9 100644 --- a/bfd/elfxx-target.h +++ b/bfd/elfxx-target.h @@ -329,6 +329,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef elf_backend_count_relocs #define elf_backend_count_relocs NULL #endif +#ifndef elf_backend_grok_prstatus +#define elf_backend_grok_prstatus NULL +#endif +#ifndef elf_backend_grok_psinfo +#define elf_backend_grok_psinfo NULL +#endif /* Previously, backends could only use SHT_REL or SHT_RELA relocation sections, but not both. They defined USE_REL to indicate SHT_REL @@ -412,6 +418,8 @@ static CONST struct elf_backend_data elfNN_bed = elf_backend_hide_symbol, elf_backend_emit_relocs, elf_backend_count_relocs, + elf_backend_grok_prstatus, + elf_backend_grok_psinfo, elf_backend_ecoff_debug_swap, ELF_MACHINE_ALT1, ELF_MACHINE_ALT2, |