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:
21
tools/binutils/patches/patch-ag
Normal file
21
tools/binutils/patches/patch-ag
Normal 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. */
|
||||
|
||||
Reference in New Issue
Block a user