summary refs log tree commit diff
path: root/csu
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2009-10-19 12:11:48 +0200
committerAndreas Schwab <schwab@redhat.com>2009-10-19 12:11:48 +0200
commitfbfb328dd286def7988de5385d8a237100a73411 (patch)
tree9e8d0e5617dea6400089302d1be1d5f3ca231193 /csu
parente9721e1dec0888e02fc4b2bba7b487bec0d26ac8 (diff)
parenta0902db9fe8f4cfc6b0b0344558166f5b230b806 (diff)
downloadglibc-fbfb328dd286def7988de5385d8a237100a73411.tar.gz
glibc-fbfb328dd286def7988de5385d8a237100a73411.tar.xz
glibc-fbfb328dd286def7988de5385d8a237100a73411.zip
Merge remote branch 'origin/master' into fedora/master
Diffstat (limited to 'csu')
-rw-r--r--csu/elf-init.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/csu/elf-init.c b/csu/elf-init.c
index 0ea23c6193..7481e69aa6 100644
--- a/csu/elf-init.c
+++ b/csu/elf-init.c
@@ -97,24 +97,26 @@ __libc_csu_init (int argc, char **argv, char **envp)
   /* For dynamically linked executables the preinit array is executed by
      the dynamic linker (before initializing any shared object.  */
 
-#if defined USE_MULTIARCH && !defined LIBC_NONSHARED
-# ifdef ELF_MACHINE_IRELA
+#ifndef LIBC_NONSHARED
+# ifdef USE_MULTIARCH
+#  ifdef ELF_MACHINE_IRELA
   {
     const size_t size = __rela_iplt_end - __rela_iplt_start;
     for (size_t i = 0; i < size; i++)
       elf_irela (&__rela_iplt_start [i]);
   }
-# endif
+#  endif
 
-# ifdef ELF_MACHINE_IREL
+#  ifdef ELF_MACHINE_IREL
   {
     const size_t size = __rel_iplt_end - __rel_iplt_start;
     for (size_t i = 0; i < size; i++)
       elf_irel (&__rel_iplt_start [i]);
   }
+#  endif
 # endif
 
-  /* For static executables, preinit happens rights before init.  */
+  /* For static executables, preinit happens right before init.  */
   {
     const size_t size = __preinit_array_end - __preinit_array_start;
     size_t i;