aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-05-14 18:52:40 +0000
committerSteve Chamberlain <steve@cygnus>1991-05-14 18:52:40 +0000
commite89432c7c9b2aa520dbde36817baffa763f4d654 (patch)
treecdc4c1a1d4c03690a8fedb7281146c7767363fe4 /ld/ldlang.c
parent8c514453d09657afed143fdc1fb2521bab8504de (diff)
downloadgdb-e89432c7c9b2aa520dbde36817baffa763f4d654.zip
gdb-e89432c7c9b2aa520dbde36817baffa763f4d654.tar.gz
gdb-e89432c7c9b2aa520dbde36817baffa763f4d654.tar.bz2
Fixed problem with default output filename
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index f8ac544..34bb227 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -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);
}
}