From: Steve Chamberlain Date: Fri, 24 Jan 1992 23:44:10 +0000 (+0000) Subject: Now compiles with gcc too. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac5939079f3281f51bb37834c872827938c479c6;p=binutils-gdb.git Now compiles with gcc too. --- diff --git a/ld/ldmain.c b/ld/ldmain.c index a83385e690b..d9380b578e5 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -219,13 +219,13 @@ main (argc, argv) if (config.relocateable_output) { output_bfd->flags &= ~EXEC_P; - ldwrite(write_map); + ldwrite(); bfd_close(output_bfd); } else { output_bfd->flags |= EXEC_P; - ldwrite(write_map); + ldwrite(); if (config.make_executable == false && force_make_executable ==false) { diff --git a/ld/ldwrite.c b/ld/ldwrite.c index 0f545d09d19..fc7759f3586 100644 --- a/ld/ldwrite.c +++ b/ld/ldwrite.c @@ -387,8 +387,7 @@ DEFUN_VOID(write_rel) } void -DEFUN(ldwrite, (write_map), - boolean write_map) +DEFUN_VOID(ldwrite) { data_area = (PTR) ldmalloc(largest_section); if (config.relocateable_output == true) @@ -404,9 +403,9 @@ DEFUN(ldwrite, (write_map), /* Print a map, if requested. */ - if (write_map) { + if (config.map_file) { ldsym_print_symbol_table (); - lang_map(stdout); + lang_map(); } ldsym_write ();