aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-02-17 18:12:17 +0000
committerDavid MacKenzie <djm@cygnus>1994-02-17 18:12:17 +0000
commit5bcb7f28e189de403b9efaffe57fec3221f9d16e (patch)
treeea8d833210cf45dde1f377c32ffaad66ac236683 /ld/ldmain.c
parent7681bc7b30b1ec5006484d892121ce6c0059442a (diff)
downloadgdb-5bcb7f28e189de403b9efaffe57fec3221f9d16e.zip
gdb-5bcb7f28e189de403b9efaffe57fec3221f9d16e.tar.gz
gdb-5bcb7f28e189de403b9efaffe57fec3221f9d16e.tar.bz2
* ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
bfd_set_error and new error names.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index f153ceb..23e2d37 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -153,10 +153,11 @@ main (argc, argv)
long start_time = get_run_time ();
program_name = argv[0];
+ xmalloc_set_program_name (program_name);
bfd_init ();
- atexit (remove_output);
+ xatexit (remove_output);
/* Initialize the data about options. */
trace_files = trace_file_tries = version_printed = false;
@@ -308,7 +309,7 @@ main (argc, argv)
char *lim = (char *) sbrk (0);
long run_time = get_run_time () - start_time;
- fprintf (stderr, "%s: total time in link: %d.%06d\n",
+ fprintf (stderr, "%s: total time in link: %ld.%06ld\n",
program_name, run_time / 1000000, run_time % 1000000);
fprintf (stderr, "%s: data size %ld\n", program_name,
(long) (lim - (char *) &environ));
@@ -483,7 +484,7 @@ add_keepsyms_file (filename)
file = fopen (filename, "r");
if (file == (FILE *) NULL)
{
- bfd_error = system_call_error;
+ bfd_set_error (bfd_error_system_call);
einfo ("%X%P: %s: %E", filename);
return;
}