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 -- Summary: objdump ignores .gnu_debuglink Product: binutils Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: cebbert at redhat dot com CC: bug-binutils at gnu dot org GCC host triplet: i386-redhat-linux http://sourceware.org/bugzilla/show_bug.cgi?id=4030 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils