diff options
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/ld/m68k/md.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/usr.bin/ld/m68k/md.h b/gnu/usr.bin/ld/m68k/md.h index 61016b2ebdf..911e525b113 100644 --- a/gnu/usr.bin/ld/m68k/md.h +++ b/gnu/usr.bin/ld/m68k/md.h @@ -1,16 +1,24 @@ -/* * $OpenBSD: md.h,v 1.6 2002/09/17 16:20:46 miod Exp $*/ +/* * $OpenBSD: md.h,v 1.7 2002/09/20 19:54:11 deraadt Exp $*/ /* * - m68k dependent definitions */ #if defined(CROSS_LINKER) #include <sys/endian.h> + #if BYTE_ORDER != BIG_ENDIAN #define NEED_SWAP #endif -/* Remove definitions from the host exec.h */ -#include <machine/exec.h> +#undef __LDPGSZ +#undef ELF_TARG_DATA +#undef ELF_TARG_MACH +#undef relocation_info +#undef MID_MACHINE +#define MID_MACHINE MID_M68K +#include <m68k/exec.h> +#endif + #define MAX_ALIGNMENT (sizeof (long)) |