diff options
Diffstat (limited to 'arch/x86/kernel/Makefile_32')
-rw-r--r-- | arch/x86/kernel/Makefile_32 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/Makefile_32 b/arch/x86/kernel/Makefile_32 index b9d679820306..a7bc93c27662 100644 --- a/arch/x86/kernel/Makefile_32 +++ b/arch/x86/kernel/Makefile_32 | |||
@@ -3,6 +3,7 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | extra-y := head_32.o init_task.o vmlinux.lds | 5 | extra-y := head_32.o init_task.o vmlinux.lds |
6 | CPPFLAGS_vmlinux.lds += -Ui386 | ||
6 | 7 | ||
7 | obj-y := process_32.o signal_32.o entry_32.o traps_32.o irq_32.o \ | 8 | obj-y := process_32.o signal_32.o entry_32.o traps_32.o irq_32.o \ |
8 | ptrace_32.o time_32.o ioport_32.o ldt_32.o setup_32.o i8259_32.o sys_i386_32.o \ | 9 | ptrace_32.o time_32.o ioport_32.o ldt_32.o setup_32.o i8259_32.o sys_i386_32.o \ |
@@ -60,7 +61,7 @@ quiet_cmd_syscall = SYSCALL $@ | |||
60 | cmd_syscall = $(CC) -m elf_i386 -nostdlib $(SYSCFLAGS_$(@F)) \ | 61 | cmd_syscall = $(CC) -m elf_i386 -nostdlib $(SYSCFLAGS_$(@F)) \ |
61 | -Wl,-T,$(filter-out FORCE,$^) -o $@ | 62 | -Wl,-T,$(filter-out FORCE,$^) -o $@ |
62 | 63 | ||
63 | export CPPFLAGS_vsyscall_32.lds += -P -C -U$(ARCH) | 64 | export CPPFLAGS_vsyscall_32.lds += -P -C -Ui386 |
64 | 65 | ||
65 | vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 \ | 66 | vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 \ |
66 | $(call ld-option, -Wl$(comma)--hash-style=sysv) | 67 | $(call ld-option, -Wl$(comma)--hash-style=sysv) |