[PATCH][UBI] remove __exit on functions referenced in '.text' or '.init.text'
bene at linutronix.de
bene at linutronix.de
Fri Jan 26 06:00:15 EST 2007
Hi Artem,
> Yeah, I was actually planning to do the same and get rid of most
> __init/__exit. But still out of curiosity, may you please elaborate on
> the problem?
The Problem is simple: the kernel does not link. The linker reports the
cross section references as errors. Here is an example:
`ubi_sysfs_vol_close' referenced in section `.text' of drivers/built-in.o:
defined in discarded section `.exit.text' of
drivers/built-in.o`ubi_sysfs_vol_close' referenced in section `.text' of
drivers/built-in.o: defined in discarded section `.exit.text' of
drivers/built-in.o`ubi_sysfs_vol_close' referenced in section `.text' of
drivers/built-in.o: defined in discarded section `.exit.text' of
drivers/built-in.o`ubi_sysfs_close' referenced in section `.text' of
drivers/built-in.o: defined in discarded section `.exit.text' of
drivers/built-in.o`ubi_sysfs_close' referenced in section `.init.text' of
drivers/built-in.o: defined in discarded section `.exit.text' of
drivers/built-in.o
Bene
More information about the linux-mtd
mailing list