mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
* elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
to the full size, padding out with nop instructions.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-03-14 Roland McGrath <mcgrathr@google.com>
|
||||||
|
|
||||||
|
* elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
|
||||||
|
to the full size, padding out with nop instructions.
|
||||||
|
|
||||||
2012-03-12 Alan Modra <amodra@gmail.com>
|
2012-03-12 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
|
* elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
|
||||||
|
@ -2702,7 +2702,7 @@ elf_i386_size_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
|
|||||||
it's not incremented, so in order to compute the space reserved
|
it's not incremented, so in order to compute the space reserved
|
||||||
for them, it suffices to multiply the reloc count by the jump
|
for them, it suffices to multiply the reloc count by the jump
|
||||||
slot size.
|
slot size.
|
||||||
|
|
||||||
PR ld/13302: We start next_irelative_index at the end of .rela.plt
|
PR ld/13302: We start next_irelative_index at the end of .rela.plt
|
||||||
so that R_386_IRELATIVE entries come last. */
|
so that R_386_IRELATIVE entries come last. */
|
||||||
if (htab->elf.srelplt)
|
if (htab->elf.srelplt)
|
||||||
@ -5109,7 +5109,10 @@ elf_i386_nacl_pic_plt0_entry[sizeof (elf_i386_nacl_plt0_entry)] =
|
|||||||
0x8b, 0x4b, 0x08, /* mov 0x8(%ebx), %ecx */
|
0x8b, 0x4b, 0x08, /* mov 0x8(%ebx), %ecx */
|
||||||
0x83, 0xe1, 0xe0, /* and $NACLMASK, %ecx */
|
0x83, 0xe1, 0xe0, /* and $NACLMASK, %ecx */
|
||||||
0xff, 0xe1, /* jmp *%ecx */
|
0xff, 0xe1, /* jmp *%ecx */
|
||||||
0x90 /* nop */
|
|
||||||
|
/* This is expected to be the same size as elf_i386_nacl_plt0_entry,
|
||||||
|
so pad to that size with nop instructions. */
|
||||||
|
0x90, 0x90, 0x90, 0x90, 0x90, 0x90
|
||||||
};
|
};
|
||||||
|
|
||||||
static const bfd_byte elf_i386_nacl_pic_plt_entry[NACL_PLT_ENTRY_SIZE] =
|
static const bfd_byte elf_i386_nacl_pic_plt_entry[NACL_PLT_ENTRY_SIZE] =
|
||||||
|
Reference in New Issue
Block a user