From: David McCullough Date: Sun, 17 May 2009 23:14:54 +0000 (+0000) Subject: The header logic for pulling in ELF defines mixes common ELF headers and X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e1144a7f555d2b64522e1df9db6353d9fedd922d;p=elf2flt.git The header logic for pulling in ELF defines mixes common ELF headers and target specific headers. In the Blackfin case, we always want to pull in the bfin.h since most of the time, the common ELF headers do not have our relocation defines. This fixes building for mingw targets. Signed-off-by: Mike Frysinger --- diff --git a/elf2flt.c b/elf2flt.c index 9b1ea37..a120cc9 100644 --- a/elf2flt.c +++ b/elf2flt.c @@ -62,12 +62,17 @@ #include "cygwin-elf.h" /* Cygwin uses a local copy */ #elif defined(TARGET_microblaze) #include /* TARGET_* ELF support for the BFD library */ -#elif defined(TARGET_bfin) -#include "elf/bfin.h" #else #include /* TARGET_* ELF support for the BFD library */ #endif +/* Always include Blackfin-specific defines in addition to common ELF stuff + * above as the common elf headers often do not have our relocs. + */ +#ifdef TARGET_bfin +#include "elf/bfin.h" +#endif + #if defined(__MINGW32__) #include #endif