bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/30585] as ignores {disp16} in 16bit mode


From: hjl.tools at gmail dot com
Subject: [Bug gas/30585] as ignores {disp16} in 16bit mode
Date: Tue, 27 Jun 2023 16:12:44 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-06-27
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1
                 CC|                            |hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Works for me with 2.39:

[hjl@gnu-cfl-3 tmp]$ cat y.s
      .code16
        {disp16} jmp 1f
        nop
1:
[hjl@gnu-cfl-3 tmp]$ gcc -c y.s
[hjl@gnu-cfl-3 tmp]$ objdump -dw -Mi8086 y.o

y.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <.text>:
   0:   e9 01 00                jmp    0x4
   3:   90                      nop
[hjl@gnu-cfl-3 tmp]$ 

It is probably fixed by

commit 1a42a9fe4e60599bba1f047743a5b8b2ba96ee1f
Author: Jan Beulich <jbeulich@suse.com>
Date:   Tue Apr 12 09:01:55 2022 +0200

    x86: make {disp16} work similarly to {disp32}

    In a few places {disp32} was handled specially when really {disp16}
    wants handling just the same.

-- 
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]