Quelques précisions au sujet de ma plate-forme :<br><br>Je tourne avec une Debian Etch. Ci-dessous les versions de gcc et ld utilisé ainsi que la sortie de &#39;file sos.elf&#39; :<br><br>bruno@debian:~/sos/sos-code-article1$ gcc --version
<br>gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)<br>Copyright (C) 2006 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.&nbsp; There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
<br><br>bruno@debian:~/sos/sos-code-article1$ ld --version<br>GNU ld version 2.17 Debian GNU/Linux<br>Copyright 2005 Free Software Foundation, Inc.<br>This program is free software; you may redistribute it under the terms of
<br>the GNU General Public License.&nbsp; This program has absolutely no warranty.<br><br>bruno@debian:~/sos/sos-code-article1$ file sos.elf<br>sos.elf: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped
<br>bruno@debian:~/sos/sos-code-article1$<br><br>Rien d&#39;anormal je pense...<br><br>Sinon, je n&#39;ai effectué aucune modification de code, j&#39;ai juste &quot;adapté&quot; qemu-port-e9.diff à la dernière version 0.9.0
 de qemu.<br><br>Je vais regarder côté sos.lds...<br><br>Merci pour votre aide et vos réponses...<br><br><br><div><span class="gmail_quote">Le 12/07/07, <b class="gmail_sendername">lementec fabien</b> &lt;<a href="mailto:fabien.lementec@gmail.com">
fabien.lementec@gmail.com</a>&gt; a écrit :</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Y a peu d etre d autre chose, mais verifie que le linker de ton systeme interprete
<br>
bien le ldscript, et que y a pas eu des changement depuis l ancienne version de<br>
ld. Aussi, peut etre une section dans l elf avec un nouveau nom, auquel cas il<br>
faudrait completer le ldscript.<br>
Je vois pas pourquoi le reste fonctionnerait pas, sauf si t as fait des modif dans<br>
le code.<br><br><div><span class="gmail_quote">Le 11/07/07, <b class="gmail_sendername">Bruno Rouchouse</b> &lt;<a href="mailto:brouchouse@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
brouchouse@gmail.com</a>&gt; a écrit :</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_113bb13097c60ba7_1">

Bonjour,<br><br>je rencontre actuellement un petit problème lorsque je tente de faire fonctionner mon image sos sous qemu :<br><br>Booting &#39;Simple OS&#39;<br><br>root&nbsp;&nbsp;&nbsp; (fd0)<br>&nbsp;Filesystem type is fat, using whole disk
<br>kernel /system/sos.elf<br><br>Error 13: Invalid or unsupported executable format<br><br>Press any key to continue...<br><br>J&#39;utilise le code de l&#39;article 1 et qemu 0.9.0. Le processus de génération de l&#39;OS se déroule normalement :
<br><br>bruno@debian:~/sos/sos-code-article1$ make<br>gcc -I/home/bruno/sos/sos-code-article1 -c bootstrap/multiboot.S -Wall -nostdlib -nostdinc -ffreestanding -DKERNEL_SOS -DASM_SOURCE=1 -o bootstrap/multiboot.o<br>gcc -I/home/bruno/sos/sos-code-article1 -c drivers/x86_videomem.c -Wall -nostdlib -nostdinc -ffreestanding -DKERNEL_SOS -o drivers/x86_videomem.o
<br>gcc -I/home/bruno/sos/sos-code-article1 -c drivers/bochs.c -Wall -nostdlib -nostdinc -ffreestanding -DKERNEL_SOS -o drivers/bochs.o<br>gcc -I/home/bruno/sos/sos-code-article1 -c sos/klibc.c -Wall -nostdlib -nostdinc -ffreestanding -DKERNEL_SOS -o sos/klibc.o
<br>gcc -I/home/bruno/sos/sos-code-article1 -c sos/main.c -Wall -nostdlib -nostdinc -ffreestanding -DKERNEL_SOS -o sos/main.o<br>sos/main.c: In function &#39;sos_main&#39;:<br>sos/main.c:32: warning: unused variable &#39;i&#39;
<br>ld --warn-common -T ./support/sos.lds -o sos.elf
bootstrap/multiboot.o drivers/x86_videomem.o drivers/bochs.o
sos/klibc.o sos/main.o<br>nm -C sos.elf | cut -d &#39; &#39; -f 1,3 &gt; sos.map<br>./support/build_image.sh 
fd.img sos.elf<br>Found correct grub installation in /usr/lib/grub/i386-pc<br>Found correct /sbin/grub at /usr/sbin/grub<br>Initialize disk image ...<br>Setup destination disk...<br><br>Quelqu&#39;un aurait-il déjà rencontré ce problème ou pourrait-il me mettre sur une piste pour le résoudre.
<br><br>En vous remerciant par avance...<br><span><br>--Bruno<br>
</span><br></span></div><span class="q">_______________________________________________<br>Sos mailing list<br><a href="mailto:Sos@the-doors.enix.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Sos@the-doors.enix.org</a><br><a href="http://the-doors.enix.org/cgi-bin/mailman/listinfo/sos" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://the-doors.enix.org/cgi-bin/mailman/listinfo/sos</a><br><br></span></blockquote></div><br>
<br>_______________________________________________<br>Sos mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Sos@the-doors.enix.org">Sos@the-doors.enix.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://the-doors.enix.org/cgi-bin/mailman/listinfo/sos" target="_blank">
http://the-doors.enix.org/cgi-bin/mailman/listinfo/sos</a><br><br></blockquote></div><br>