[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/30426] New: gas x86: reject {call,jmp} [offset func] in In
From: |
i at maskray dot me |
Subject: |
[Bug binutils/30426] New: gas x86: reject {call,jmp} [offset func] in Intel syntax |
Date: |
Sat, 06 May 2023 20:34:25 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30426
Bug ID: 30426
Summary: gas x86: reject {call,jmp} [offset func] in Intel
syntax
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
% cat a.s
call [offset func]
jmp [offset func]
% as -msyntax=intel a.s -o a.o
% objdump -M intel -dr a.o
a.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <.text>:
0: e8 00 00 00 00 call 0x5
1: R_X86_64_PLT32 func-0x4
5: e9 00 00 00 00 jmp 0xa
6: R_X86_64_PLT32 func-0x4
MSVC ml64.exe reports "error A2023:instruction operand must have size"
for the following assembly listing
extrn k:proc
_text segment
call [offset k]
; call qword ptr [offset k] ; this is somehow accepted
_text ends
end
This is a patch for LLVM integrated assembler (used by `clang -c -masm=intel`,
llvm-mc, etc) to reject call [offset k] and jmp [offset k]:
https://reviews.llvm.org/D150048
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/30426] New: gas x86: reject {call,jmp} [offset func] in Intel syntax,
i at maskray dot me <=