mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +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:
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2007-08-02 H.J. Lu <hongjiu.lu@intel.com>
|
2007-08-02 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* coffcode.h (ALIGN_SET): Removed.
|
* coffcode.h (ALIGN_SET): Removed.
|
||||||
|
@ -1239,7 +1239,7 @@ struct bfd_elf_section_data
|
|||||||
#define elf_sec_group(sec) (elf_section_data(sec)->sec_group)
|
#define elf_sec_group(sec) (elf_section_data(sec)->sec_group)
|
||||||
|
|
||||||
#define xvec_get_elf_backend_data(xvec) \
|
#define xvec_get_elf_backend_data(xvec) \
|
||||||
((struct elf_backend_data *) (xvec)->backend_data)
|
((const struct elf_backend_data *) (xvec)->backend_data)
|
||||||
|
|
||||||
#define get_elf_backend_data(abfd) \
|
#define get_elf_backend_data(abfd) \
|
||||||
xvec_get_elf_backend_data ((abfd)->xvec)
|
xvec_get_elf_backend_data ((abfd)->xvec)
|
||||||
|
@ -605,7 +605,7 @@ elf_object_p (bfd *abfd)
|
|||||||
|
|
||||||
if ((*target_ptr)->flavour != bfd_target_elf_flavour)
|
if ((*target_ptr)->flavour != bfd_target_elf_flavour)
|
||||||
continue;
|
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
|
if (back->elf_machine_code == i_ehdrp->e_machine
|
||||||
|| (back->elf_machine_alt1 != 0
|
|| (back->elf_machine_alt1 != 0
|
||||||
&& back->elf_machine_alt1 == i_ehdrp->e_machine)
|
&& back->elf_machine_alt1 == i_ehdrp->e_machine)
|
||||||
@ -658,7 +658,7 @@ elf_object_p (bfd *abfd)
|
|||||||
!= target->header_byteorder))
|
!= target->header_byteorder))
|
||||||
continue;
|
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]
|
if (back->elf_osabi == i_ehdrp->e_ident[EI_OSABI]
|
||||||
&& (back->elf_machine_code == i_ehdrp->e_machine
|
&& (back->elf_machine_code == i_ehdrp->e_machine
|
||||||
|| (back->elf_machine_alt1 != 0
|
|| (back->elf_machine_alt1 != 0
|
||||||
|
@ -158,7 +158,7 @@ elf_core_file_p (bfd *abfd)
|
|||||||
|
|
||||||
if ((*target_ptr)->flavour != bfd_target_elf_flavour)
|
if ((*target_ptr)->flavour != bfd_target_elf_flavour)
|
||||||
continue;
|
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
|
if (back->elf_machine_code == i_ehdrp->e_machine
|
||||||
|| (back->elf_machine_alt1 != 0
|
|| (back->elf_machine_alt1 != 0
|
||||||
&& i_ehdrp->e_machine == back->elf_machine_alt1)
|
&& i_ehdrp->e_machine == back->elf_machine_alt1)
|
||||||
|
Reference in New Issue
Block a user