diff options
author | Alan Modra <amodra@bigpond.net.au> | 2004-04-15 06:03:59 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2004-04-15 06:03:59 +0000 |
commit | 3cc8b5f0a57b732136b9fa8d288785fb0354cc2d (patch) | |
tree | 2b7adbb1b1bc4e0a46cbd15bac251323ec999c55 /bfd/elf64-sparc.c | |
parent | 9e7c6c7dc4d9db6e4c44f1954a1c0c33fa656fcb (diff) | |
download | gdb-3cc8b5f0a57b732136b9fa8d288785fb0354cc2d.tar.gz |
* 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 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); |