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:
Thomas Veerman
2012-06-06 14:46:00 +00:00
parent 2ed11343a6
commit c8a0e2f4c6
140 changed files with 26869 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
$NetBSD$
--- bfd/aoutx.h.orig Thu Mar 16 12:20:15 2006
+++ bfd/aoutx.h
@@ -383,6 +383,7 @@ DESCRIPTION
Swap the information in an internal exec header structure
@var{execp} into the buffer @var{raw_bytes} ready for writing to disk.
*/
+#ifndef NAME_swap_exec_header_out
void
NAME (aout, swap_exec_header_out) (bfd *abfd,
struct internal_exec *execp,
@@ -398,6 +399,8 @@ NAME (aout, swap_exec_header_out) (bfd *abfd,
PUT_WORD (abfd, execp->a_trsize, bytes->e_trsize);
PUT_WORD (abfd, execp->a_drsize, bytes->e_drsize);
}
+#define NAME_swap_exec_header_out NAME(aout,swap_exec_header_out)
+#endif
/* Make all the section for an a.out file. */