This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Support Xilinx MicroBlaze processor - patch 1
>>>>> "Andreas" == Andreas Schwab <schwab@redhat.com> writes:
Andreas> A cast expression is not an lvalue.
Andreas> See <http://sourceware.org/ml/binutils/2005-08/msg00423.html>.
Yeah, I'm actually testing the appended patch.
Other BFD ports seem to do this.
Tom
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;