x86_64 again...

Ken Moffat ken at kenmoffat.uklinux.net
Tue Jun 28 06:35:26 PDT 2005


On Mon, 27 Jun 2005, Jens Olav Nygaard wrote:

> Ken Moffat wrote:
>
> >  Similarly, the common bootloaders are 32-bit (I think Chris Lingard
> > patched lilo or one of its dependencies to build on a 64-bit host, but I
> > could be wrong).  Obviously, you can install the bootloader from a
> > 32-bit host, but long-term that's not a viable solution.
>
> Hmm. I see. I'll search around for info on my favorite (Lilo) then.
>

Turns out the package that needed patching was bin86.  Couldn't find
Chris's iso anywhere so I couldn't download it and extract his patch,
but I found the attached from Rock Linux - I'm somewhat dubious about
the attempt to dual-license the patch, but bin86-0.16.17 is GPL'd
anyway.

Tested with nasm-0.98.39, bin86-0.16.17, lilo-22.7 [ as ever, when
upgrading lilo on a multiple-system box, use mkrescue first to create a
bootable CD, confirm that works, then upgrade each system to the same
version so that you can later run lilo from any of them ]

Ken
-- 
 das eine Mal als Tragödie, das andere Mal als Farce
-------------- next part --------------
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
# 
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
# 
# ROCK Linux: rock-src/package/x86/bin86/x86_64.patch
# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
# 
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# 
# --- ROCK-COPYRIGHT-NOTE-END ---

diff -urN bin86-0.16.14-orig/ld/x86_aout.h bin86-0.16.14/ld/x86_aout.h
--- bin86-0.16.14-orig/ld/x86_aout.h	2004-11-07 20:07:31.506442000 +0100
+++ bin86-0.16.14/ld/x86_aout.h	2004-11-07 20:07:41.106982496 +0100
@@ -12,6 +12,9 @@
 #if defined(i386) || defined(__BCC__) || defined(MSDOS)
 typedef long Long;
 #define __OUT_OK 1
+#elif defined(__x86_64__)
+typedef int Long;
+#define __OUT_OK 1
 #else
 typedef char Long[4];
 #endif


More information about the lfs-support mailing list