[SOS] Error 13: Invalid or unsupported executable format

Bruno Rouchouse brouchouse at gmail.com
Jeu 12 Juil 21:38:48 CEST 2007


Quelques précisions au sujet de ma plate-forme :

Je tourne avec une Debian Etch. Ci-dessous les versions de gcc et ld utilisé
ainsi que la sortie de 'file sos.elf' :

bruno at debian:~/sos/sos-code-article1$ gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bruno at debian:~/sos/sos-code-article1$ ld --version
GNU ld version 2.17 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

bruno at debian:~/sos/sos-code-article1$ file sos.elf
sos.elf: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
statically linked, not stripped
bruno at debian:~/sos/sos-code-article1$

Rien d'anormal je pense...

Sinon, je n'ai effectué aucune modification de code, j'ai juste "adapté"
qemu-port-e9.diff à la dernière version 0.9.0 de qemu.

Je vais regarder côté sos.lds...

Merci pour votre aide et vos réponses...


Le 12/07/07, lementec fabien <fabien.lementec at gmail.com> a écrit :
>
> Y a peu d etre d autre chose, mais verifie que le linker de ton systeme
> interprete
> bien le ldscript, et que y a pas eu des changement depuis l ancienne
> version de
> ld. Aussi, peut etre une section dans l elf avec un nouveau nom, auquel
> cas il
> faudrait completer le ldscript.
> Je vois pas pourquoi le reste fonctionnerait pas, sauf si t as fait des
> modif dans
> le code.
>
> Le 11/07/07, Bruno Rouchouse <brouchouse at gmail.com> a écrit :
> >
> > Bonjour,
> >
> > je rencontre actuellement un petit problème lorsque je tente de faire
> > fonctionner mon image sos sous qemu :
> >
> > Booting 'Simple OS'
> >
> > root    (fd0)
> >  Filesystem type is fat, using whole disk
> > kernel /system/sos.elf
> >
> > Error 13: Invalid or unsupported executable format
> >
> > Press any key to continue...
> >
> > J'utilise le code de l'article 1 et qemu 0.9.0. Le processus de
> > génération de l'OS se déroule normalement :
> >
> > bruno at debian:~/sos/sos-code-article1$ make
> > 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
> > gcc -I/home/bruno/sos/sos-code-article1 -c drivers/x86_videomem.c -Wall
> > -nostdlib -nostdinc -ffreestanding -DKERNEL_SOS -o drivers/x86_videomem.o
> > gcc -I/home/bruno/sos/sos-code-article1 -c drivers/bochs.c -Wall
> > -nostdlib -nostdinc -ffreestanding -DKERNEL_SOS -o drivers/bochs.o
> > gcc -I/home/bruno/sos/sos-code-article1 -c sos/klibc.c -Wall -nostdlib
> > -nostdinc -ffreestanding -DKERNEL_SOS -o sos/klibc.o
> > gcc -I/home/bruno/sos/sos-code-article1 -c sos/main.c -Wall -nostdlib
> > -nostdinc -ffreestanding -DKERNEL_SOS -o sos/main.o
> > sos/main.c: In function 'sos_main':
> > sos/main.c:32: warning: unused variable 'i'
> > 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
> > nm -C sos.elf | cut -d ' ' -f 1,3 > sos.map
> > ./support/build_image.sh fd.img sos.elf
> > Found correct grub installation in /usr/lib/grub/i386-pc
> > Found correct /sbin/grub at /usr/sbin/grub
> > Initialize disk image ...
> > Setup destination disk...
> >
> > Quelqu'un aurait-il déjà rencontré ce problème ou pourrait-il me mettre
> > sur une piste pour le résoudre.
> >
> > En vous remerciant par avance...
> >
> > --Bruno
> >
> > _______________________________________________
> > Sos mailing list
> > Sos at the-doors.enix.org
> > http://the-doors.enix.org/cgi-bin/mailman/listinfo/sos
> >
> >
>
> _______________________________________________
> Sos mailing list
> Sos at the-doors.enix.org
> http://the-doors.enix.org/cgi-bin/mailman/listinfo/sos
>
>
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: http://the-doors.enix.org/pipermail/sos/attachments/20070712/cfbf476d/attachment.htm 


Plus d'informations sur la liste de diffusion Sos