aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1995-06-29 00:21:00 +0000
committerSteve Chamberlain <sac@cygnus>1995-06-29 00:21:00 +0000
commitde71eb7786da1170ae4b4acabeb4c62513c19602 (patch)
treef50c70017dfe024bdec70297d164e8f34c00edcf /ld/ldmain.c
parent1a9924d8b3ff8222fd6bb774990455337a70a4af (diff)
downloadgdb-de71eb7786da1170ae4b4acabeb4c62513c19602.zip
gdb-de71eb7786da1170ae4b4acabeb4c62513c19602.tar.gz
gdb-de71eb7786da1170ae4b4acabeb4c62513c19602.tar.bz2
Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
* ldmain.c (main): Always initialize PE info in link_info. * lexsup.c (OPTION_BASE_FILE): New option. (parse_args): Handle new option. * emulparams/armpe.sh: Output pei. * emultempl/i386pe.em: Add newline to end. * scripttempl/armpe.sc: Change output and quote the $s. * scripttempl/i386pe.sc: Change output and quote the $s.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index e6bf23d..7c0b705 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -185,6 +185,14 @@ main (argc, argv)
link_info.hash = NULL;
link_info.keep_hash = NULL;
link_info.notice_hash = NULL;
+ link_info.subsystem = console;
+ link_info.stack_heap_parameters.stack_defined = false;
+ link_info.stack_heap_parameters.heap_defined = false;
+ link_info.stack_heap_parameters.stack_reserve = 0;
+ link_info.stack_heap_parameters.stack_commit = 0;
+ link_info.stack_heap_parameters.heap_reserve = 0;
+ link_info.stack_heap_parameters.heap_commit = 0;
+
ldfile_add_arch ("");
@@ -277,6 +285,7 @@ main (argc, argv)
config.map_file = fopen (config.map_filename, FOPEN_WT);
if (config.map_file == (FILE *) NULL)
{
+ bfd_set_error (bfd_error_system_call);
einfo ("%P%F: cannot open map file %s: %E\n",
config.map_filename);
}
@@ -337,13 +346,17 @@ main (argc, argv)
if (config.stats)
{
extern char **environ;
+#ifndef WINDOWS_NT /* no sbrk with NT */
char *lim = (char *) sbrk (0);
+#endif
long run_time = get_run_time () - start_time;
fprintf (stderr, "%s: total time in link: %ld.%06ld\n",
program_name, run_time / 1000000, run_time % 1000000);
+#ifndef WINDOWS_NT
fprintf (stderr, "%s: data size %ld\n", program_name,
(long) (lim - (char *) &environ));
+#endif
}
/* Prevent remove_output from doing anything, after a successful link. */