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 ERROR

Re: How to link a .o with all modules

2008-05-12 Thread Kumar Gala
On Fri, 9 May 2008, Kumar Gala wrote: > > 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 qu

Re: How to link a .o with all modules

2008-05-09 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 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_2

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-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_ke

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 save/re

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 the

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 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_SYMB

How to link a .o with all modules

2008-05-04 Thread Kumar Gala
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 the same "library