Thanks, your suggestion is atleast compileable .. i will test later .. greetings, Reinder
----- Original Message ----- From: "Brendan Trotter" <[EMAIL PROTECTED]> To: "todthgie" <[EMAIL PROTECTED]> Cc: "LinuxBIOS Mailing List" <linuxbios@linuxbios.org> Sent: Thursday, June 21, 2007 22:47 Subject: Re: [LinuxBIOS] LinuxBios V3 build failure > Hi, > > On 6/21/07, todthgie <[EMAIL PROTECTED]> wrote: >> i tried building LinuxBios V3 but it fails.. >> >> any suggestions ? > > <snip> > >> /home/reinder/proj/lbv3/LinuxBIOSv3/build/arch/x86/stage0_i586.o: In >> function `_stage0': >> /home/reinder/proj/lbv3/LinuxBIOSv3/arch/x86/stage0_i586.S:(.text+0xf): >> 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")... > > > Cheers, > > Brendan > -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios