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.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -198,7 +198,7 @@ $(multi-objs-y:.o=.s) : modname = $(modname-multi) · 197 unmodified lines | ||
| 198 | 198 | $(multi-objs-y:.o=.lst) : modname = $(modname-multi) |
| 199 | 199 | |
| 200 | 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 | 203 | $(obj)/%.s: $(src)/%.c FORCE |
| 204 | 204 | $(call if_changed_dep,cc_s_c) |