diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 4f550fc0e811b359eeca80d95903ac929cfaaa60..cb7c6b02fede96978415df1955e95a76ddcb8a5a 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -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