http://bugzilla.kernel.org/show_bug.cgi?id=12446
在Linux2.6.26下用EXPORT_SYMBOL时出现Unknown symbol?
如何解决!!
这是linux kernel 2.6.26 之后版本的bug (详细描述, 请看http://bugzilla.kernel.org/show_bug.cgi?id=12446)
并且这个bug不会被fix
解决办法是把mod_a的Module.symvers放到mod_b的当前路径,从而编译mod_b,符号信息会自动连接进去.
或者在mod_b的makefile中使用KBUILD_EXTRA_SYMBOLS指定mod_a的Module.symvers, 如:
KBUILD_EXTRA_SYMBOLS=/mod_a/Module.symvers
编译mod_b时,搜索Module.symvers的路径是:
1, kernel source path, e.g. /usr/src/kernels/linux-2.6.28.10
2, makefile中M=所指定的路径, 它等效于变量KBUILD_EXTMOD的值
3, 变量KBUILD_EXTRA_SYMBOLS的值
Summary: | Unable to insmod module. Unknwon symbol found |
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
Attachments | |
---|---|
Add an p_w_upload (proposed patch, testcase, etc.) |
Description From amit jain 2009-01-14 05:53:57
------- Comment #1 From Roland Kletzing 2009-01-17 02:44:19 -------
------- Comment #2 From sucheta 2009-01-18 21:40:43 -------
------- Comment #3 From amit jain 2009-01-19 00:20:32 -------
------- Comment #4 From amit jain 2009-01-28 21:04:34 -------
------- Comment #5 From Alan 2009-03-19 10:19:16 -------
------- Comment #6 From amit jain 2009-03-19 21:04:12 -------
------- Comment #7 From Tejun Heo 2009-03-19 21:48:40 -------
------- Comment #8 From Roland Kletzing 2009-03-20 12:11:23 -------
------- Comment #9 From Rusty Russell 2009-03-22 23:00:51 -------
------- Comment #10 From Qihua Dai 2009-06-04 05:28:02 -------
------- Comment #11 From Qihua Dai 2009-06-04 05:31:40 -------
------- Comment #12 From Rusty Russell 2009-06-04 06:54:15 -------
You need to log in before you can comment on or make changes to this bug. |
转载于:https://blog.51cto.com/laokaddk/489698