about summary refs log tree commit diff
path: root/csu
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2009-10-13 16:12:47 +0200
committerAndreas Schwab <schwab@redhat.com>2009-10-13 16:12:47 +0200
commit4bb04b1fb67389a0203da988e1c091a97dc1fd06 (patch)
tree91ee79269601c8f94853f8fa1af545f6ecbb9052 /csu
parent1abedcdad2eef3d262c115ac13f069900338727c (diff)
downloadglibc-4bb04b1fb67389a0203da988e1c091a97dc1fd06.tar.gz
glibc-4bb04b1fb67389a0203da988e1c091a97dc1fd06.tar.xz
glibc-4bb04b1fb67389a0203da988e1c091a97dc1fd06.zip
Fix USE_MULTIARCH conditional
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 d5ec912cba..1d2df62ca3 100644
--- a/csu/elf-init.c
+++ b/csu/elf-init.c
@@ -80,24 +80,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;