From 3deb20fbc10bc5031ed8cf2390f08dac4869bd23 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Wed, 14 Sep 1994 04:55:00 +0000 Subject: [PATCH] * ldlang.c (print_output_section_statement): Print all lines to the map file. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 0a95eb262c0..00294c87bbe 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com) + + * ldlang.c (print_output_section_statement): Print all lines + to the map file. + Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * ldlang.c (load_symbols): Check for archive before object. Use diff --git a/ld/ldlang.c b/ld/ldlang.c index da12d8980d6..4bd40e5c886 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -1157,7 +1157,7 @@ print_output_section_statement (output_section_statement) print_address (section->vma); print_space (); print_size (section->_raw_size); - print_space(); + print_space (); print_size(section->_cooked_size); print_space (); print_alignment (section->alignment_power); @@ -1185,19 +1185,19 @@ print_output_section_statement (output_section_statement) { int b = exp_get_abs_int(output_section_statement->load_base, 0, "output base", lang_final_phase_enum); - printf("Output address %08x\n", b); + fprintf (config.map_file, "Output address %08x\n", b); } if (output_section_statement->section_alignment >= 0 || output_section_statement->section_alignment >= 0) { - printf("\t\t\t\t\tforced alignment "); - if ( output_section_statement->section_alignment >= 0) + fprintf (config.map_file, "\t\t\t\t\tforced alignment "); + if (output_section_statement->section_alignment >= 0) { - printf("section 2**%d ",output_section_statement->section_alignment ); + fprintf (config.map_file, "section 2**%d ",output_section_statement->section_alignment ); } if ( output_section_statement->subsection_alignment >= 0) { - printf("subsection 2**%d ",output_section_statement->subsection_alignment ); + fprintf (config.map_file, "subsection 2**%d ",output_section_statement->subsection_alignment ); } print_nl (); -- 2.30.2