From 29371b1febb3b9fca6487a9316e44fc4cf657a45 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 27 May 1994 05:09:31 +0000 Subject: * ldlang.c (lang_add_entry): Only set the entry symbol if it has not been set already. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index 7eb00bb..54cea0e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * ldlang.c (lang_add_entry): Only set the entry symbol if it has + not been set already. + Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give 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 -- cgit v1.1