------- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-21 22:32 ------- The issue is here: g++ -g -c test.s -o test.o
Don't use -g with assembly code that already has debugging info in it. Also I think this was just fixed on the trunk of binutils lately where it checks to make sure that if there is debugging info, don't create new debugging info based on the assembly file. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37196