* ldlang.c (lang_add_entry): Only set the entry symbol if it has
authorIan Lance Taylor <ian@airs.com>
Fri, 27 May 1994 05:09:31 +0000 (05:09 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 27 May 1994 05:09:31 +0000 (05:09 +0000)
not been set already.

ld/ChangeLog
ld/ldlang.c

index 7eb00bbd0dea5a3900087f76a30459794ae2c796..54cea0edddc5990b7cf428f0457d967a85ce5274 100644 (file)
@@ -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
index a639fd1203748b8963c8011750f19e15fe13bd65..3ad4ac682cecdf8d7d53240fe6be4b79f93bbbad 100644 (file)
@@ -2625,7 +2625,8 @@ void
 lang_add_entry (name)
      CONST char *name;
 {
-  entry_symbol = name;
+  if (entry_symbol == NULL)
+    entry_symbol = name;
 }
 
 void