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.
Unified · Split
| @@ -198,7 +198,7 @@ $(multi-objs-y:.o=.s) : modname = $(modname-multi) · 197 unmodified lines | |||
| 198 | $(multi-objs-y:.o=.lst) : modname = $(modname-multi) | 198 | $(multi-objs-y:.o=.lst) : modname = $(modname-multi) |
| 199 | 199 | ||
| 200 | quiet_cmd_cc_s_c = CC $(quiet_modtag) $@ | 200 | 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 $@ $< |
| 202 | 202 | ||
| 203 | $(obj)/%.s: $(src)/%.c FORCE | 203 | $(obj)/%.s: $(src)/%.c FORCE |
| 204 | $(call if_changed_dep,cc_s_c) | 204 | $(call if_changed_dep,cc_s_c) |