* elflink.h (elf_link_output_extsym): Print an error message if
authorIan Lance Taylor <ian@airs.com>
Fri, 19 Jun 1998 21:10:39 +0000 (21:10 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 19 Jun 1998 21:10:39 +0000 (21:10 +0000)
_bfd_elf_section_from_bfd_section fails.

bfd/elflink.h

index cbc18d94b7d8560abaf604cac51ce6203d35e804..b5e0d0357bd06c72d5b1a1aa97b9fdbf896fbd3b 100644 (file)
@@ -4287,6 +4287,11 @@ elf_link_output_extsym (h, data)
                                                 input_sec->output_section);
            if (sym.st_shndx == (unsigned short) -1)
              {
+               (*_bfd_error_handler)
+                 (_("%s: could not find output section %s for input section %s"),
+                  bfd_get_filename (finfo->output_bfd),
+                  input_sec->output_section->name,
+                  input_sec->name);
                eoinfo->failed = true;
                return false;
              }