bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/21874] x86: Multiple segment registers in the address are not d


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gas/21874] x86: Multiple segment registers in the address are not detected with -masm=intel
Date: Tue, 01 Aug 2017 13:00:24 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21874

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4d36230d59903b92fbe2b53b31ed64a884860f0e

commit 4d36230d59903b92fbe2b53b31ed64a884860f0e
Author: H.J. Lu <address@hidden>
Date:   Tue Aug 1 05:53:27 2017 -0700

    x86: Update segment register check in Intel syntax

    https://sourceware.org/ml/binutils/2009-04/msg00223.html

    introduced a new Intel syntax parser which accepts

        mov     eax, fs:gs:[eax]

    It ignores anything between ':'s after fs and treats

        mov     eax, DWORD PTR fs:foobar:16
        mov     eax, DWORD PTR fs:foobar:barfoo:16
        mov     eax, DWORD PTR fs:ds:16
        mov     eax, DWORD PTR fs:ds:cs:16

    as

        mov     eax, DWORD PTR fs:16

    This patch updates segment register check and only allows a single ':'.

        PR gas/21874
        * config/tc-i386-intel.c (i386_intel_operand): Update segment
        register check.
        * testsuite/gas/i386/intelok.s: Replace "fs:gs:[eax]" with
        "fs:[eax]".
        * testsuite/gas/i386/inval-seg.s: Add tests for invalid segment
        register.
        * testsuite/gas/i386/x86-64-inval-seg.s: Likewise.
        * testsuite/gas/i386/inval-seg.l: Updated.
        * testsuite/gas/i386/x86-64-inval-seg.l: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]