I'm just starting out with Assembly languege, having installed NASM on openSUSE 13.1, i386 family processor yesterday. My worry is that a simple program like "Hello World!" has flagged a warning when linking...see line 3 below:
- coker.mu@linux-jm54:~/nasm> nasm -f elf helloWorld.asm
coker.mu@linux-jm54:~/nasm> ld -m elf_i386 -s -o helloWorld helloWorld.o
ld: warning: cannot find entry symbol _start; defaulting to 0000000008048080
coker.mu@linux-jm54:~/nasm> ls -l
- total 12
- -rwxr-xr-x 1 coker.mu users 360 Dec 19 21:06 helloWorld
- -rw-r--r-- 1 coker.mu users 429 Dec 19 21:04 helloWorld.asm
- -rw-r--r-- 1 coker.mu users 624 Dec 19 21:05 helloWorld.o
Even though the program prints as expected when executed, I worry about how many errors I might get in future as I venture into deeper waters. How do I suppress such frivolous warnings? I mean the program has the "global main" line as well as the "main:" label!!
C.M.