Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "um: clang: Strip out -mno-global-merge from USER_CFLAGS"

This reverts commit 6580c5c18fb3df2b11c5e0452372f815deeff895.

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/20220322173547.677760-1-nathan@kernel.org/
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Nathan Chancellor and committed by
Masahiro Yamada
1e39036d cf300b83

-4
-4
arch/um/Makefile
··· 75 75 -D_FILE_OFFSET_BITS=64 -idirafter $(srctree)/include \ 76 76 -idirafter $(objtree)/include -D__KERNEL__ -D__UM_HOST__ 77 77 78 - ifdef CONFIG_CC_IS_CLANG 79 - USER_CFLAGS := $(patsubst -mno-global-merge,,$(USER_CFLAGS)) 80 - endif 81 - 82 78 #This will adjust *FLAGS accordingly to the platform. 83 79 include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) 84 80