Import NetBSD tools and build.sh
This commit finalizes support for cross compilation. The tools directory are all links to the actual tools and are built on the host system to build Minix. build.sh is the work horse that takes care of all environment settings. It's slightly adjusted for Minix. The /usr/src/Makefile has additional targets needed for cross compilation.
This commit is contained in:
16
tools/binutils/patches/patch-ao
Normal file
16
tools/binutils/patches/patch-ao
Normal file
@@ -0,0 +1,16 @@
|
||||
$NetBSD$
|
||||
|
||||
--- gas/config/te-minix.h.orig Sat Feb 26 00:58:30 2011
|
||||
+++ gas/config/te-minix.h
|
||||
@@ -0,0 +1,11 @@
|
||||
+#define TE_MINIX 1
|
||||
+
|
||||
+/* Added these, because if we don't know what we're targeting we may
|
||||
+ need an assembler version of libgcc, and that will use local
|
||||
+ labels. */
|
||||
+#define LOCAL_LABELS_DOLLAR 1
|
||||
+#define LOCAL_LABELS_FB 1
|
||||
+
|
||||
+#define ELF_TARGET_FORMAT "elf32-i386-minix"
|
||||
+
|
||||
+#include "obj-format.h"
|
||||
Reference in New Issue
Block a user