⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glibc-2.2.5-mips-dl-machine-1.60.patch

📁 linux下编译交叉工具链的工具源码
💻 PATCH
字号:
Message-ID: <20040926095115.9204.qmail@webmail-2-5.mesa1.secureserver.net>Date: Sun, 26 Sep 2004 02:51:15 -0700From: ml@bitbash.netSubject: RE: crosstool-0.28-rc36: ld.so.1 undefined referenceTo: Dan Kegel <dank@kegel.com>cc: crossgcc@sources.redhat.comgcc-3.4.0-glibc-2.2.5 barfs with a few undefined refereces and multipledefinitions. The follwing patch seems to take care of the undefinedreference of __dl_runtime_resolve symbol. Filename: patches/glibc-2.2.5/glibc-2.2.5-mips-dl-machine-1.60.patch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Retrieved withwget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/mips/dl-machine.h.diff?r1=1.59&r2=1.60&cvsroot=glibc'See http://sources.redhat.com/ml/libc-alpha/2002-02/msg00091.htmlSee also glibc-2.2.5-mips-build-gmon.patch, which takes care of the other part of this for mips.ChangeLog:        sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use        __attribute_used__.        (__dl_runtime_resolve): Likewise.Fixes error/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:undefined reference to `__dl_runtime_resolve'===================================================================RCS file: /cvs/glibc/libc/sysdeps/mips/dl-machine.h,vretrieving revision 1.59retrieving revision 1.60diff -u -r1.59 -r1.60--- libc/sysdeps/mips/dl-machine.h	2002/02/03 00:29:15	1.59+++ libc/sysdeps/mips/dl-machine.h	2002/02/08 18:56:57	1.60@@ -69,7 +69,7 @@    } while (0)  /* Return nonzero iff ELF header is compatible with the running host.  */-static inline int __attribute__ ((unused))+static inline int __attribute_used__ elf_machine_matches_host (const ElfW(Ehdr) *ehdr) {   switch (ehdr->e_machine)@@ -262,7 +262,7 @@ /* This is called from assembly stubs below which the compiler can't see.  */ \ static ElfW(Addr)							      \ __dl_runtime_resolve (ElfW(Word), ElfW(Word), ElfW(Addr), ElfW(Addr))	      \-		  __attribute__ ((unused));				      \+		  __attribute_used__;					      \ 									      \ static ElfW(Addr)							      \ __dl_runtime_resolve (ElfW(Word) sym_index,				      \

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -