Skip to content

Commit 1e39036

Browse files
nathanchancemasahir0y
authored andcommitted
Revert "um: clang: Strip out -mno-global-merge from USER_CFLAGS"
This reverts commit 6580c5c. This patch is buggy, as noted in the patch linked below. The root cause has been solved by removing '-mno-global-merge' for the entire kernel. Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Nathan Chancellor <[email protected]> Reviewed-by: David Gow <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent cf300b8 commit 1e39036

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/um/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -I%,,$(KBUILD_CFLAGS))) \
7575
-D_FILE_OFFSET_BITS=64 -idirafter $(srctree)/include \
7676
-idirafter $(objtree)/include -D__KERNEL__ -D__UM_HOST__
7777

78-
ifdef CONFIG_CC_IS_CLANG
79-
USER_CFLAGS := $(patsubst -mno-global-merge,,$(USER_CFLAGS))
80-
endif
81-
8278
#This will adjust *FLAGS accordingly to the platform.
8379
include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
8480

0 commit comments

Comments
 (0)