Re: Linux in a binary world... a doomsday scenario

From: Avi Kivity
Date: Wed Dec 07 2005 - 10:18:01 EST


Hannu Savolainen wrote:


Or why not to include an embedded version of gcc/binutils in the kernel
LKM interface. In this way all drivers can only be distributed in source code which effectively makes all forms of binary only drivers impossible. After that all the EXPORT_SYMBOL_GPL nonsense can be removed and a proper DDI layer can be implemented for Linux. This makes it possible to ship "outside the kernel build" drivers without a risk of major incompatibility problems in the next kernel version. No, I'm not 100% serious but just 50%.



char mydriver[] = { 0x90, 0xf3, 0xa4, ... };
struct { unsigned long offset; void* symbol; } fixups[] = { { 79, schedule }, ... };

module_init() { link(mydriver, fixups); ((void (*)())mydriver)(); }

:)

--
error compiling committee.c: too many arguments to function

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/