I am using cygwin to compile and link assembly. First problem, when I enter ld command : ld -m elf_i386 helloworld.o -o helloworld I get the following error: ld: unrecognised emulation mode: elf_i386 Supported emulations: i386pe i386pep Second problem, when I run the program I get no output and I get segmentation fault
SECTION .data
msg db 'Hello World!', 0Ah
SECTION .text
global _start
_start:
mov edx , 13
mov ecx , msg
mov ebx , 1
mov eax , 4
int 80h
mov ebx , 0
mov eax , 1
int 80h