/* core_file_failing_signal returns a host signal (this probably should
be fixed). */
#include <signal.h>
+
+/* for MSVC builds */
+#ifndef SIGTRAP
+# define SIGTRAP 5
+#endif
+#ifndef SIGEMT
+# define SIGEMT 6
+#endif
+#ifndef SIGBUS
+# define SIGBUS 10
+#endif
\f
#define CRASH_INFO (0xffc)
#define CRASH_MAGIC 0xdead1234
/* NAN */
case 54: abfd->tdata.cisco_core_data->sig = SIGFPE; break;
default:
+#ifndef SIGEMT
+#define SIGEMT SIGTRAP
+#endif
/* "software generated"*/
abfd->tdata.cisco_core_data->sig = SIGEMT;
}
{
"trad-core",
bfd_target_unknown_flavour,
- true, /* target byte order */
- true, /* target headers byte order */
+ BFD_ENDIAN_BIG, /* target byte order */
+ BFD_ENDIAN_BIG, /* target headers byte order */
(HAS_RELOC | EXEC_P | /* object flags */
HAS_LINENO | HAS_DEBUG |
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),