This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[COMMITTED PATCH] BFD: elf64-x86-64-nacl: Correct 9-byte nop sequence used in PLT0 entry.
- From: Roland McGrath <mcgrathr at google dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 29 Oct 2013 16:19:14 -0700
- Subject: [COMMITTED PATCH] BFD: elf64-x86-64-nacl: Correct 9-byte nop sequence used in PLT0 entry.
- Authentication-results: sourceware.org; auth=none
Committed to trunk and 2.24 branch.
Thanks,
Roland
bfd/
2013-10-29 Roland McGrath <mcgrathr@google.com>
* elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Correct 9-byte nop
sequence to match what the assembler generates.
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -5383,7 +5383,7 @@ static const bfd_byte
elf_x86_64_nacl_plt0_entry[NACL_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 */