rpms/kernel/devel linux-2.6-compile-fix-gcc-43.patch,1.2,1.3
Chuck Ebbert (cebbert)
fedora-extras-commits at redhat.com
Mon Feb 4 23:28:08 UTC 2008
- Previous message (by thread): devel/pirut .cvsignore, 1.80, 1.81 pirut.spec, 1.84, 1.85 sources, 1.83, 1.84
- Next message (by thread): rpms/libsvm/devel libsvm-2.85.patch,1.1,1.2 libsvm.spec,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: cebbert
Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31113
Modified Files:
linux-2.6-compile-fix-gcc-43.patch
Log Message:
try to fix gcc 4.3 build yet again
linux-2.6-compile-fix-gcc-43.patch:
Index: linux-2.6-compile-fix-gcc-43.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/linux-2.6-compile-fix-gcc-43.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- linux-2.6-compile-fix-gcc-43.patch 1 Feb 2008 17:45:46 -0000 1.2
+++ linux-2.6-compile-fix-gcc-43.patch 4 Feb 2008 23:27:59 -0000 1.3
@@ -36,3 +36,30 @@
__attribute_used__ \
__attribute__ ((unused,__section__ ("__param"),aligned(sizeof(void *)))) \
= { __param_str_##name, perm, set, get, { arg } }
+--- linux-2.6.24.noarch.orig/include/linux/module.h
++++ linux-2.6.24.noarch/include/linux/module.h
+@@ -30,6 +30,15 @@
+
+ #define MODULE_NAME_LEN (64 - sizeof(unsigned long))
+
++/* On some platforms relocations to global data cannot go into read-only
++ sections, so 'const' makes no sense and even causes compile failures
++ with some compilers. */
++#if defined(CONFIG_ALPHA) || defined(CONFIG_IA64) || defined(CONFIG_PPC64)
++#define __ksym_const
++#else
++#define __ksym_const const
++#endif
++
+ struct kernel_symbol
+ {
+ unsigned long value;
+@@ -192,7 +201,7 @@ void *__symbol_get_gpl(const char *symbo
+ static const char __kstrtab_##sym[] \
+ __attribute__((section("__ksymtab_strings"))) \
+ = MODULE_SYMBOL_PREFIX #sym; \
+- static const struct kernel_symbol __ksymtab_##sym \
++ static __ksym_const struct kernel_symbol __ksymtab_##sym \
+ __attribute_used__ \
+ __attribute__((section("__ksymtab" sec), unused)) \
+ = { (unsigned long)&sym, __kstrtab_##sym }
- Previous message (by thread): devel/pirut .cvsignore, 1.80, 1.81 pirut.spec, 1.84, 1.85 sources, 1.83, 1.84
- Next message (by thread): rpms/libsvm/devel libsvm-2.85.patch,1.1,1.2 libsvm.spec,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list