From 1bf7f74ea385d862ce62bc3a3d36cc4953ceba56 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 17 Dec 2015 23:59:29 -0500 Subject: [PATCH] elf2flt: v850: fix build w/newer binutils We need to include the v850 header directly for the right relocs, and handle the renamed abs32 reloc. --- elf2flt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/elf2flt.c b/elf2flt.c index 2fea9b5..89c9946 100644 --- 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 /* TARGET_* ELF support for the BFD library */ +#elif defined(TARGET_v850) +#include #else #include /* 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; -- 2.39.5