libc-Problem
Von: Markus Wichmann (nullplan@gmx.net) [Profil]
Datum: 03.04.2007 17:45
Message-ID: <eutsq0$348$1@online.de>
Followup-to: de.comp.lang.assembler
Newsgroup: de.comp.lang.assembler de.comp.os.unix.programming
Datum: 03.04.2007 17:45
Message-ID: <eutsq0$348$1@online.de>
Followup-to: de.comp.lang.assembler
Newsgroup: de.comp.lang.assembler de.comp.os.unix.programming
Hi all, ich habe da ein Problem mit der libc, hoffe ihr versteht das wenigstens halbwegs. Ich stehe nämlich total im Dunkeln. Gegeben sei folgender Auszug aus einer Shell: ,---[bash]--- |markus@markus:~/src/asm$ cat args.asm |global _start |extern printf | |section .data |format: db '%s', 10, 0 | |section .text |_start: | pop ecx ; argc | or ecx, ecx | jz .ende | .loop: | push format ; Stack sollte jetzt format und das nächste arg v | ; enthalten | call printf | add esp, 8 ; format + nächstes argv | dec ecx | jnz .loop | .ende: | xor eax, eax | inc eax | xor bl, bl | int 80h |markus@markus:~/src/asm$ nasm -felf args.asm |markus@markus:~/src/asm$ ld -s -o args args.o -lc |markus@markus:~/src/asm$ ./args |bash: ./args: Datei oder Verzeichnis nicht gefunden |markus@markus:~/src/asm$ ldd ./args |/usr/bin/ldd: line 162: ./args: Datei oder Verzeichnis nicht gefunden |markus@markus:~/src/asm$ test -x args && echo Alles klar. |Alles klar. `------------- So, was habe ich jetzt falsch gemacht? Werden weitere Infos benötigt ? TIA und tschö, Markus -- Gegen TCPA! Für unsere Rechte! Homepage: http://wichi.wi.funpic.de Mail-Zertifikat: http://wichi.wi.funpic.de/certs/gmx/cert.crt Root-Zertifikat: http://wichi.wi.funpic.de/certs/root/cert.crt[ Auf dieses Posting antworten ]
Antworten
- loladi (04.04.2007 16:12)
