+2009-01-27 Hans-Peter Nilsson <hp@axis.com>
+
+ * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
+ (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
+ the size of local TLS data.
+
2009-01-27 Andreas Schwab <schwab@suse.de>
* mach-o.c (bfd_mach_o_archive_p): Restrict the number of
relocation -= elf_hash_table (info)->tls_sec == NULL
? 0 : (elf_hash_table (info)->tls_sec->vma
+ (info->shared
- ? 0 : elf_hash_table (info)->tls_sec->size));
+ ? 0 : elf_hash_table (info)->tls_size));
break;
case R_CRIS_32_GD:
/* The symbol is defined in the program, so just write
(1, -prog_tls_size+known_tpoffset) into the GOT. */
relocation -= elf_hash_table (info)->tls_sec->vma;
- relocation -= elf_hash_table (info)->tls_sec->size;
+ relocation -= elf_hash_table (info)->tls_size;
if (h != NULL)
{
/* The symbol is defined in the program, so just write
the -prog_tls_size+known_tpoffset into the GOT. */
relocation -= elf_hash_table (info)->tls_sec->vma;
- relocation -= elf_hash_table (info)->tls_sec->size;
+ relocation -= elf_hash_table (info)->tls_size;
if (h != NULL)
off = h->got.offset;
relocation -= elf_hash_table (info)->tls_sec == NULL
? 0
: (elf_hash_table (info)->tls_sec->vma
- + elf_hash_table (info)->tls_sec->size);
+ + elf_hash_table (info)->tls_size);
/* The TLS-relative offset is the relocation. */
break;