From 714e9a954a2e4123dcb26bb8da850e1344de4f5f Mon Sep 17 00:00:00 2001 From: Cupertino Miranda Date: Thu, 6 Sep 2018 00:50:35 +0100 Subject: [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 * 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. --- include/elf/arc-reloc.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/elf') 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, \ -- cgit v1.1