Module Name: src
Committed By: christos
Date: Tue Oct 11 15:12:00 UTC 2011
Modified Files:
src/external/gpl3/gdb/dist/bfd: elf32-i386.c
Log Message:
don't forget to subtract the offset; found by clang -Warray-bounds
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/bfd/elf32-i386.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/bfd/elf32-i386.c
diff -u src/external/gpl3/gdb/dist/bfd/elf32-i386.c:1.1.1.1 src/external/gpl3/gdb/dist/bfd/elf32-i386.c:1.2
--- src/external/gpl3/gdb/dist/bfd/elf32-i386.c:1.1.1.1 Sat Sep 24 15:44:59 2011
+++ src/external/gpl3/gdb/dist/bfd/elf32-i386.c Tue Oct 11 11:11:59 2011
@@ -323,7 +323,7 @@ elf_i386_reloc_type_lookup (bfd *abfd AT
case 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:
TRACE ("BFD_RELOC_VTABLE_INHERIT");