From: Alan Modra Date: Thu, 15 Apr 2004 06:03:59 +0000 (+0000) Subject: * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=019b892f3402c74ff53e051083844e7cbd82156f;p=binutils-gdb.git * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e7148cbe79a..4c4a5417c46 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2004-04-15 Alan Modra + + * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change. + 2004-04-15 H.J. Lu * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c index 0b65380aae6..4568a22d643 100644 --- a/bfd/elf64-sparc.c +++ b/bfd/elf64-sparc.c @@ -2027,8 +2027,9 @@ sparc64_elf_relocate_section (output_bfd, info, input_bfd, input_section, else got_base = elf_hash_table (info)->hgot->root.u.def.value; - sgot = sreloc = NULL; - splt = bfd_get_section_by_name (dynobj, ".plt"); + sgot = splt = sreloc = NULL; + if (dynobj != NULL) + splt = bfd_get_section_by_name (dynobj, ".plt"); rel = relocs; relend = relocs + NUM_SHDR_ENTRIES (& elf_section_data (input_section)->rel_hdr);