objdump does not use the .gnu_debuglink information to find debug information for a stripped executable. This means objdump -l does not produce line numbers when disassembling even though the information is available. $ gcc -g -o forkfork forkfork.c $ objcopy --only-keep-debug forkfork forkfork.dbg $ strip forkfork $ objcopy --add-gnu-debuglink=forkfork.dbg forkfork $ objdump -h forkfork forkfork: file format elf32-i386 Sections: Idx Name Size VMA LMA File off Algn <SNIP> 24 .gnu_debuglink 00000014 00000000 00000000 000006f0 2**0 CONTENTS, READONLY $ objdump -l forkfork [no line numbers in disassembled main()] $ objdump --version GNU objdump 2.17.50.0.6-2.fc6 20061020
Does this patch http://sourceware.org/ml/binutils-cvs/2007-06/msg00080.html fix this problem?
Fixed