patches/glibc/2.3.6/120-allow-gcc-4.0-wordexp.patch
author Arnaud Lacombe <lacombar@gmail.com>
Thu Aug 05 17:59:50 2010 +0200 (2010-08-05)
changeset 2068 581a2778ca6f
parent 402 197e1b49586e
permissions -rw-r--r--
libc/glibc: let glibc 3.3.6 link correctly

From http://sourceware.org/git/?p=glibc.git;a=commit;f=elf/Makefile;h=7c8a67320e26b8c11108bf0a3410d3aef9cf3486

Author: Ulrich Drepper <drepper@redhat.com>:
Commit log:
* elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
newer linker scripts.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
     1 ../sysdeps/generic/wordexp.c: In function 'exec_comm':
     2 ../sysdeps/generic/wordexp.c:815: sorry, unimplemented: inlining failed in call to 'exec_comm_child': function body not available
     3 ../sysdeps/generic/wordexp.c:900: sorry, unimplemented: called from here
     4 make[2]: *** [/home/dank/queue/jobdir.fast2/crosstool-dev/build/i686-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3-20050307/build-glibc/posix/wordexp.o] Error
     5 
     6 I had to add the keyword 'inline' to get it to compile:
     7 
     8 --- glibc-2.3-20050307/sysdeps/generic/wordexp.c.old	2005-03-12 08:54:15.709253928 -0800
     9 +++ glibc-2.3-20050307/sysdeps/generic/wordexp.c	2005-03-12 08:54:51.242852000 -0800
    10 @@ -809,7 +809,7 @@
    11  }
    12 
    13  /* Function called by child process in exec_comm() */
    14 -static void
    15 +static inline void
    16  internal_function __attribute__ ((always_inline))
    17  exec_comm_child (char *comm, int *fildes, int showerr, int noexec)
    18  {
    19 
    20 
    21 Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>