lkml.org 
[lkml]   [2008]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: How to link a .o with all modules
Date

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: "_restgpr_30_x" [net/key/af_key.ko] undefined!
>
> I need a bit more context to try to analyse this.
> Where did you expect _restgpr_20_x to be defined.
> If in vmlinux then were they present in the
> Module.symvers file?

No they aren't there since we I'm not EXPORT_SYMBOL() them. Should I
also be doing EXPORT_SYMBOL?

> If in the linked in .o file - could you
> see the symbols using objdump.

Yes.

readelf -a:

...
Symbol table '.symtab' contains 113 entries:
Num: Value Size Type Bind Vis Ndx Name
...
5: 00000000 0 FUNC GLOBAL DEFAULT 1 _savegpr_14
6: 00000000 0 FUNC GLOBAL DEFAULT 1 _save32gpr_14
...
>
>
> etc.
>
> Sorry - not much help right away.
>
> PS. Travelling - do not expect responses until the
> weekend.

np.
>
>
> Sam



\
 
 \ /
  Last update: 2008-05-08 16:19    [W:2.232 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site