2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 7 May 2005 02:14:21 +0000 (02:14 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 7 May 2005 02:14:21 +0000 (02:14 +0000)
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
Put back !link_info.relocatable.

ld/ChangeLog
ld/emultempl/elf32.em

index 91187083bdddc58a81c1231e3b0cc80fa35be1bc..83fd86c479123d85e1f67bb96152ab591299cc66 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):
+       Put back !link_info.relocatable.
+
 2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR 878
index 474efb6b515b4d968ac45062c68875236ff9cc16..69b5c2623d778123c8722a778360c1cac79beeab 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.executable)
+  if (!link_info.relocatable && link_info.executable)
     {
       gld${EMULATION_NAME}_provide_bound_symbols (".preinit_array",
                                                  "__preinit_array_start",