diff options
author | Cupertino Miranda <cmiranda@synopsys.com> | 2018-08-01 17:22:07 +0100 |
---|---|---|
committer | Cupertino Miranda <cmiranda@synopsys.com> | 2018-10-01 12:42:11 +0100 |
commit | 0411fca5ec2a6adb96ed768f70ed468435d778ea (patch) | |
tree | 2d337e904e57ced7ca021e8740acd3712ee11077 /bfd/elf32-arc.c | |
parent | ab16fcd743b8fc963e736f7d00e3c2f039ce0d56 (diff) | |
download | gdb-0411fca5ec2a6adb96ed768f70ed468435d778ea.zip gdb-0411fca5ec2a6adb96ed768f70ed468435d778ea.tar.gz gdb-0411fca5ec2a6adb96ed768f70ed468435d778ea.tar.bz2 |
[ARC] Fixes TLS failures related to tls-align.
This patch fixes glibc testcase in nptl/tls-align.
bfd/
2018-08-01 Cupertino Miranda <cmiranda@synopsys.com>
* arc-got.h (relocate_fix_got_relocs_for_got_info): Changed, fixed
TCB_SIZE offsize to include section alignment.
* elf32-arc.c (arc_special_overflow_checks): Likewise.
include/
2018-08-01 Cupertino Miranda <cmiranda@synopsys.com>
* arc-reloc.def (ARC_TLS_LE_32): Updated reloc formula.
Diffstat (limited to 'bfd/elf32-arc.c')
-rw-r--r-- | bfd/elf32-arc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 180c4dc..c52e2fb 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -1218,7 +1218,8 @@ arc_special_overflow_checks (const struct arc_relocation_data reloc_data, #define _SDA_BASE_ (bfd_signed_vma) (reloc_data.sdata_begin_symbol_vma) #define TLS_REL (bfd_signed_vma) \ ((elf_hash_table (info))->tls_sec->output_section->vma) -#define TLS_TBSS (8) +#define TLS_TBSS (align_power(TCB_SIZE, \ + reloc_data.sym_section->alignment_power)) #define none (0) |