[OT] visible symbols was Re: asihpi driver -> kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Takashi Iwai wrote:
> At Wed, 19 Dec 2007 11:13:25 +1300,
> Eliot Blennerhassett wrote:
>> BTW is there any way to not export functions/variables that are used
>> only inside the kernel module? (but used between object files that make
>> up the module so cannot be made static)
> 
> Remember that a driver can be built in a kernel, not as a module.
> 
>> I.e. if the module was compiled as one huge sourcefile, almost
>> everything could be static.
> 
> You can do it in that way, of course :)


Hmmm.  Seems to be a general problem whether building a shared library,
or a kernel module.

I.e. as soon as I have more than one source file in my lib or module, I
suddenly have to make some functions not static, and they become visible
globally.

Is there no way to compile and link a.c and b.c so that only specific
entry points are visible before statically linking ab.o with the rest of
the kernel or making ab.o into a kernel module.

--
Eliot

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux