diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-05-13 18:01:59 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-05-13 18:01:59 +0000 |
commit | 269773c1a959c5f73083894da9ea050d2ca30dce (patch) | |
tree | 6e7919db87a5dd672e2efdb73eff6532886c2db1 /ld/ldlang.c | |
parent | f666bb79cad1b5cbd693a9e1c3c9d37e3c895d16 (diff) | |
download | gdb-269773c1a959c5f73083894da9ea050d2ca30dce.zip gdb-269773c1a959c5f73083894da9ea050d2ca30dce.tar.gz gdb-269773c1a959c5f73083894da9ea050d2ca30dce.tar.bz2 |
* ldlang.c (print_output_section_statement): Change ``no attached
output section'' message slightly.
(lang_do_assignments): Don't recurse down if there is no real
section.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 98a0e8d..a639fd1 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -1135,7 +1135,7 @@ print_output_section_statement (output_section_statement) } else { - fprintf (config.map_file, "No attached output section"); + fprintf (config.map_file, " (no attached output section)"); } print_nl (); if (output_section_statement->load_base) @@ -1912,11 +1912,15 @@ lang_do_assignments (s, output_section_statement, fill, dot) case lang_output_section_statement_enum: { lang_output_section_statement_type *os = - &(s->output_section_statement); + &(s->output_section_statement); - dot = os->bfd_section->vma; - (void) lang_do_assignments (os->children.head, os, os->fill, dot); - dot = os->bfd_section->vma + os->bfd_section->_raw_size; + if (os->bfd_section != NULL) + { + dot = os->bfd_section->vma; + (void) lang_do_assignments (os->children.head, os, + os->fill, dot); + dot = os->bfd_section->vma + os->bfd_section->_raw_size; + } } break; case lang_wild_statement_enum: |