Well, there is now a development branch in the git repository, which contains the infrastructure needed for rewriting the core in C. As an initial test case it simply contains a "Hello, World!" and a rewrite of rllpack in C. This is not production code in any way: SYSLINUX (the FAT version) is completely broken (I haven't had time to fix the installers yet) and the Linux kernel loader (as opposed to linux.c32) seems to have problems. Together with liu and Claudiu's work this summer, and eventually Stefan's from last year, this should be a major step towards a clean core. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
H. Peter Anvin wrote:> Well, there is now a development branch in the git repository, which > contains the infrastructure needed for rewriting the core in C. As an > initial test case it simply contains a "Hello, World!" and a rewrite of > rllpack in C. > > This is not production code in any way: SYSLINUX (the FAT version) is > completely broken (I haven't had time to fix the installers yet) and the > Linux kernel loader (as opposed to linux.c32) seems to have problems. > > Together with liu and Claudiu's work this summer, and eventually > Stefan's from last year, this should be a major step towards a clean core. > > -hpa >I am getting ld -m elf_i386 -T syslinux.ld -M -o ldlinux.elf ldlinux.o libcore.a ../com32/lib/libcom32.a /usr/lib/gcc/i586-suse-linux/4.2.1/libgcc.a > ldlinux.map ld: ldlinux.o(.stab+0x0): Stabs entry has invalid string index. ldlinux.o: could not read symbols: Bad value make[1]: *** [ldlinux.elf] Error 1 - Sebastian
Sebastian Herbszt wrote:> > I am getting > > ld -m elf_i386 -T syslinux.ld -M -o ldlinux.elf ldlinux.o libcore.a ../com32/lib/libcom32.a > /usr/lib/gcc/i586-suse-linux/4.2.1/libgcc.a > ldlinux.map > ld: ldlinux.o(.stab+0x0): Stabs entry has invalid string index. > ldlinux.o: could not read symbols: Bad value > make[1]: *** [ldlinux.elf] Error 1 >What version of NASM are you using? -hpa
H. Peter Anvin wrote:> Sebastian Herbszt wrote: >> >> I am getting >> >> ld -m elf_i386 -T syslinux.ld -M -o ldlinux.elf ldlinux.o libcore.a ../com32/lib/libcom32.a >> /usr/lib/gcc/i586-suse-linux/4.2.1/libgcc.a > ldlinux.map >> ld: ldlinux.o(.stab+0x0): Stabs entry has invalid string index. >> ldlinux.o: could not read symbols: Bad value >> make[1]: *** [ldlinux.elf] Error 1 >> > > What version of NASM are you using?NASM version 0.98.39 compiled on Sep 21 2007 - Sebastian