aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-06-19 11:51:55 +0000
committerAlan Modra <amodra@gmail.com>2003-06-19 11:51:55 +0000
commit6bc8652b47c217ea4a9f6a264878d54772abb2fe (patch)
tree0d557fdf67ac3e3c017b9c242bfd37967922b318 /ld/emultempl
parent9b5ecbd0c60cc7980d7ae7560b38a537c99861d5 (diff)
downloadgdb-6bc8652b47c217ea4a9f6a264878d54772abb2fe.zip
gdb-6bc8652b47c217ea4a9f6a264878d54772abb2fe.tar.gz
gdb-6bc8652b47c217ea4a9f6a264878d54772abb2fe.tar.bz2
* emultempl/ppc64elf.em (build_section_lists): Check return status
from ppc64_elf_next_input_section.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/ppc64elf.em5
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em
index dd6d675..c440752 100644
--- a/ld/emultempl/ppc64elf.em
+++ b/ld/emultempl/ppc64elf.em
@@ -323,8 +323,9 @@ build_section_lists (statement)
&& statement->input_section.section->output_section != NULL
&& statement->input_section.section->output_section->owner == output_bfd)
{
- ppc64_elf_next_input_section (&link_info,
- statement->input_section.section);
+ if (!ppc64_elf_next_input_section (&link_info,
+ statement->input_section.section))
+ einfo ("%X%P: can not size stub section: %E\n");
}
}