Automatic date update in version.in
[deliverable/binutils-gdb.git] / bfd / elf32-csky.c
index 6cf63f5e91f65e4e08eaa12e8ddacf63d50ceb04..06ea26632d147fc01aaf7387cb8f98417bc7d575 100644 (file)
@@ -3621,6 +3621,14 @@ csky_build_one_stub (struct bfd_hash_entry *gen_entry,
   stub_entry = (struct elf32_csky_stub_hash_entry *)gen_entry;
   info = (struct bfd_link_info *) in_arg;
 
+  /* Fail if the target section could not be assigned to an output
+     section.  The user should fix his linker script.  */
+  if (stub_entry->target_section->output_section == NULL
+      && info->non_contiguous_regions)
+    info->callbacks->einfo (_("%F%P: Could not assign '%pA' to an output section. "
+                             "Retry without --enable-non-contiguous-regions.\n"),
+                           stub_entry->target_section);
+
   globals = csky_elf_hash_table (info);
   if (globals == NULL)
     return FALSE;
This page took 0.027672 seconds and 4 git commands to generate.