[ARC] Fixed issue with DTSOFF relocs.
authorCupertino Miranda <cmiranda@synopsys.com>
Wed, 5 Sep 2018 23:50:35 +0000 (00:50 +0100)
committerCupertino Miranda <cmiranda@synopsys.com>
Mon, 1 Oct 2018 11:42:11 +0000 (12:42 +0100)
commit714e9a954a2e4123dcb26bb8da850e1344de4f5f
tree8b2bef98b70f26840a402854fb6c20589229a3e0
parent0411fca5ec2a6adb96ed768f70ed468435d778ea
[ARC] Fixed issue with DTSOFF relocs.

Inserted offset in final section in the GOT entry of type DTSOFF soon to be
relocated by the dynamic loader.

bfd/
2018-09-06  Cupertino Miranda <cmiranda@synopsys.com>

* arc-got.h (relocate_fix_got_relocs_for_got_info): Changed. Take TLS
    section alignment in consideration for this relocation.
* elf32-arc.c (FINAL_SECTSTART): Added this formula macro.
  (ARC_TLS_DTPOFF) Updated reloc to use new created macro instead.
bfd/arc-got.h
bfd/elf32-arc.c
include/elf/arc-reloc.def