这是一个创建于 1684 天前的主题,其中的信息可能已经有所发展或是发生改变。
[ 1854.285430] nfs: module PLT section(s) missing
[ 1854.317509] nfs: module PLT section(s) missing
请问 如何解决.
第 1 条附言 · 2021 年 6 月 24 日
/linux-4.4.197/scripts/module-common.lds
sections 里 添加
.plt : { BYTE(0) }
.init.plt : { BYTE(0) }
编译后, 检查
[root@haproxy persist-root-shell]# objdump -t getshell.ko | grep plt
00000024 l d .plt 00000000 .plt
00000025 l d .init.plt 00000000 .init.plt
第 2 条附言 · 2021 年 6 月 28 日
使用 grep -rn '.plt : { BYTE(0) }' 查找 linux 4.4.197 源码发现
arch/arm/kernel/module.lds:2: .core.plt : { BYTE(0) }
arch/arm/kernel/module.lds:3: .init.plt : { BYTE(0) }
arch/ia64/module.lds:9: .core.plt : { BYTE(0) }
arch/ia64/module.lds:10: .init.plt : { BYTE(0) }
源码是 .core.plt ,改成 .plt 就 ok 了 。
2 条回复 • 2021-06-24 08:46:34 +08:00
 |
|
2
tty1 2021 年 6 月 24 日
把 NFS 的 PLT 这个模组加上就可以吧
|