aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arc.c
diff options
context:
space:
mode:
authorCupertino Miranda <cmiranda@synopsys.com>2016-12-29 17:10:01 +0100
committerCupertino Miranda <cmiranda@synopsys.com>2017-06-08 19:00:36 +0200
commita0abe74332bd25aeb68acfadd74280c0f117c493 (patch)
tree2128997f00605dde87150541393c9df49932aae4 /bfd/elf32-arc.c
parentf4e6805f98d2b3eae305f66ba26ab25aae1485f2 (diff)
downloadgdb-a0abe74332bd25aeb68acfadd74280c0f117c493.zip
gdb-a0abe74332bd25aeb68acfadd74280c0f117c493.tar.gz
gdb-a0abe74332bd25aeb68acfadd74280c0f117c493.tar.bz2
[ARC] Fixed TLS for IE model.
In the case of static relocation, the GOT entries are fixed at link time and are set by the linker. In order to compute the right TLS offset it is necessary to add TCB_SIZE to the offset, just in case the dynamic linker is not expected to be executed (static linked case). This problem does appear in dynamic linked applications, as the dynamic linker is adding this TCB_SIZE by operating the TCB block structure. Problem revealed in GLIBC with static linking. bfd/ChangeLog: Cupertino Miranda <cmiranda@synopsys.com> arc-got.h (relocate_fix_got_relocs_for_got_info): Added TCB_SIZE to patched section contents for TLS IE reloc. elf32-arc.c: Remove TCB_SIZE preprocessor macro. Rebase to 0006
Diffstat (limited to 'bfd/elf32-arc.c')
-rw-r--r--bfd/elf32-arc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index f424f13..c1286b2 100644
--- a/bfd/elf32-arc.c
+++ b/bfd/elf32-arc.c
@@ -1187,7 +1187,6 @@ arc_special_overflow_checks (const struct arc_relocation_data reloc_data,
#define TLS_REL (bfd_signed_vma) \
((elf_hash_table (info))->tls_sec->output_section->vma)
#define TLS_TBSS (8)
-#define TCB_SIZE (8)
#define none (0)