* script-sections.cc
[binutils-gdb.git] / gold / main.cc
index 4e3295d6f0cfd75a135f9a17bee968d7cd3d3c94..7de1b8779dc96a17c17ef5e6d846b5b9a28d5241 100644 (file)
@@ -269,6 +269,7 @@ main(int argc, char** argv)
              program_name, static_cast<long long>(layout.output_file_size()));
       symtab.print_stats();
       layout.print_stats();
+      Free_list::print_stats();
     }
 
   // Issue defined symbol report.
@@ -290,6 +291,8 @@ main(int argc, char** argv)
 
   // If the user used --noinhibit-exec, we force the exit status to be
   // successful.  This is compatible with GNU ld.
-  gold_exit(errors.error_count() == 0
-           || parameters->options().noinhibit_exec());
+  gold_exit((errors.error_count() == 0
+            || parameters->options().noinhibit_exec())
+           ? GOLD_OK
+           : GOLD_ERR);
 }