diff options
author | Alan Modra <amodra@gmail.com> | 2004-04-15 06:03:59 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-04-15 06:03:59 +0000 |
commit | 019b892f3402c74ff53e051083844e7cbd82156f (patch) | |
tree | 506b90d188fcfbc20d00a377b25bc640e1c46a7e /bfd/elf64-sparc.c | |
parent | 15b43f483cb30a12d97cbc8d10465e130dd92de6 (diff) | |
download | gdb-019b892f3402c74ff53e051083844e7cbd82156f.zip gdb-019b892f3402c74ff53e051083844e7cbd82156f.tar.gz gdb-019b892f3402c74ff53e051083844e7cbd82156f.tar.bz2 |
* elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
Diffstat (limited to 'bfd/elf64-sparc.c')
-rw-r--r-- | bfd/elf64-sparc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c index 0b65380..4568a22 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); |