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:
H.J. Lu 2007-08-04 16:31:00 +00:00
parent 6612555199
commit f7231afc19
4 changed files with 11 additions and 4 deletions

View file

@ -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>
* coffcode.h (ALIGN_SET): Removed.

View file

@ -1239,7 +1239,7 @@ struct bfd_elf_section_data
#define elf_sec_group(sec) (elf_section_data(sec)->sec_group)
#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) \
xvec_get_elf_backend_data ((abfd)->xvec)

View file

@ -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

View file

@ -158,7 +158,7 @@ elf_core_file_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
&& i_ehdrp->e_machine == back->elf_machine_alt1)