patches/glibc/2.2.5/glibc-2.2.5-mips-dl-machine-1.60.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 Message-ID: <20040926095115.9204.qmail@webmail-2-5.mesa1.secureserver.net>
     2 Date: Sun, 26 Sep 2004 02:51:15 -0700
     3 From: ml@bitbash.net
     4 Subject: RE: crosstool-0.28-rc36: ld.so.1 undefined reference
     5 To: Dan Kegel <dank@kegel.com>
     6 cc: crossgcc@sources.redhat.com
     7 
     8 gcc-3.4.0-glibc-2.2.5 barfs with a few undefined refereces and multiple
     9 definitions. The follwing patch seems to take care of the undefined
    10 reference of __dl_runtime_resolve symbol. 
    11 
    12 Filename: patches/glibc-2.2.5/glibc-2.2.5-mips-dl-machine-1.60.patch 
    13 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    14 Retrieved with
    15 wget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/mips/dl-machine.h.diff?r1=1.59&r2=1.60&cvsroot=glibc'
    16 See http://sources.redhat.com/ml/libc-alpha/2002-02/msg00091.html
    17 See also glibc-2.2.5-mips-build-gmon.patch, which takes care of the other part of this for mips.
    18 
    19 ChangeLog:
    20         sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
    21         __attribute_used__.
    22         (__dl_runtime_resolve): Likewise.
    23 
    24 Fixes error
    25 
    26 /home/cross/crosstool-0.28-rc36/build/mips-unknown-linux-gnu/gcc-3.4.0-glibc-2.2.5/build-glibc/elf/ld.so.1:
    27 undefined reference to `__dl_runtime_resolve'
    28 
    29 ===================================================================
    30 RCS file: /cvs/glibc/libc/sysdeps/mips/dl-machine.h,v
    31 retrieving revision 1.59
    32 retrieving revision 1.60
    33 diff -u -r1.59 -r1.60
    34 --- libc/sysdeps/mips/dl-machine.h	2002/02/03 00:29:15	1.59
    35 +++ libc/sysdeps/mips/dl-machine.h	2002/02/08 18:56:57	1.60
    36 @@ -69,7 +69,7 @@
    37     } while (0)
    38  
    39  /* Return nonzero iff ELF header is compatible with the running host.  */
    40 -static inline int __attribute__ ((unused))
    41 +static inline int __attribute_used__
    42  elf_machine_matches_host (const ElfW(Ehdr) *ehdr)
    43  {
    44    switch (ehdr->e_machine)
    45 @@ -262,7 +262,7 @@
    46  /* This is called from assembly stubs below which the compiler can't see.  */ \
    47  static ElfW(Addr)							      \
    48  __dl_runtime_resolve (ElfW(Word), ElfW(Word), ElfW(Addr), ElfW(Addr))	      \
    49 -		  __attribute__ ((unused));				      \
    50 +		  __attribute_used__;					      \
    51  									      \
    52  static ElfW(Addr)							      \
    53  __dl_runtime_resolve (ElfW(Word) sym_index,				      \