Skip to content

Commit

Permalink
Fix USE_MULTIARCH conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Oct 13, 2009
1 parent 1abedcd commit 4bb04b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2009-10-13 Andreas Schwab <schwab@redhat.com>

* csu/elf-init.c (__libc_csu_init): Run preinit array even if
!USE_MULTIARCH.

2009-10-08 Ulrich Drepper <drepper@redhat.com>

[BZ #10730]
Expand Down
12 changes: 7 additions & 5 deletions csu/elf-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4bb04b1

Please sign in to comment.