diff options
author | Alan Modra <amodra@bigpond.net.au> | 2003-08-07 08:38:11 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2003-08-07 08:38:11 +0000 |
commit | 81b75d8088443b59b412d91ae46d36bfa30ea9dc (patch) | |
tree | badf16dc5bd6dda70718aed18f2283504a79be5d /bfd/elfcore.h | |
parent | fcfff028871d8ec65c68930892c5a01118c77ea8 (diff) | |
download | gdb-81b75d8088443b59b412d91ae46d36bfa30ea9dc.tar.gz |
* elfxx-target.h: Remove PTR cast.
* targets.c (bfd_target): Make backend_data const void *.
* elf-bfd.h: Constify all occurrences of struct elf_backend_data.
* elf-m10300.c: Likewise.
* elf.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-m68hc1x.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-mips.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfcode.h: Likewise.
* elfcore.h: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elfxx-mips.h: Likewise.
* elf.c (prep_headers): Remove useless check for null backend_data.
* bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/elfcore.h')
-rw-r--r-- | bfd/elfcore.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elfcore.h b/bfd/elfcore.h index 865edcd0650..81c4cff1139 100644 --- a/bfd/elfcore.h +++ b/bfd/elfcore.h @@ -76,7 +76,7 @@ elf_core_file_p (bfd *abfd) Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form. */ Elf_Internal_Phdr *i_phdrp; /* Elf program header, internal form. */ unsigned int phindex; - struct elf_backend_data *ebd; + const struct elf_backend_data *ebd; struct bfd_preserve preserve; bfd_size_type amt; @@ -153,11 +153,11 @@ elf_core_file_p (bfd *abfd) for (target_ptr = bfd_target_vector; *target_ptr != NULL; target_ptr++) { - struct elf_backend_data *back; + const struct elf_backend_data *back; if ((*target_ptr)->flavour != bfd_target_elf_flavour) continue; - back = (struct elf_backend_data *) (*target_ptr)->backend_data; + back = (const struct elf_backend_data *) (*target_ptr)->backend_data; if (back->elf_machine_code == i_ehdrp->e_machine || (back->elf_machine_alt1 != 0 && i_ehdrp->e_machine == back->elf_machine_alt1) |