Fix PR17226, ld --gc-sections segfaults on sparc-linux
authorAlan Modra <amodra@gmail.com>
Tue, 5 Aug 2014 01:19:54 +0000 (10:49 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 5 Aug 2014 01:19:54 +0000 (10:49 +0930)
PR ld/17226
* elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Typo fix.

bfd/ChangeLog
bfd/elfxx-sparc.c

index 876de33e84aa60d9c2d04658c962073252994c89..6085db85dba720d24a1ee2611a3871c4d11b27ab 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-05  Alan Modra  <amodra@gmail.com>
+
+       PR ld/17226
+       * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Typo fix.
+
 2014-08-05  Alan Modra  <amodra@gmail.com>
 
        * linker.c (generic_link_check_archive_element): Move handling
index e8ebcb30632e9eb2892a3f64e9038f3bd8e1a38e..2a5eb01eb7b13d78c5001eb58dbab63b7465aa7d 100644 (file)
@@ -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:
This page took 0.036733 seconds and 4 git commands to generate.