From: Mike Frysinger Date: Fri, 18 Dec 2015 04:59:29 +0000 (-0500) Subject: elf2flt: v850: fix build w/newer binutils X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1bf7f74ea385d862ce62bc3a3d36cc4953ceba56;p=elf2flt.git 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. --- 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;