summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-02-25 07:44:39 +0000
committerpeter <peter@FreeBSD.org>2001-02-25 07:44:39 +0000
commitbded4d8c3026311cdf377ff814859b39b1f34b3f (patch)
tree999630098cc72f7641d566a838c7faa359157b73 /sys/amd64
parent8ae64ab333de48deeb80244bc29e52165c330ce7 (diff)
downloadFreeBSD-src-bded4d8c3026311cdf377ff814859b39b1f34b3f.zip
FreeBSD-src-bded4d8c3026311cdf377ff814859b39b1f34b3f.tar.gz
Make the kernel actually compile and link under a.out, using
gcc -aout -mno-underscores. The bioscall.s tweak is not an a.out requirement really, but to work around the bugs in the antique version of gas that used for a.out. Makefile hacks are all that is needed to get an a.out kernel. There is no telling if it will work though. This is little more than an academic curiosity anyway since all it is good for is situations where the boot code is hard wired, eg: rom bootstraps (such as the gnat box). GENERIC: ... size -aout kernel ; chmod 755 kernel text data bss dec hex 3051520 368640 198688 3618848 373820
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/locore.S6
-rw-r--r--sys/amd64/amd64/locore.s6
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S
index e5502ce..68927d5 100644
--- a/sys/amd64/amd64/locore.S
+++ b/sys/amd64/amd64/locore.S
@@ -57,6 +57,12 @@
#include "assym.s"
+#ifdef __AOUT__
+#define etext _etext
+#define edata _edata
+#define end _end
+#endif
+
/*
* XXX
*
diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s
index e5502ce..68927d5 100644
--- a/sys/amd64/amd64/locore.s
+++ b/sys/amd64/amd64/locore.s
@@ -57,6 +57,12 @@
#include "assym.s"
+#ifdef __AOUT__
+#define etext _etext
+#define edata _edata
+#define end _end
+#endif
+
/*
* XXX
*
OpenPOWER on IntegriCloud