Ld nierozpoznany format pliku
: 26 sierpnia 2007, 20:37
Kod: Zaznacz cały
ja@Fortress:~/asembler$ ls
hello.asm
a@Fortress:~/asembler$ nasm hello.asm
a@Fortress:~/asembler$ ls
hello hello.asm
a@Fortress:~/asembler$ ld hello
hello: file not recognized: File format not recognized
a@Fortress:~/asembler$ chmod u+rwx hello
a@Fortress:~/asembler$ ls
hello hello.asm
a@Fortress:~/asembler$ ld hello
hello: file not recognized: File format not recognized
a@Fortress:~/asembler$
Plik wzięty z kursu:
Kod: Zaznacz cały
section .text
global _start
_start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov eax,1
int 0x80
section .data
msg db 'Hello, world!',0xa
len equ $ - msg