Il'dar Al'Miev <ialm...@yandex.ru> writes:

> Hello,
>
> i installed nasm, and yasm (Assembler) in Msys2 (Mingw64). using a
> command "nasm -f elf helloworld.asm" produces the object file
> "helloworld.o" (i downloaded the asm-file, that is demonstrated below,
> from Internet).
>
> now, i am trying to link, using the command "ld -m elf_i386 helloworld.o -o 
> helloworld.exe". however, this command produces pseudo-symbols, and the file, 
> helloworld.exe, is not produced.
>
> i would appreciate someone's help to solve the problem (that is, how to 
> compile, and to link, correctly, assembly-files).

Windows does not use elf. Why do you use `-f` and `-m` parameters?

Apart from that, your assembler seems copied from some linux tutorial.
Windows does not use int 80 for invoking kernel functions.



_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to