Commit 6bc05b0a authored by Cui GaoSheng's avatar Cui GaoSheng Committed by Zheng Zengkai
Browse files

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: default avatarCui GaoSheng <cuigaosheng1@huawei.com>
Reviewed-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent bbfbad16
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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