diff options
Diffstat (limited to 'bfd/elf32-sparc.c')
-rw-r--r-- | bfd/elf32-sparc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bfd/elf32-sparc.c b/bfd/elf32-sparc.c index 3016652..0f94f5f 100644 --- a/bfd/elf32-sparc.c +++ b/bfd/elf32-sparc.c @@ -2323,7 +2323,7 @@ elf32_sparc_relocate_section (output_bfd, info, input_bfd, input_section, if (h == NULL) break; - if (h->plt.offset == (bfd_vma) -1) + if (h->plt.offset == (bfd_vma) -1 || htab->splt == NULL) { /* We didn't make a PLT entry for this symbol. This happens when statically linking PIC code, or when @@ -2331,9 +2331,6 @@ elf32_sparc_relocate_section (output_bfd, info, input_bfd, input_section, break; } - if (htab->splt == NULL) - abort (); - relocation = (htab->splt->output_section->vma + htab->splt->output_offset + h->plt.offset); |