This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix PR17226, ld --gc-sections segfaults on sparc-linux
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 5 Aug 2014 11:09:28 +0930
- Subject: Fix PR17226, ld --gc-sections segfaults on sparc-linux
- Authentication-results: sourceware.org; auth=none
Applied.
PR ld/17226
* elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Typo fix.
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c
index e8ebcb3..2a5eb01 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:
--
Alan Modra
Australia Development Lab, IBM