diff options
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 13 |
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; } |