Re: How to link a .o with all modules

2008-06-02 Thread Kumar Gala
On May 8, 2008, at 3:22 PM, Sam Ravnborg wrote: On Thu, May 08, 2008 at 09:16:10AM -0500, Kumar Gala wrote: On May 5, 2008, at 3:44 PM, Sam Ravnborg wrote: Let me know if this does address your question. The problem is MODPOST complains about undefined symbols: MODPOST 24 modules

Re: How to link a .o with all modules

2008-05-08 Thread Kumar Gala
On May 5, 2008, at 3:44 PM, Sam Ravnborg wrote: Let me know if this does address your question. The problem is MODPOST complains about undefined symbols: MODPOST 24 modules ERROR: _restgpr_20_x [net/key/af_key.ko] undefined! ERROR: _restgpr_25_x [net/key/af_key.ko] undefined! ERROR:

Re: How to link a .o with all modules

2008-05-08 Thread Sam Ravnborg
On Thu, May 08, 2008 at 09:16:10AM -0500, Kumar Gala wrote: On May 5, 2008, at 3:44 PM, Sam Ravnborg wrote: Let me know if this does address your question. The problem is MODPOST complains about undefined symbols: MODPOST 24 modules ERROR: _restgpr_20_x [net/key/af_key.ko]

Re: How to link a .o with all modules

2008-05-05 Thread Kumar Gala
On May 4, 2008, at 2:24 PM, Sam Ravnborg wrote: On Sun, May 04, 2008 at 01:22:38PM -0500, Kumar Gala wrote: Sam, We have a case in powerpc in which we want to link some library routines with all module objects. The routines are intended for handling out-of-line function call register

Re: How to link a .o with all modules

2008-05-05 Thread Sam Ravnborg
Let me know if this does address your question. The problem is MODPOST complains about undefined symbols: MODPOST 24 modules ERROR: _restgpr_20_x [net/key/af_key.ko] undefined! ERROR: _restgpr_25_x [net/key/af_key.ko] undefined! ERROR: _restgpr_30_x [net/key/af_key.ko] undefined!

Re: How to link a .o with all modules

2008-05-04 Thread Sam Ravnborg
On Sun, May 04, 2008 at 01:22:38PM -0500, Kumar Gala wrote: Sam, We have a case in powerpc in which we want to link some library routines with all module objects. The routines are intended for handling out-of-line function call register save/restore so having them as EXPORT_SYMBOL()

Re: How to link a .o with all modules

2008-05-04 Thread Paul Mackerras
H. Peter Anvin writes: Why is having them as an EXPORT_SYMBOL() counterproductive? It sounds like *exactly* what you need -- and then having the kernel provide the same code to modules, instead of replication...? It means we would go through a trampoline just to call little things like

Re: How to link a .o with all modules

2008-05-04 Thread H. Peter Anvin
Kumar Gala wrote: Sam, We have a case in powerpc in which we want to link some library routines with all module objects. The routines are intended for handling out-of-line function call register save/restore so having them as EXPORT_SYMBOL() is counter productive (we do also need to link