Re: Kernel symbols for linking LKM's against.

Darren Reed (darrenr@cyber.com.au)
Wed, 12 Nov 1997 07:44:13 +1100 (EST)


In some mail I received from Alan Cox, sie wrote
>
> > For example, it would appear that not many of the library style functions
> > (bcopy, etc) are available as standard (well, in 2.0.31 anyway).
>
> bcopy ??
>
> memcpy, memset and friends are inline functions and thus dont need to
> be exported

Are strcpy/strcat, etc, all inline functions too ? I would have thought
that everything in /usr/src/linux/lib would have be part of that interface
(or is it all just functions that end up as inlines) ?

I should add, that it appears inline functions are highly dependent on
gcc being used with -O2 or something similar. I was also having trouble
getting ntohl() and friends resolved until I used -O2.

Still, it's very quirky. Somewhat like the Solaris 2 problem with gcc
where it generates incompatible symbol tables if you use -g to compile
code to use as an LKM.

Darren