From: Chen S. <yin...@gm...> - 2005-06-08 10:06:15
|
Hi all: I've written a module by asm and want to link it with another module writte= n=20 by C. I did the following things: nasm -f elf -g -F stabs test_memset.asm gcc -c -g main.c Then I tried using ld to link them together: ld main.o test_memset.o -static But I got the following error message: ld: test_memset.o(.stab+0x0): Stabs entry has invalid string index. test_memset.o: could not read symbols: Bad value If I don't create the debug information, and just use "nasm -f elf=20 test_memset.asm", It's Ok. So can anyone help me out? How to add debug information? Thanks a lot! <nas...@li...> |