https://sourceware.org/bugzilla/show_bug.cgi?id=29751
Bug ID: 29751 Summary: (%dx) is mishandled Product: binutils Version: 2.40 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: i386 The memory operand of (%dx) should be only used with input/output instructions. But we failed to properly check it: [hjl@gnu-tgl-3 tmp]$ cat a1.s incl (%dx) [hjl@gnu-tgl-3 tmp]$ gcc -c a1.s [hjl@gnu-tgl-3 tmp]$ objdump -dw a1.o a1.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 <.text>: 0: ff 00 incl (%rax) [hjl@gnu-tgl-3 tmp]$ cat a2.s mov (%dx), %ax [hjl@gnu-tgl-3 tmp]$ gcc -c a2.s a2.s: Assembler messages: a2.s:1: Internal error (Segmentation fault). Please report this bug. [hjl@gnu-tgl-3 tmp]$ -- You are receiving this mail because: You are on the CC list for the bug.