lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 17 Jul 2007 07:08:12 +0200 From: Adrian Bunk <bunk@...sta.de> To: Samuel Ortiz <samuel.ortiz@...idboot.com> Cc: davem@...emloft.net, sam@...nborg.org, stable@...nel.org, eric.y.miao@...il.com, irda-users@...ts.sourceforge.net, netdev@...r.kernel.org Subject: Re: [irda-users] [PATCH] [IrDA] Fix IrDA build failure On Mon, Jul 16, 2007 at 04:00:52PM +0300, Samuel Ortiz wrote: > On Mon, Jul 16, 2007 at 02:17:15PM +0300, Samuel Ortiz wrote: > > Hi Dave, > > > > When having built-in IrDA, we hit the following error: > > > > `irda_sysctl_unregister' referenced in section `.init.text' of > > net/built-in.o: defined in discarded section `.exit.text' of > > net/built-in.o > > `irda_proc_unregister' referenced in section `.init.text' of > > net/built-in.o: defined in discarded section `.exit.text' of > > net/built-in.o > > `irsock_cleanup' referenced in section `.init.text' of net/built-in.o: > > defined in discarded section `.exit.text' of net/built-in.o > > `irttp_cleanup' referenced in section `.init.text' of net/built-in.o: > > defined in discarded section `.exit.text' of net/built-in.o > > `iriap_cleanup' referenced in section `.init.text' of net/built-in.o: > > defined in discarded section `.exit.text' of net/built-in.o > > `irda_device_cleanup' referenced in section `.init.text' of > > net/built-in.o: defined in discarded section `.exit.text' of > > net/built-in.o > > `irlap_cleanup' referenced in section `.init.text' of net/built-in.o: > > defined in discarded section `.exit.text' of net/built-in.o > > `irlmp_cleanup' referenced in section `.init.text' of net/built-in.o: > > defined in discarded section `.exit.text' of net/built-in.o > > make[1]: *** [.tmp_vmlinux1] Error 1 > > make: *** [_all] Error 2 > > > > This is due to the irda_init fix recently added, where we call __exit > > routines from an __init one. It is a build failure that I didn't catch > > because it doesn't show up when building IrDA as a module. My apologies > > for that. > I forgot to mention that the build fails on ARM but not on x86. As Sam > explained to me, x86 discards exit sections at runtime only, unlike ARM. > I don't know about other platforms though. > > So, to hit this build failure, you need a combination of !x86 and > built-in IrDA. On i386 these are runtime failures (although in unlikely error paths) which isn't better. > Cheers, > Samuel. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists