Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Apr 2003 03:37:03 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28222 for review
Message-ID:  <200304051137.h35Bb3Ls052430@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28222

Change 28222 by peter@peter_overcee on 2003/04/05 03:36:32

	make the kernel link, by any means necessary.
	
	peter@overcee[3:34am]~/fbp4/hammer/sys/x86_64/compile/GENERIC-593> ls -l kernel
	-rwxr-xr-x  1 peter  peter  1866185 Apr  5 03:32 kernel*
	peter@overcee[3:34am]~/fbp4/hammer/sys/x86_64/compile/GENERIC-594> file kernel
	kernel: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), not stripped
	
	Obviously, do not try booting it. There are a boatload of known-wrong things.
	Not that anybody could, because the i386 loader doesn't understand elf64.
	But this seems like a good point to get some sleep.

Affected files ...

.. //depot/projects/hammer/sys/conf/Makefile.x86_64#6 edit
.. //depot/projects/hammer/sys/x86_64/x86_64/locore.s#25 edit

Differences ...

==== //depot/projects/hammer/sys/conf/Makefile.x86_64#6 (text+ko) ====

@@ -21,7 +21,7 @@
 CWARNFLAGS=     -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
                 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
                 -ffreestanding -Wno-format
-CC=             x86_64-unknown-freebsd5.0-gcc
+CC=             x86_64-unknown-freebsd5.0-gcc -mcmodel=medium
 LD=             x86_64-unknown-freebsd5.0-ld
 NM=             x86_64-unknown-freebsd5.0-nm
 SIZE=           x86_64-unknown-freebsd5.0-size

==== //depot/projects/hammer/sys/x86_64/x86_64/locore.s#25 (text+ko) ====

@@ -131,7 +131,7 @@
 	movw	$0x1234,0x472
 
 /* Get onto a stack that we can trust and set up a real frame. */
-	movl	$R(HIDENAME(tmpstk)),%esp
+#	movl	$R(HIDENAME(tmpstk)),%esp
 	pushl	%ebp
 	movl	%esp, %ebp
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304051137.h35Bb3Ls052430>