Skip to contentSkip to conversation

warning during make modules

DISCUSSION Fr�d�ric L . W . Meunier 2 participants 2 messages Dec 12, 2000

lore
Share & tools
lore
#0 lore raw

Is this a 2.4.0 issue? Because I see the warnings on 2.2.18 too, and also building alsa-driver. I use modutils 2.3.22. binutils 2.10.1.0.2. glibc 2.2.

2.2.17 reported the same, 2.4.0-test11 too (but I never ran this one).

The compiler is egcs 1.1.2. gcc is a symlink to egcs-2.1.96.

Signature · 5 lines
0@pervalidus.{net,{dyndns.}org} TelFax: 55-21-717-2399 (Niterói-RJ BR)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#1 lore raw
Quoted 3 lines · Fr d ric L . W . Meunier

Is this a 2.4.0 issue? Because I see the warnings on 2.2.18 too, and also building alsa-driver. I use modutils 2.3.22. binutils 2.10.1.0.2. glibc 2.2.

The kernel is trying to fudge the section flags for .modinfo to prevent .modinfo being loaded as part of a module. This works on older toolchains, it even works on recent toolchains but now you get an annoying warning. modutils >= 2.3.19 has special case code for .modinfo so the kernel fudge is no longer required.

The 2.4 kernel will be patched to remove the warning in my next set of module changes, probably 2.4.1. The 2.2 kernel will _not_ be patched because that would force all 2.2 users to upgrade their user space tools which is a no-no for 2.2. But if you have already upgraded your user space tools, you can patch 2.2 linux/module.h yourself to remove the warning. Against 2.2.18-pre27.

Index: 18-pre27.1/include/linux/module.h

include/linux/module.h Tue, 12 Dec 2000 12:12:48 +1100 kaos (linux-2.2/F/51_module.h 1.1.7.2 644) renamed from include/linux/module.h Tue, 12 Sep 2000 13:37:17 +1100 kaos (linux-2.2/F/51_module.h 1.1.7.2 644) +0 -5
@@ -190,11 +190,6 @@ const char __module_parm_desc_##var[]		\
 __attribute__((section(".modinfo"))) =		\
 "parm_desc_" __MODULE_STRING(var) "=" desc
 
-/* The attributes of a section are set the first time the section is
-   seen; we want .modinfo to not be allocated.  */
-
-__asm__(".section .modinfo\n\t.previous");
-
 /* Define the module variable, and usage macros.  */
 extern struct module __this_module;
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/