Fixed problem with default output filename
authorSteve Chamberlain <steve@cygnus>
Tue, 14 May 1991 18:52:40 +0000 (18:52 +0000)
committerSteve Chamberlain <steve@cygnus>
Tue, 14 May 1991 18:52:40 +0000 (18:52 +0000)
ld/ldlang.c

index f8ac544b5fba7bc6f7142edaa601d877c66f8006..34bb2278cd5146b827d93e7e85130f668a9cad7b 100644 (file)
@@ -1943,7 +1943,8 @@ void
 DEFUN_VOID(lang_final)
 {
   if (had_output_filename == false) {
-    lang_add_output("a.out");
+    extern CONST char *output_filename;
+    lang_add_output(output_filename);
   }
 }