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

            Bug ID: 26237
           Summary: addr32 is mishandled
           Product: binutils
           Version: 2.35
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

[hjl@gnu-cfl-2 tmp]$ cat y.s 
        .text
        .allow_index_reg
        addr32 mov      0x89abcdef,%rax
        addr32 mov      0x89abcdef,%rbx
        addr32 mov      $0x89abcdef,%rax
        addr32 mov      $0x89abcdef,%rbx
[hjl@gnu-cfl-2 tmp]$ gcc -c y.s
[hjl@gnu-cfl-2 tmp]$ objdump -dw y.o

y.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <.text>:
   0:   67 48 a1 ef cd ab 89    addr32 mov 0x89abcdef,%rax
   7:   67 48 8b 1c 25 ef cd ab 89      mov    -0x76543211(,%eiz,1),%rbx
  10:   67 48 b8 ef cd ab 89 ff ff ff ff        addr32 movabs
$0xffffffff89abcdef,%rax
  1b:   67 48 bb ef cd ab 89 ff ff ff ff        addr32 movabs
$0xffffffff89abcdef,%rbx
[hjl@gnu-cfl-2 tmp]$

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

Reply via email to