On Tue, 11 Jan 2000, Keith Owens wrote:
> On Mon, 10 Jan 2000 21:51:32 +0100,
> modutils 2.3 [1] has a configure option --enable-insmod-static which
> together with the combined binary option results in a static
> insmod/rmmod/modprobe of "only" 406204 bytes. The non-static combined
> binary is 74352, both figures are stripped. Alas modutils uses
> snprintf and malloc, including either of those adds 200K to the static
> binary. Then something pulls in NLS and the binary continues to grow.
>
> I can replace all the fopen, fclose, fgets, fputs etc. with local
> routines that use read and write. But I still need snprintf and malloc
> so replacing the f* routines does not reduce the binary size. What we
> need is a standard small glibc equivalent that only has snprintf,
> vsnprintf and a small malloc set. Does such a library exist?
>
> [1] ftp://ftp.ocs.com.au/pub/modutils/v2.3
Well, I conclude from this that insmodding modules in the initrd is
something for PC Linux distributions. Embedded developers should not use
modules because of size problems.
Bas.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:18 EST