[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r9082 - in /fsf/trunk/libc: ChangeLog csu/elf-init.c
- To: commits@xxxxxxxxxx
- Subject: [commits] r9082 - in /fsf/trunk/libc: ChangeLog csu/elf-init.c
- From: eglibc@xxxxxxxxxx
- Date: Wed, 14 Oct 2009 07:03:55 -0000
Author: eglibc
Date: Wed Oct 14 00:03:54 2009
New Revision: 9082
Log:
Import glibc-mainline for 2009-10-14
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/csu/elf-init.c
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Wed Oct 14 00:03:54 2009
@@ -1,3 +1,8 @@
+2009-10-13 Andreas Schwab <schwab@xxxxxxxxxx>
+
+ * csu/elf-init.c (__libc_csu_init): Run preinit array even if
+ !USE_MULTIARCH.
+
2009-10-08 Ulrich Drepper <drepper@xxxxxxxxxx>
[BZ #10730]
Modified: fsf/trunk/libc/csu/elf-init.c
==============================================================================
--- fsf/trunk/libc/csu/elf-init.c (original)
+++ fsf/trunk/libc/csu/elf-init.c Wed Oct 14 00:03:54 2009
@@ -80,24 +80,26 @@
/* 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;