aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
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 a639fd1..3ad4ac6 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2625,7 +2625,8 @@ void
lang_add_entry (name)
CONST char *name;
{
- entry_symbol = name;
+ if (entry_symbol == NULL)
+ entry_symbol = name;
}
void