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


Tom Tromey wrote:
"Nick" == Nick Clifton <nickc@redhat.com> writes:

Nick> Approved and applied.


This caused a build failure for me.  I did a build on the GCC compile
farm (x86-64) and got:

/home/tromey/auto-test-gdb/gdb/bfd/elf32-microblaze.c: In function âmicroblaze_elf_check_relocsâ:
/home/tromey/auto-test-gdb/gdb/bfd/elf32-microblaze.c:2135: warning: dereferencing type-punned pointer will break strict-aliasing rules

I think that the fix is


diff -r1.1 elf32-microblaze.c
2134,2135c2134,2135
<                   head = ((struct elf32_mb_dyn_relocs **)
<                           &elf_section_data (s)->local_dynrel);
---
>                   head = &((struct elf32_mb_dyn_relocs *)
>                           elf_section_data (s)->local_dynrel);

I'll have to set up an 64-bit test system to verify this.


-- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077


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