diff --git a/Makefile b/Makefile index 6c3634d23a6cceddd9bd5b357cb4b0c7f1535300..a311783757c0d7b4ba01fac6f6a6c28e213da534 100644 --- a/Makefile +++ b/Makefile @@ -403,8 +403,7 @@ KBUILD_AFLAGS_KERNEL := KBUILD_CFLAGS_KERNEL := KBUILD_AFLAGS_MODULE := -DMODULE KBUILD_CFLAGS_MODULE := -DMODULE -KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds -GCC_PLUGINS_CFLAGS := +KBUILD_LDFLAGS_MODULE = -T $(srctree)/scripts/module-common.lds $(if $(CONFIG_PROFILING),,-s) # Read KERNELRELEASE from include/config/kernel.release (if it exists) KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)