Using gold build from [1] and a 32-bit dump_syms from Google breakpad. Take a hello world program and compile it without gold:
gcc -m32 -gstabs hello.c -o hello and then run dump_syms hello will produce: MODULE Linux x86 1888DA9DFDD4858254E7EA9FD030F83D0 hello FILE 0 hello.c FUNC 374 2b 0 main 374 11 4 0 385 c 5 0 391 5 6 0 396 9 7 0 then run: gcc -m32 -gstabs -B/path/to/dir_with_gold hello.c -o hello and I get: MODULE Linux x86 C170460C4897C338F08D0B7886DAD6D50 hello FUNC 1e4 2b 0 1e4 11 4 -1 1f5 c 5 -1 201 5 6 -1 206 9 7 -1 [1] ftp://sourceware.org/pub/binutils/snapshots/binutils-2.19.51.tar.bz2 -- Summary: Can't get stab symbols when linking with gold Product: binutils Version: 2.20 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: ian at airs dot com ReportedBy: thestig at google dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10219 ------- 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