mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 13:53:29 +08:00
Fix the array access for BFD_RELOC_386_IRELATIVE.
2011-04-11 H.J. Lu <hongjiu.lu@intel.com> * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound array access for BFD_RELOC_386_IRELATIVE.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-04-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
|
||||||
|
array access for BFD_RELOC_386_IRELATIVE.
|
||||||
|
|
||||||
2011-04-11 Bernd Schmidt <bernds@codesourcery.com>
|
2011-04-11 Bernd Schmidt <bernds@codesourcery.com>
|
||||||
|
|
||||||
* elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
|
* elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
|
||||||
|
@ -324,7 +324,7 @@ elf_i386_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
|
|
||||||
case BFD_RELOC_386_IRELATIVE:
|
case BFD_RELOC_386_IRELATIVE:
|
||||||
TRACE ("BFD_RELOC_386_IRELATIVE");
|
TRACE ("BFD_RELOC_386_IRELATIVE");
|
||||||
return &elf_howto_table[R_386_IRELATIVE];
|
return &elf_howto_table[R_386_IRELATIVE - R_386_tls_offset];
|
||||||
|
|
||||||
case BFD_RELOC_VTABLE_INHERIT:
|
case BFD_RELOC_VTABLE_INHERIT:
|
||||||
TRACE ("BFD_RELOC_VTABLE_INHERIT");
|
TRACE ("BFD_RELOC_VTABLE_INHERIT");
|
||||||
|
Reference in New Issue
Block a user