Fix PR17226, ld --gc-sections segfaults on sparc-linux
PR ld/17226 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Typo fix.
This commit is contained in:
parent
02eb0a49bc
commit
7833fb7b8e
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue