bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/22874] GAS does not emit multibyte nops before a function symbo


From: mliska at suse dot cz
Subject: [Bug gas/22874] GAS does not emit multibyte nops before a function symbol
Date: Mon, 26 Feb 2018 04:25:59 +0000

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

--- Comment #4 from Martin Liska <mliska at suse dot cz> ---
(In reply to H.J. Lu from comment #1)
> The limit of multibyte nop for code alignment is
> 
> #define MAX_MEM_FOR_RS_ALIGN_CODE  31

Thanks, I can confirm that:

00000000004004c0 <foo>:
  4004c0:       eb fe                   jmp    4004c0 <foo>
  4004c2:       66 2e 0f 1f 84 00 00    nopw   %cs:0x0(%rax,%rax,1)
  4004c9:       00 00 00 
  4004cc:       66 2e 0f 1f 84 00 00    nopw   %cs:0x0(%rax,%rax,1)
  4004d3:       00 00 00 
  4004d6:       66 2e 0f 1f 84 00 00    nopw   %cs:0x0(%rax,%rax,1)
  4004dd:       00 00 00 

00000000004004e0 <foo2>:
  4004e0:       f3 c3                   repz retq 
  4004e2:       66 2e 0f 1f 84 00 00    nopw   %cs:0x0(%rax,%rax,1)
  4004e9:       00 00 00 
  4004ec:       0f 1f 40 00             nopl   0x0(%rax)

So the logical question is why is it limited? Does it have any disadvantages to
emit also big paddings in between symbols?

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