http://sourceware.org/bugzilla/show_bug.cgi?id=13471
Bug #: 13471
Summary: out-of-range indexing error in elf_howto_table[
R_386_IRELATIVE]
Product: binutils
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
I'm using the Intel compiler to compile binutils and it discovered an
out-of-bounds indexing error at line #326 of elf32-i386.c
Here's the code that's presently there:
case BFD_RELOC_386_TLS_DESC:
TRACE ("BFD_RELOC_386_TLS_DESC");
return &elf_howto_table[R_386_TLS_DESC - R_386_tls_offset];
case BFD_RELOC_386_IRELATIVE:
TRACE ("BFD_RELOC_386_IRELATIVE");
return &elf_howto_table[R_386_IRELATIVE]; /* Bounds error on this line
*/
case BFD_RELOC_VTABLE_INHERIT:
TRACE ("BFD_RELOC_VTABLE_INHERIT");
return &elf_howto_table[R_386_GNU_VTINHERIT - R_386_vt_offset];
Since there are gaps in the elf_howto_table, the R_386_IRELATIVE index needs an
offset.
Thanks!
--Melanie
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils