Update the i586-geode-linux-uclibc sample.
1 Message-ID: <20040926095115.9204.qmail@webmail-2-5.mesa1.secureserver.net>
2 Date: Sun, 26 Sep 2004 02:51:15 -0700
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
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.
12 Filename: patches/glibc-2.2.5/glibc-2.2.5-mips-dl-machine-1.60.patch
13 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.
20 sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
22 (__dl_runtime_resolve): Likewise.
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'
29 ===================================================================
30 RCS file: /cvs/glibc/libc/sysdeps/mips/dl-machine.h,v
31 retrieving revision 1.59
32 retrieving revision 1.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
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)
44 switch (ehdr->e_machine)
46 /* This is called from assembly stubs below which the compiler can't see. */ \
48 __dl_runtime_resolve (ElfW(Word), ElfW(Word), ElfW(Addr), ElfW(Addr)) \
49 - __attribute__ ((unused)); \
50 + __attribute_used__; \
53 __dl_runtime_resolve (ElfW(Word) sym_index, \