* elf32-microblaze.c (microblaze_elf_check_relocs): Avoid strict

aliasing error.
This commit is contained in:
Tom Tromey 2009-08-07 17:10:43 +00:00
parent caa03924aa
commit 918d974241
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-08-07 Tom Tromey <tromey@redhat.com>
* elf32-microblaze.c (microblaze_elf_check_relocs): Avoid strict
aliasing error.
2009-08-06 Michael Eager <eager@eagercon.com> 2009-08-06 Michael Eager <eager@eagercon.com>
* Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}. * Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}.

View File

@ -2121,6 +2121,7 @@ microblaze_elf_check_relocs (bfd * abfd,
asection *s; asection *s;
Elf_Internal_Sym *isym; Elf_Internal_Sym *isym;
void *vpp;
isym = bfd_sym_from_r_symndx (&htab->sym_sec, isym = bfd_sym_from_r_symndx (&htab->sym_sec,
abfd, r_symndx); abfd, r_symndx);
@ -2131,8 +2132,8 @@ microblaze_elf_check_relocs (bfd * abfd,
if (s == NULL) if (s == NULL)
return FALSE; return FALSE;
head = ((struct elf32_mb_dyn_relocs **) vpp = &elf_section_data (s)->local_dynrel;
&elf_section_data (s)->local_dynrel); head = (struct elf32_mb_dyn_relocs **) vpp;
} }
p = *head; p = *head;