Skip to content

Commit 9c4a55b

Browse files
clazissShahab Vahedi
authored andcommitted
arc: Do not relocate TLS/GOT symbols which are resolved to zero
Signed-off-by: Claudiu Zissulescu <claziss@gmail.com>
1 parent 8c97294 commit 9c4a55b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bfd/elfnn-arc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1840,7 +1840,8 @@ elf_arc_relocate_section (bfd *output_bfd,
18401840
}
18411841

18421842
if ((is_reloc_for_GOT (howto)
1843-
|| is_reloc_for_TLS (howto)))
1843+
|| is_reloc_for_TLS (howto))
1844+
&& !resolved_to_zero)
18441845
{
18451846
reloc_data.should_relocate = true;
18461847

0 commit comments

Comments
 (0)