aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-sparc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-05 10:49:54 +0930
committerAlan Modra <amodra@gmail.com>2014-08-05 10:49:54 +0930
commit7833fb7b8e4d0c75138ef715935a5040bc9b2e78 (patch)
treec60df9757c805c232c8fffa74e01aecb2e8c8886 /bfd/elfxx-sparc.c
parent02eb0a49bceb35e4b0503e6ffc11e85151dbc571 (diff)
downloadgdb-7833fb7b8e4d0c75138ef715935a5040bc9b2e78.zip
gdb-7833fb7b8e4d0c75138ef715935a5040bc9b2e78.tar.gz
gdb-7833fb7b8e4d0c75138ef715935a5040bc9b2e78.tar.bz2
Fix PR17226, ld --gc-sections segfaults on sparc-linux
PR ld/17226 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Typo fix.
Diffstat (limited to 'bfd/elfxx-sparc.c')
-rw-r--r--bfd/elfxx-sparc.c2
1 files changed, 1 insertions, 1 deletions
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: