aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-02-05 12:00:15 +0000
committerDavid MacKenzie <djm@cygnus>1994-02-05 12:00:15 +0000
commit52a8ebfe04a89a747b014ab2eaa96968bc346360 (patch)
tree971aa46ee2d49a1e13a1baf73130ea3dd223dce2 /ld/ldmain.c
parente3960b961029c8a5e0f46142a5734c78a5be8ff2 (diff)
downloadgdb-52a8ebfe04a89a747b014ab2eaa96968bc346360.zip
gdb-52a8ebfe04a89a747b014ab2eaa96968bc346360.tar.gz
gdb-52a8ebfe04a89a747b014ab2eaa96968bc346360.tar.bz2
* emultempl/lnk960.em (append), emultempl/hppaosf.em
(hppaosf_finish): Call xmalloc, not ldmalloc. * ldmain.c (preserve_output): Function removed. (main): Do it here instead.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 43a20c2..f153ceb 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -144,15 +144,6 @@ remove_output ()
}
}
-/* Prevent remove_output from doing anything.
- Called after a successful link. */
-
-static void
-preserve_output ()
-{
- output_filename = NULL;
-}
-
int
main (argc, argv)
int argc;
@@ -323,7 +314,9 @@ main (argc, argv)
(long) (lim - (char *) &environ));
}
- atexit (preserve_output);
+ /* Prevent remove_output from doing anything, after a successful link. */
+ output_filename = NULL;
+
xexit (0);
return 0;
}