提交 6bc05b0a 编写于 作者: C Cui GaoSheng 提交者: Zheng Zengkai

arm32: kaslr: Fix the bug of module install failure

hulk inclusion
category: bugfix
bugzilla: 47952
CVE: NA

------------------------------------------------------------------------

Linux can't enable fpic to compile modules, because the modules
have their own relocation table, and they can't use the got table
for symbolic addressing.
Signed-off-by: NCui GaoSheng <cuigaosheng1@huawei.com>
Reviewed-by: NXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 bbfbad16
......@@ -50,6 +50,7 @@ endif
ifeq ($(CONFIG_RELOCATABLE),y)
KBUILD_CFLAGS += -fpic -include $(srctree)/include/linux/hidden.h
CFLAGS_MODULE += -fno-pic
LDFLAGS_vmlinux += -pie -shared -Bsymbolic
endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册