From: John D. <joh...@ya...> - 2005-06-28 03:00:02
|
I am trying to get TLDP's "Hello World" program to compile (http://www.tldp.org/HOWTO/Assembly-HOWTO/hello.html). I followed the instructions to build it: $ nasm -f elf hello.asm $ ld -s -o hello hello.o When I try to run the program with "./hello", I get a segmentation fault. Does anybody know what the problem could be? I tried the gas example following the instructions in the howto, and it seemed to work. Could somebody tell me what I'm doing wrong? I'm using nasm 0.98.39 with ld 2.16. I'm running a 2.6.11 kernel. Thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |