diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-09 04:18:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-09 04:18:39 +0000 |
commit | ef01a8a8732322c53577997813c9e8b4a5b4296c (patch) | |
tree | 893d4b5600d749801c39de661644346e4355b1be /ld/ldlang.c | |
parent | 1b88cd182c04fa711757e32a39097e996fbc8fbf (diff) | |
download | gdb-ef01a8a8732322c53577997813c9e8b4a5b4296c.zip gdb-ef01a8a8732322c53577997813c9e8b4a5b4296c.tar.gz gdb-ef01a8a8732322c53577997813c9e8b4a5b4296c.tar.bz2 |
* ldlang.c (map_input_to_output_sections): For lang_address, call
init_os if it hasn't already been called.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 8999cd9..93a7d673 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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; } |