Commit 365a456a authored by Ye Bin's avatar Ye Bin Committed by Felix Fu
Browse files

arm32: kaslr: pop visibility when compile decompress boot code as we need relocate BSS by GOT.

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8KNA9


CVE: NA

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

If we not hide the GOT, when insert module which reference global
variable we got error "Unknown symbol_GLOBAL_OFFSET_TABLE_ (err 0)".

Signed-off-by: default avatarYe Bin <yebin10@huawei.com>

Conflicts:
    Merge OLK-5.10 fix patch e703de76

Signed-off-by: default avatarFelix Fu <fuzhen5@huawei.com>
parent 3fa7cb6e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -104,6 +104,10 @@ OBJS += lib1funcs.o ashldi3.o bswapsdi2.o

targets       := vmlinux vmlinux.lds piggy_data piggy.o \
		 head.o $(OBJS)
ifeq ($(CONFIG_RELOCATABLE),y)
HIDDEN_STR := -include $(srctree)/include/linux/hidden.h
KBUILD_CFLAGS := $(subst $(HIDDEN_STR), , $(KBUILD_CFLAGS))
endif

KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING