Skip to content

Commit 1e64ff4

Browse files
Andi KleenH. Peter Anvin
authored andcommitted
Kbuild, lto: Disable LTO for asm-offsets.c
The asm-offset.c technique to fish data out of the assembler file does not work with LTO. Just disable for the asm-offset.c build. Signed-off-by: Andi Kleen <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: H. Peter Anvin <[email protected]>
1 parent 8564ed2 commit 1e64ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ $(multi-objs-y:.o=.s) : modname = $(modname-multi)
198198
$(multi-objs-y:.o=.lst) : modname = $(modname-multi)
199199

200200
quiet_cmd_cc_s_c = CC $(quiet_modtag) $@
201-
cmd_cc_s_c = $(CC) $(c_flags) -fverbose-asm -S -o $@ $<
201+
cmd_cc_s_c = $(CC) $(c_flags) $(DISABLE_LTO) -fverbose-asm -S -o $@ $<
202202

203203
$(obj)/%.s: $(src)/%.c FORCE
204204
$(call if_changed_dep,cc_s_c)

0 commit comments

Comments
 (0)