aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-04-29 21:12:49 +0000
committerIan Lance Taylor <ian@airs.com>1996-04-29 21:12:49 +0000
commit0cacbcbe6e68ad0e2bc18f396d35365abdaa825a (patch)
tree8574765345baadf360df95f6797a68cefe046074 /ld/ldmain.c
parentabec70b9981bcb0a6c6214657b67ed824e58db87 (diff)
downloadgdb-0cacbcbe6e68ad0e2bc18f396d35365abdaa825a.zip
gdb-0cacbcbe6e68ad0e2bc18f396d35365abdaa825a.tar.gz
gdb-0cacbcbe6e68ad0e2bc18f396d35365abdaa825a.tar.bz2
* ldlang.c (longest_section_name): Remove.
(SECTION_NAME_MAP_LENGTH): Define. (print_size, print_alignment, print_fill, print_section): Remove. (print_flags): Remove. (lang_map): Rewrite. (print_output_section_statement): Rewrite. (print_assignment): Rewrite. (print_one_symbol): Rewrite. (print_input_section): Rewrite. (print_fill_statement): Rewrite. (print_data_statement): Rewrite. (print_address_statement): New static function. (print_reloc_statement): Rewrite. (print_padding_statement): Rewrite. (print_wild_statement): Rewrite. (print_statement_list): Clean up. (print_statement): Clean up. Some minor output changes. (print_statements): Clean up. (load_symbols): Put another - before -whole-archive. * ldexp.c (exp_print_tree): Change etree_value and etree_rel to print 0x and to omit leading zeroes. For etree_rel, use %B to print the BFD. For etree_assign, remove the space after the destination name. * ldwrite.c: Include "libiberty.h". (clone_section): Call xstrdup, not strdup. (ldwrite): Don't print any map information. (print_symbol_table, print_file_stuff, print_symbol): Remove. * ldmain.c (main): Call lang_map when appropriate. * ldmisc.c (vfinfo): Add support for %W. (print_address): Remove. * ldmisc.h (print_address): Don't declare. * Makefile.in: Rebuild dependencies.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index d637a50..f3c6d2a 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -318,6 +318,9 @@ main (argc, argv)
ldwrite ();
+ if (config.map_file != NULL)
+ lang_map ();
+
/* Even if we're producing relocateable output, some non-fatal errors should
be reported in the exit status. (What non-fatal errors, if any, do we
want to ignore for relocateable output?) */