summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-12-24 03:13:56 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-12-24 03:13:56 +0000
commit90b6c365e5133e481a37f09ae129cddd493d02a9 (patch)
treeb6c48cd395ab1681ffa0746252d744ef50566fcb
parent8aca205bb4215a613a9a7565081d8e8451231a3d (diff)
Hooks to enable building a cross-ld for mvme88k.
-rw-r--r--gnu/usr.bin/ld/Makefile5
-rw-r--r--gnu/usr.bin/ld/m88k/md.h12
2 files changed, 12 insertions, 5 deletions
diff --git a/gnu/usr.bin/ld/Makefile b/gnu/usr.bin/ld/Makefile
index adb1d7f8c4a..ff7c5f09a62 100644
--- a/gnu/usr.bin/ld/Makefile
+++ b/gnu/usr.bin/ld/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 2000/02/01 21:01:38 espie Exp $
+# $OpenBSD: Makefile,v 1.8 2001/12/24 03:13:54 miod Exp $
# $NetBSD: Makefile,v 1.13 1995/04/23 07:58:46 cgd Exp $
TARGET_MACHINE_ARCH?= $(MACHINE_ARCH)
@@ -13,6 +13,9 @@ CPPFLAGS+= -DCROSS_LINKER -DXHOST=$(MACHINE_ARCH) \
beforedepend:
mkdir -p cross-include
-rm cross-include/${TARGET_MACHINE_ARCH}
+ -rm cross-include/${TARGET}
+ ln -sf ${.CURDIR}/../../../sys/arch/${TARGET}/include \
+ cross-include/${TARGET}
ln -sf ${.CURDIR}/../../../sys/arch/${TARGET_MACHINE_ARCH}/include \
cross-include/${TARGET_MACHINE_ARCH}
.else
diff --git a/gnu/usr.bin/ld/m88k/md.h b/gnu/usr.bin/ld/m88k/md.h
index 677eaa1790e..5fde82c7a78 100644
--- a/gnu/usr.bin/ld/m88k/md.h
+++ b/gnu/usr.bin/ld/m88k/md.h
@@ -1,6 +1,6 @@
-/* * $OpenBSD: md.h,v 1.3 2001/11/25 04:20:40 miod Exp $*/
+/* * $OpenBSD: md.h,v 1.4 2001/12/24 03:13:55 miod Exp $*/
/*
- * - m68k dependent definitions
+ * - m88k dependent definitions
*/
#if defined(CROSS_LINKER)
@@ -10,9 +10,13 @@
#define NEED_SWAP
#endif
+#undef __LDPGSZ
+#undef ELF_TARG_DATA
+#undef ELF_TARG_MACH
+#undef relocation_info
#undef MID_MACHINE
-/* XXX */
-#define MID_MACHINE 153
+#define MID_MACHINE MID_M88K
+#include <mvme88k/exec.h>
#endif
#define MAX_ALIGNMENT (sizeof (double))