[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/29751] New: (%dx) is mishandled
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gas/29751] New: (%dx) is mishandled |
Date: |
Fri, 04 Nov 2022 20:31:53 +0000 |
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.
- [Bug gas/29751] New: (%dx) is mishandled,
hjl.tools at gmail dot com <=