From: Alan Modra Date: Tue, 5 Aug 2014 01:19:54 +0000 (+0930) Subject: Fix PR17226, ld --gc-sections segfaults on sparc-linux X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7833fb7b8e4d0c75138ef715935a5040bc9b2e78;p=binutils-gdb.git Fix PR17226, ld --gc-sections segfaults on sparc-linux PR ld/17226 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Typo fix. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 876de33e84a..6085db85dba 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2014-08-05 Alan Modra + + PR ld/17226 + * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Typo fix. + 2014-08-05 Alan Modra * linker.c (generic_link_check_archive_element): Move handling diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c index e8ebcb30632..2a5eb01eb7b 100644 --- a/bfd/elfxx-sparc.c +++ b/bfd/elfxx-sparc.c @@ -1970,7 +1970,7 @@ _bfd_sparc_elf_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info, } r_type = SPARC_ELF_R_TYPE (rel->r_info); - r_type = sparc_elf_tls_transition (info, abfd, r_type, h != NULL); + r_type = sparc_elf_tls_transition (info, abfd, r_type, h == NULL); switch (r_type) { case R_SPARC_TLS_LDM_HI22: