------- Additional Comments From hjl dot tools at gmail dot com 2010-06-28 20:37 ------- (In reply to comment #7) > Created an attachment (id=4859) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4859&action=view) > assembler test case > > Sure. This was generated by > $ echo 'int main() { return 0; }' > test.c > $ clang -v -save-temps -g -c test.c > � > as --gdwarf2 -V -Qy --64 -o test.o test.s > GNU assembler version 2.20.51 (x86_64-linux-gnu) using BFD version (GNU > Binutils for Ubuntu) 2.20.51-system.20100617 > test.s: Assembler messages: > test.s:414: Fatal error: duplicate .debug_line sections >
That is clang bug. You should pass --gdwarf2 to as only if you want assembler to generate debug info instead of the compiler. --gdwarf2 is used to debug pure assembly codes. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10531 ------- 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