Skip to content

Commit dcb2918

Browse files
committed
arc: Do not relocate TLS/GOT symbols which are resolved to zero
Signed-off-by: Claudiu Zissulescu <claziss@gmail.com>
1 parent beabdc5 commit dcb2918

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
@@ -1827,7 +1827,8 @@ elf_arc_relocate_section (bfd *output_bfd,
18271827
}
18281828

18291829
if ((is_reloc_for_GOT (howto)
1830-
|| is_reloc_for_TLS (howto)))
1830+
|| is_reloc_for_TLS (howto))
1831+
&& !resolved_to_zero)
18311832
{
18321833
reloc_data.should_relocate = true;
18331834

0 commit comments

Comments
 (0)