aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1994-09-14 04:55:00 +0000
committerSteve Chamberlain <sac@cygnus>1994-09-14 04:55:00 +0000
commit3deb20fbc10bc5031ed8cf2390f08dac4869bd23 (patch)
treee1687adb2ba1f28af7eb8da4115ed5bdc2084eb3 /ld
parentfcacfef6ae9044437f58f7b74af1825ab64b72fd (diff)
downloadgdb-3deb20fbc10bc5031ed8cf2390f08dac4869bd23.zip
gdb-3deb20fbc10bc5031ed8cf2390f08dac4869bd23.tar.gz
gdb-3deb20fbc10bc5031ed8cf2390f08dac4869bd23.tar.bz2
* ldlang.c (print_output_section_statement): Print all lines
to the map file.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c12
2 files changed, 11 insertions, 6 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0a95eb2..00294c8 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 da12d89..4bd40e5 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 ();