2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 6 May 2005 15:40:24 +0000 (15:40 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 6 May 2005 15:40:24 +0000 (15:40 +0000)
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
Just check link_info.executable.

ld/ChangeLog
ld/emultempl/elf32.em

index f1056030a2594c2cf696394f80b6877948baacf4..1e9042b8a52575786f30feb6f9029233bd0feaa0 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
+       Just check link_info.executable.
+
 2005-05-06  Nick Clifton  <nickc@redhat.com>
 
        * Update the address and phone number of the FSF organization in
index fb6efb17a74c2913f85a463e73dfdf6afb88f834..474efb6b515b4d968ac45062c68875236ff9cc16 100644 (file)
@@ -1475,7 +1475,7 @@ gld${EMULATION_NAME}_provide_bound_symbols (const char *sec,
 static void
 gld${EMULATION_NAME}_provide_init_fini_syms (void)
 {
-  if (!link_info.relocatable && !link_info.shared)
+  if (link_info.executable)
     {
       gld${EMULATION_NAME}_provide_bound_symbols (".preinit_array",
                                                  "__preinit_array_start",