Run: as --gdwarf2 qtmds.s using attached file. Segfaults.
Created attachment 90057 [details] qtmds.s
Primarily the assembly is broken. Kill .file 2 "axp.s" line (files are numbered starting from 1, not 2). Of course gas shouldn't segfault on it, just print error message.
Current CVS binutils certainly don't segfault on it: ./as-new qtmds.s qtmds.s: Assembler messages: qtmds.s:0: Warning: end of file not at end of a line; newline inserted qtmds.s:1: Error: junk at end of line, first unrecognized character valued 0x7 qtmds.s:1: Error: junk at end of line, first unrecognized character valued 0xf qtmds.s:1: Error: unknown opcode `' qtmds.s:1: Error: unknown opcode `mbin' qtmds.s:1: Error: unknown opcode `'
Argh, the file was some weirdo format. When assembling just the assembler from it, it works even without a warning.