Skip to content

Commit 58edae3

Browse files
Andi KleenH. Peter Anvin
authored andcommitted
lto: Disable LTO for sys_ni
The assembler alias code in cond_syscall does not work when compiled for LTO. Just disable LTO for that file. 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 8037598 commit 58edae3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernel/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ CFLAGS_REMOVE_cgroup-debug.o = -pg
1818
CFLAGS_REMOVE_irq_work.o = -pg
1919
endif
2020

21+
# cond_syscall is currently not LTO compatible
22+
CFLAGS_sys_ni.o = $(DISABLE_LTO)
23+
2124
obj-y += sched/
2225
obj-y += locking/
2326
obj-y += power/

0 commit comments

Comments
 (0)