I\'m doing some x86 assembler coding on Linux (Arch 64), using nasm to assemble and ld to link, to create a 32-bit executable thus:
wordcount: wordcount.o ld
You should use the dwarf format instead of stabs, like so:
nasm -f elf -g -F dwarf wordcount.asm -l wordcount.lst