?? crosstool-0.38_patches_glibc-2.3.6_glibc-2.3.6-allow-gcc-4.0-arm.patch
字號:
--- crosstool-0.38/patches/glibc-2.3.6/glibc-2.3.6-allow-gcc-4.0-arm.patch 1970-01-01 01:00:00.000000000 +0100+++ crosstool-0.38-ptxdist/patches/glibc-2.3.6/glibc-2.3.6-allow-gcc-4.0-arm.patch 2006-01-22 08:22:28.000000000 +0100@@ -0,0 +1,124 @@+Fixes+In file included from dynamic-link.h:22,+ from dl-reloc.c:265:+../sysdeps/arm/dl-machine.h: In function '_dl_relocate_object':+../sysdeps/arm/dl-machine.h:371: error: invalid storage class for function 'fix_bad_pc24'+../sysdeps/arm/dl-machine.h:406: error: invalid storage class for function 'elf_machine_rel'+../sysdeps/arm/dl-machine.h:532: error: invalid storage class for function 'elf_machine_rela'+../sysdeps/arm/dl-machine.h:612: error: invalid storage class for function 'elf_machine_rel_relative'+../sysdeps/arm/dl-machine.h:621: error: invalid storage class for function 'elf_machine_rela_relative'+../sysdeps/arm/dl-machine.h:630: error: invalid storage class for function 'elf_machine_lazy_rel'+make[2]: Leaving directory `/home/dank/queue/jobdir.k8/crosstool-dev/build/arm-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.3/glibc-2.3.3/elf'++when building glibc-2.3.[34] with gcc-4.0++Like+http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/arm/dl-machine.h.diff?r1=1.51&r2=1.52&cvsroot=glibc+but works with older compilers, and fixes fix_bad_pc24.++diff -urN glibc-2.3.6-orig/sysdeps/arm/dl-machine.h glibc-2.3.6/sysdeps/arm/dl-machine.h+--- glibc-2.3.6-orig/sysdeps/arm/dl-machine.h 2005-10-17 06:52:36.000000000 +0200++++ glibc-2.3.6/sysdeps/arm/dl-machine.h 2006-01-21 00:11:00.000000000 +0100+@@ -357,7 +357,14 @@+ #ifdef RESOLVE+ + /* Deal with an out-of-range PC24 reloc. */+-static Elf32_Addr++#if __GNUC__ >= 4++ auto inline Elf32_Addr++#else++ static inline Elf32_Addr++#endif++#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)++ __attribute ((always_inline))++#endif+ fix_bad_pc24 (Elf32_Addr *const reloc_addr, Elf32_Addr value)+ {+ static void *fix_page;+@@ -390,8 +397,14 @@+ /* Perform the relocation specified by RELOC and SYM (which is fully resolved).+ MAP is the object containing the reloc. */+ +-auto inline void+-__attribute__ ((always_inline))++#if __GNUC__ >= 4++ auto inline void++#else++ static inline void++#endif++#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)++ __attribute ((always_inline))++#endif+ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,+ const Elf32_Sym *sym, const struct r_found_version *version,+ void *const reloc_addr_arg)+@@ -516,8 +529,15 @@+ }+ + # ifndef RTLD_BOOTSTRAP+-auto inline void+-__attribute__ ((always_inline))++++#if __GNUC__ >= 4++ auto inline void++#else++ static inline void++#endif++#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)++ __attribute ((always_inline))++ #endif+ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,+ const Elf32_Sym *sym, const struct r_found_version *version,+ void *const reloc_addr_arg)+@@ -597,8 +617,14 @@+ }+ # endif+ +-auto inline void+-__attribute__ ((always_inline))++#if __GNUC__ >= 4++ auto inline void++#else++ static inline void++#endif++#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)++ __attribute ((always_inline))++#endif+ elf_machine_rel_relative (Elf32_Addr l_addr, const Elf32_Rel *reloc,+ void *const reloc_addr_arg)+ {+@@ -607,8 +633,14 @@+ }+ + # ifndef RTLD_BOOTSTRAP+-auto inline void+-__attribute__ ((always_inline))++#if __GNUC__ >= 4++ auto inline void++#else++ static inline void++#endif++#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)++ __attribute ((always_inline))++#endif+ elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,+ void *const reloc_addr_arg)+ {+@@ -617,8 +649,14 @@+ }+ # endif+ +-auto inline void+-__attribute__ ((always_inline))++#if __GNUC__ >= 4++ auto inline void++#else++ static inline void++#endif++#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)++ __attribute ((always_inline))++#endif+ elf_machine_lazy_rel (struct link_map *map,+ Elf32_Addr l_addr, const Elf32_Rel *reloc)+ {+Binary files glibc-2.3.6-orig/sysdeps/arm/.dl-machine.h.rej.swp and glibc-2.3.6/sysdeps/arm/.dl-machine.h.rej.swp differ
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -