X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=arch%2Fx86%2FMakefile_32.cpu;h=b72b4f7531138cbc4c5042ac90942e752a74b8a4;hb=28f7e66fc1da53997a545684b21b91fb3ca3f321;hp=e372b584e9190ab5095e3b0defdde166625361e9;hpb=0f5a2c553d1484141ebb369ecab61894e9cb074f;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/x86/Makefile_32.cpu b/arch/x86/Makefile_32.cpu index e372b584e919..b72b4f753113 100644 --- a/arch/x86/Makefile_32.cpu +++ b/arch/x86/Makefile_32.cpu @@ -45,3 +45,8 @@ cflags-$(CONFIG_MGEODEGX1) += -march=pentium-mmx # cpu entries cflags-$(CONFIG_X86_GENERIC) += $(call tune,generic,$(call tune,i686)) +# Bug fix for binutils: this option is required in order to keep +# binutils from generating NOPL instructions against our will. +ifneq ($(CONFIG_X86_P6_NOP),y) +cflags-y += $(call cc-option,-Wa$(comma)-mtune=generic32,) +endif