diff options
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 2e3a10e79ca9..061d0c3a420a 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -265,6 +265,8 @@ objtool_args += --no-fp | |||
265 | endif | 265 | endif |
266 | ifdef CONFIG_GCOV_KERNEL | 266 | ifdef CONFIG_GCOV_KERNEL |
267 | objtool_args += --no-unreachable | 267 | objtool_args += --no-unreachable |
268 | else | ||
269 | objtool_args += $(call cc-ifversion, -lt, 0405, --no-unreachable) | ||
268 | endif | 270 | endif |
269 | 271 | ||
270 | # 'OBJECT_FILES_NON_STANDARD := y': skip objtool checking for a directory | 272 | # 'OBJECT_FILES_NON_STANDARD := y': skip objtool checking for a directory |