EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
+# force link order under cygwin to avoid getopts / libiberty clash
+ifneq ($(strip $(shell gcc -v 2>&1 | grep "cygwin")),)
+ LIBS := -lcygwin $(LIBS)
+endif
+
CCFLAGS = $(CFLAGS) $(DEFS) $(INCLUDES)
LDFILE= elf2flt.ld
#define R_CRIS_NUM 20
+#define R_MICROBLAZE_NONE 0
+#define R_MICROBLAZE_32 1
+#define R_MICROBLAZE_32_PCREL 2
+#define R_MICROBLAZE_64_PCREL 3
+#define R_MICROBLAZE_32_PCREL_LO 4
+#define R_MICROBLAZE_64 5
+#define R_MICROBLAZE_32_LO 6
+#define R_MICROBLAZE_SRO32 7
+#define R_MICROBLAZE_SRW32 8
+#define R_MICROBLAZE_64_NONE 9
+#define R_MICROBLAZE_32_SYM_OP_SYM 10
+#define R_MICROBLAZE_GNU_VTINHERIT 11
+#define R_MICROBLAZE_GNU_VTENTRY 12
+
+#define R_MICROBLAZE_NUM 13
+
+
#endif /* elf.h */
#if defined(TARGET_h8300)
#include <elf/h8.h> /* TARGET_* ELF support for the BFD library */
-#elif defined(TARGET_microblaze)
-#include <elf/microblaze.h> /* TARGET_* ELF support for the BFD library */
#elif defined(__CYGWIN__)
#include "cygwin-elf.h" /* Cygwin uses a local copy */
+#elif defined(TARGET_microblaze)
+#include <elf/microblaze.h> /* TARGET_* ELF support for the BFD library */
#else
#include <elf.h> /* TARGET_* ELF support for the BFD library */
#endif