public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED PATCH] gold: x86_64-nacl: Correct 9-byte nop sequence to match what the assembler generates.
@ 2013-10-30 23:02 Roland McGrath
  0 siblings, 0 replies; only message in thread
From: Roland McGrath @ 2013-10-30 23:02 UTC (permalink / raw)
  To: binutils

I did this change in BFD ld yesterday but forgot to do the same in gold.
Committed to trunk and 2.24 branch.


Thanks,
Roland


gold/
2013-10-30  Roland McGrath  <mcgrathr@google.com>

	* x86_64.cc (Output_data_plt_x86_64_nacl::first_plt_entry):
	Correct 9-byte nop sequence to match what the assembler generates.

--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -4649,7 +4649,7 @@
Output_data_plt_x86_64_nacl<size>::first_plt_entry[plt_entry_size] =
   0x41, 0xff, 0xe3,                   // jmpq *%r11

   // 9-byte nop sequence to pad out to the next 32-byte boundary.
-  0x2e, 0x0f, 0x1f, 0x84, 0, 0, 0, 0, 0, // nopl %cs:0x0(%rax,%rax,1)
+  0x66, 0x0f, 0x1f, 0x84, 0, 0, 0, 0, 0, // nopw 0x0(%rax,%rax,1)

   // 32 bytes of nop to pad out to the standard size
   0x66, 0x66, 0x66, 0x66, 0x66, 0x66,    // excess data32 prefixes

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-10-30 23:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-30 23:02 [COMMITTED PATCH] gold: x86_64-nacl: Correct 9-byte nop sequence to match what the assembler generates Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).