void-packages/srcpkgs/linux3.16/patches/ia32-flags.patch
Jürgen Buchmüller e82f8d41fa linux3.16: update to 3.16.82
Work around binutils-2.34 bug by adding -mintel64 to files
emitting the "sysexit" instruction.

[ci skip]
2020-02-15 22:56:08 +01:00

21 lines
816 B
Diff

--- linux-3.16.82/arch/x86/ia32/Makefile 2020-02-11 21:03:59.000000000 +0100
+++ linux-3.16.82/arch/x86/ia32/Makefile 2020-02-15 20:22:12.356181352 +0100
@@ -2,6 +2,8 @@
# Makefile for the ia32 kernel emulation subsystem.
#
+AFLAGS_ia32entry.o := -Wa,-mintel64
+
obj-$(CONFIG_IA32_EMULATION) := ia32entry.o sys_ia32.o ia32_signal.o
obj-$(CONFIG_IA32_EMULATION) += nosyscall.o syscall_ia32.o
--- linux-3.16.82/arch/x86/kernel/Makefile 2020-02-11 21:03:59.000000000 +0100
+++ linux-3.16.82/arch/x86/kernel/Makefile 2020-02-15 20:35:20.276149935 +0100
@@ -5,6 +5,7 @@
extra-y := head_$(BITS).o head$(BITS).o head.o vmlinux.lds
CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE)
+CFLAGS_paravirt_patch_64.o := -Wa,-mintel64
ifdef CONFIG_FUNCTION_TRACER
# Do not profile debug and lowlevel utilities