bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/25789] [as] x86: duplicate jmp when .nops and jmp are used toge


From: hjl.tools at gmail dot com
Subject: [Bug gas/25789] [as] x86: duplicate jmp when .nops and jmp are used together
Date: Mon, 06 Apr 2020 19:07:36 +0000

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Fangrui Song from comment #2)
> > Gas limits number of executed NOP paddings to 7 NOPs:
> 
> Then .nops with a large immediate should be rejected. 
> 
> A smaller immediate for .nops works, e.g.
> 
> foo:
>   ret
> .nops 28
> jmp foo

Gas doesn't reject it.  It just jumps over nops.

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