]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix build problems with old binutils.
authorUlrich Drepper <drepper@redhat.com>
Fri, 5 Jun 2009 16:42:32 +0000 (09:42 -0700)
committerUlrich Drepper <drepper@redhat.com>
Fri, 5 Jun 2009 16:42:32 +0000 (09:42 -0700)
Old binutils don't provide IFUNC and don't generate the section start/end
symbols we expect.  At least for now only add the initializer code for
static IFUNC relocations if multi-arch support is requested.

ChangeLog
csu/elf-init.c

index 7d99a207feaf2841abf2deb346937c7034220025..cc03bb36d998eddfe4e82029910365fea6a56c39 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-05  Ulrich Drepper  <drepper@redhat.com>
+
+       * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
+       is defined.
+
 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/x86_64/strlen.S: Minor optimizations.
index 5a99a3a4009893b218620005877a3e6356b79377..d5ec912cba7e951b1a0b19ba35441d5e3880698b 100644 (file)
@@ -1,5 +1,5 @@
 /* Startup support for ELF initializers/finalizers in the main executable.
-   Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2004, 2005, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@
 
 #include <stddef.h>
 
-#ifndef LIBC_NONSHARED
+#if defined USE_MULTIARCH && !defined LIBC_NONSHARED
 # include <link.h>
 # include <dl-irel.h>
 
@@ -80,7 +80,7 @@ __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.  */
 
-#ifndef LIBC_NONSHARED
+#if defined USE_MULTIARCH && !defined LIBC_NONSHARED
 # ifdef ELF_MACHINE_IRELA
   {
     const size_t size = __rela_iplt_end - __rela_iplt_start;