aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-microblaze.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-08-07 17:10:43 +0000
committerTom Tromey <tromey@redhat.com>2009-08-07 17:10:43 +0000
commit918d9742419429e4f063e4f8ff624f00237456a4 (patch)
tree2bdcbd5040530d56c73b881b4847f57c9bb5db68 /bfd/elf32-microblaze.c
parentcaa03924aaaa2a9fb36b6be21c3c3ade0c2396e3 (diff)
downloadgdb-918d9742419429e4f063e4f8ff624f00237456a4.zip
gdb-918d9742419429e4f063e4f8ff624f00237456a4.tar.gz
gdb-918d9742419429e4f063e4f8ff624f00237456a4.tar.bz2
* elf32-microblaze.c (microblaze_elf_check_relocs): Avoid strict
aliasing error.
Diffstat (limited to 'bfd/elf32-microblaze.c')
-rw-r--r--bfd/elf32-microblaze.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
index 5b1a71b..c975e76 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -2121,6 +2121,7 @@ microblaze_elf_check_relocs (bfd * abfd,
asection *s;
Elf_Internal_Sym *isym;
+ void *vpp;
isym = bfd_sym_from_r_symndx (&htab->sym_sec,
abfd, r_symndx);
@@ -2131,8 +2132,8 @@ microblaze_elf_check_relocs (bfd * abfd,
if (s == NULL)
return FALSE;
- head = ((struct elf32_mb_dyn_relocs **)
- &elf_section_data (s)->local_dynrel);
+ vpp = &elf_section_data (s)->local_dynrel;
+ head = (struct elf32_mb_dyn_relocs **) vpp;
}
p = *head;