mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 05:12:28 +08:00
2007-08-04 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (xvec_get_elf_backend_data): Add const. * elfcode.h (elf_object_p): Use xvec_get_elf_backend_data. * elfcore.h (elf_core_file_p): Likewise.
This commit is contained in:
@ -605,7 +605,7 @@ elf_object_p (bfd *abfd)
|
||||
|
||||
if ((*target_ptr)->flavour != bfd_target_elf_flavour)
|
||||
continue;
|
||||
back = (const struct elf_backend_data *) (*target_ptr)->backend_data;
|
||||
back = xvec_get_elf_backend_data (*target_ptr);
|
||||
if (back->elf_machine_code == i_ehdrp->e_machine
|
||||
|| (back->elf_machine_alt1 != 0
|
||||
&& back->elf_machine_alt1 == i_ehdrp->e_machine)
|
||||
@ -658,7 +658,7 @@ elf_object_p (bfd *abfd)
|
||||
!= target->header_byteorder))
|
||||
continue;
|
||||
|
||||
back = (const struct elf_backend_data *) (*target_ptr)->backend_data;
|
||||
back = xvec_get_elf_backend_data (*target_ptr);
|
||||
if (back->elf_osabi == i_ehdrp->e_ident[EI_OSABI]
|
||||
&& (back->elf_machine_code == i_ehdrp->e_machine
|
||||
|| (back->elf_machine_alt1 != 0
|
||||
|
Reference in New Issue
Block a user