This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Support Xilinx MicroBlaze processor - patch 1


Michael> Your patch is fine with me.

Here it is with a ChangeLog entry.
I'm checking it in.

Tom

2009-08-07  Tom Tromey  <tromey@redhat.com>

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

Index: elf32-microblaze.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-microblaze.c,v
retrieving revision 1.1
diff -u -r1.1 elf32-microblaze.c
--- elf32-microblaze.c	6 Aug 2009 17:38:00 -0000	1.1
+++ elf32-microblaze.c	7 Aug 2009 16:58:09 -0000
@@ -2121,6 +2121,7 @@
 
 		    asection *s;
 		    Elf_Internal_Sym *isym;
+		    void *vpp;
 
 		    isym = bfd_sym_from_r_symndx (&htab->sym_sec,
 						  abfd, r_symndx);
@@ -2131,8 +2132,8 @@
 		    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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]