mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-26 07:19:16 +08:00
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>:
Don't subtract the size of the TLS block for non-shared objects from the relocation.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2009-10-19 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>:
|
||||||
|
Don't subtract the size of the TLS block for non-shared objects
|
||||||
|
from the relocation.
|
||||||
|
|
||||||
2009-10-17 Arnold Metselaar <arnold.metselaar@planet.nl>
|
2009-10-17 Arnold Metselaar <arnold.metselaar@planet.nl>
|
||||||
|
|
||||||
* coff-z80.c (z80coff_vec): Allow sections to be of type
|
* coff-z80.c (z80coff_vec): Allow sections to be of type
|
||||||
|
@ -1690,15 +1690,10 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
= -elf_cris_hash_table (info)->dtpmod_refcount;
|
= -elf_cris_hash_table (info)->dtpmod_refcount;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The thread-based offset to the local symbol is the
|
/* The relocation is the offset from the start of the module
|
||||||
relocation.
|
TLS block to the (local) symbol. */
|
||||||
For the executable, TLS data begins at the thread pointer plus
|
|
||||||
the negative size of the TLS data. For a DSO, that's part of
|
|
||||||
the module TLS offset. */
|
|
||||||
relocation -= elf_hash_table (info)->tls_sec == NULL
|
relocation -= elf_hash_table (info)->tls_sec == NULL
|
||||||
? 0 : (elf_hash_table (info)->tls_sec->vma
|
? 0 : elf_hash_table (info)->tls_sec->vma;
|
||||||
+ (info->shared
|
|
||||||
? 0 : elf_hash_table (info)->tls_size));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case R_CRIS_32_GD:
|
case R_CRIS_32_GD:
|
||||||
|
Reference in New Issue
Block a user