https://sourceware.org/bugzilla/show_bug.cgi?id=18687
Bug ID: 18687 Summary: GNU as segfaults when file ended by '.endr' or '.endm' directive with spaces and end of line Product: binutils Version: 2.24 Status: NEW Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: matszpk at interia dot pl Target Milestone: --- Created attachment 8444 --> https://sourceware.org/bugzilla/attachment.cgi?id=8444&action=edit Sample source code for that GNU as segfaults. For following code the GNU as segfaults: .macro Xv .string "\Xv" .endm << end of line this code have only three lines, where last line is not ended by newline. GNU as prints messages: irptest.s: Assembler messages: irptest.s:3: Warning: partial line at end of file ignored irptest.s:1: Error: unexpected end of file in macro `xv' definition and segfaults. This same problem has been encountered for that code: .irp Xv, aaaa .string "\Xv" .endr << end of line Likewise, that code have line that is not ended by newline. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils