aboutsummaryrefslogtreecommitdiff
path: root/include/elf
diff options
context:
space:
mode:
authorCupertino Miranda <cmiranda@synopsys.com>2018-09-06 00:50:35 +0100
committerCupertino Miranda <cmiranda@synopsys.com>2018-10-01 12:42:11 +0100
commit714e9a954a2e4123dcb26bb8da850e1344de4f5f (patch)
tree8b2bef98b70f26840a402854fb6c20589229a3e0 /include/elf
parent0411fca5ec2a6adb96ed768f70ed468435d778ea (diff)
downloadgdb-714e9a954a2e4123dcb26bb8da850e1344de4f5f.zip
gdb-714e9a954a2e4123dcb26bb8da850e1344de4f5f.tar.gz
gdb-714e9a954a2e4123dcb26bb8da850e1344de4f5f.tar.bz2
[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.
Diffstat (limited to 'include/elf')
-rw-r--r--include/elf/arc-reloc.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/elf/arc-reloc.def b/include/elf/arc-reloc.def
index e1c69c9..61edd6e 100644
--- a/include/elf/arc-reloc.def
+++ b/include/elf/arc-reloc.def
@@ -468,7 +468,7 @@ ARC_RELOC_HOWTO(ARC_TLS_DTPOFF, 67, \
32, \
replace_word32, \
dont, \
- ( ME ( S - SECTSTART ) + A ))
+ ( ME ( S - FINAL_SECTSTART ) + A ))
ARC_RELOC_HOWTO(ARC_TLS_DTPOFF_S9, 73, \
2, \