aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-05-27 05:09:31 +0000
committerIan Lance Taylor <ian@airs.com>1994-05-27 05:09:31 +0000
commit29371b1febb3b9fca6487a9316e44fc4cf657a45 (patch)
treee6829999802944278fd6ffe15fc4144e629a813e /ld/ldlang.c
parent3d3e5651cf0fe7df62763f84ff5a8f92c61ecfe0 (diff)
downloadgdb-29371b1febb3b9fca6487a9316e44fc4cf657a45.zip
gdb-29371b1febb3b9fca6487a9316e44fc4cf657a45.tar.gz
gdb-29371b1febb3b9fca6487a9316e44fc4cf657a45.tar.bz2
* ldlang.c (lang_add_entry): Only set the entry symbol if it has
not been set already.
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