]> Git Repo - binutils.git/blobdiff - ld/ldlang.c
Add embedded PowerPC ELF support.
[binutils.git] / ld / ldlang.c
index 9643c2848283d6fc66a251bac751d1e95f245c65..3f3809c8075bf652acae6248ad9625c00da88633 100644 (file)
@@ -2125,7 +2125,12 @@ static void
 lang_finish ()
 {
   struct bfd_link_hash_entry *h;
-  boolean warn = link_info.relocateable ? false : true;
+  boolean warn;
+
+  if (link_info.relocateable || link_info.shared)
+    warn = false;
+  else
+    warn = true;
 
   if (entry_symbol == (char *) NULL)
     {
@@ -2260,6 +2265,9 @@ lang_one_common (h, info)
   /* Increase the size of the section.  */
   section->_raw_size += size;
 
+  /* Make sure the section is allocated in memory.  */
+  section->flags |= SEC_ALLOC;
+
   if (config.map_file != NULL)
     fprintf (config.map_file, "Allocating common %s: %lx at %lx %s\n",
             h->root.string, (unsigned long) size,
@@ -2578,6 +2586,8 @@ lang_process ()
   current_target = default_target;
   open_input_bfds (statement_list.head, false);
 
+  ldemul_after_open ();
+
   /* Build all sets based on the information gathered from the input
      files.  */
   ldctor_build_sets ();
@@ -2773,7 +2783,7 @@ lang_add_data (type, exp)
 void
 lang_add_reloc (reloc, howto, section, name, addend)
      bfd_reloc_code_real_type reloc;
-     const reloc_howto_type *howto;
+     reloc_howto_type *howto;
      asection *section;
      const char *name;
      union etree_union *addend;
This page took 0.027559 seconds and 4 git commands to generate.