* ldlang.c (map_input_to_output_sections): For lang_address, call
authorIan Lance Taylor <ian@airs.com>
Thu, 9 Jun 1994 04:18:39 +0000 (04:18 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 9 Jun 1994 04:18:39 +0000 (04:18 +0000)
init_os if it hasn't already been called.

ld/ChangeLog
ld/ldlang.c

index 4a545f92d7750945ab5ab49bcfe94ed8f6ed2155..41cdc4dbaddb1a24118098ee830a0caf1e5da72f 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun  9 00:17:20 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * ldlang.c (map_input_to_output_sections): For lang_address, call
+       init_os if it hasn't already been called.
+
 Thu Jun  2 17:24:08 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
        Add support for SunOS shared libraries.
index 8999cd909b30e570418430e9e2d79f3a7a563bb2..93a7d673799c5c4c1d3e08367cd2581f2297f669 100644 (file)
@@ -1060,15 +1060,12 @@ map_input_to_output_sections (s, target, output_section_statement)
          /* Mark the specified section with the supplied address */
          {
            lang_output_section_statement_type *os =
-           lang_output_section_statement_lookup
-           (s->address_statement.section_name);
+             lang_output_section_statement_lookup
+               (s->address_statement.section_name);
 
+           if (os->bfd_section == NULL)
+             init_os (os);
            os->addr_tree = s->address_statement.address;
-           if (os->bfd_section == (asection *) NULL)
-             {
-               einfo ("%P%F: cannot set the address of undefined section %s\n",
-                      s->address_statement.section_name);
-             }
          }
          break;
        }