[LinuxBIOS] LinuxBios V3 build failure
todthgie at hotmail.com
Thu Jun 21 23:43:12 CEST 2007
your suggestion is atleast compileable ..
i will test later ..
----- Original Message -----
From: "Brendan Trotter" <btrotter at gmail.com>
To: "todthgie" <todthgie at hotmail.com>
Cc: "LinuxBIOS Mailing List" <linuxbios at linuxbios.org>
Sent: Thursday, June 21, 2007 22:47
Subject: Re: [LinuxBIOS] LinuxBios V3 build failure
> On 6/21/07, todthgie <todthgie at hotmail.com> wrote:
>> i tried building LinuxBios V3 but it fails..
>> any suggestions ?
>> /home/reinder/proj/lbv3/LinuxBIOSv3/build/arch/x86/stage0_i586.o: In
>> function `_stage0':
>> relocation truncated to fit: R_386_16 against symbol `gdtptr' defined in
>> text section in
> I had the exact same problem (gcc (GCC) 4.1.2 (Gentoo 4.1.2), GNU
> assembler 2.16.1, GNU ld version 2.16.1).
> As far as I can tell binutils is mostly broken for 16-bit code and
> different versions of binutils is broken in different ways... ;-)
> It's fairly easy to fix though - in "/arch/x86/stage0_i586.S" find the
> first line with the "lgdt" instruction in it (it's about line number
> 60) and replace that line with these lines:
> movl $gdtptr,%ebx
> lgdt %cs:(%bx)
> I'm not too sure if that's the only thing I messed with to get it to
> work (but I think it is) - to be honest, I stumbled around doing all
> sorts of things for a while first (I'm much more used to assemblers
> like NASM, and much less familiar with "compiler back-ends pretending
> to be assemblers")...
More information about the coreboot