1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2c207aee4SJosh Poimboeuf 39b7b89efSJoseph Cihula# __restore_processor_state() restores %gs after S3 resume and so should not 49b7b89efSJoseph Cihula# itself be stack-protected 5893ab004SMasahiro YamadaCFLAGS_cpu.o := -fno-stack-protector 69b7b89efSJoseph Cihula 7*d2dcd3e3SSami Tolvanen# Clang may incorrectly inline functions with stack protector enabled into 8*d2dcd3e3SSami Tolvanen# __restore_processor_state(): https://bugs.llvm.org/show_bug.cgi?id=47479 9*d2dcd3e3SSami TolvanenCFLAGS_REMOVE_cpu.o := $(CC_FLAGS_LTO) 10*d2dcd3e3SSami Tolvanen 1108687aecSSergio Luisobj-$(CONFIG_PM_SLEEP) += cpu.o 1225862a04SZhimin Guobj-$(CONFIG_HIBERNATION) += hibernate_$(BITS).o hibernate_asm_$(BITS).o hibernate.o 13