]> git.wh0rd.org Git - elf2flt.git/commitdiff
elf2flt: v850: fix build w/newer binutils
authorMike Frysinger <vapier@gentoo.org>
Fri, 18 Dec 2015 04:59:29 +0000 (23:59 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 18 Dec 2015 04:59:29 +0000 (23:59 -0500)
We need to include the v850 header directly for the right relocs,
and handle the renamed abs32 reloc.

elf2flt.c

index 2fea9b547e5a7015908c8a3e8074e0a211da4beb..89c9946195f111c4be9489c1caf5eb1a50f4dc00 100644 (file)
--- a/elf2flt.c
+++ b/elf2flt.c
@@ -58,6 +58,8 @@ const char *elf2flt_progname;
 #include "cygwin-elf.h"        /* Cygwin uses a local copy */
 #elif defined(TARGET_microblaze)
 #include <elf/microblaze.h>    /* TARGET_* ELF support for the BFD library */
+#elif defined(TARGET_v850)
+#include <elf/v850.h>
 #else
 #include <elf.h>      /* TARGET_* ELF support for the BFD library            */
 #endif
@@ -816,7 +818,11 @@ dump_symbols(symbols, number_of_symbols);
 #endif
 
 #ifdef TARGET_v850
+# ifdef R_V850_32
                                case R_V850_32:
+# else
+                               case R_V850_ABS32:
+# endif
                                        relocation_needed = 1;
                                        sym_vma = bfd_section_vma(abs_bfd, sym_section);
                                        sym_addr += sym_vma + q->addend;