aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kernel/Makefile')
-rw-r--r--arch/ia64/kernel/Makefile32
1 files changed, 5 insertions, 27 deletions
diff --git a/arch/ia64/kernel/Makefile b/arch/ia64/kernel/Makefile
index 1ab150ec8cea..8dc9df8a87a5 100644
--- a/arch/ia64/kernel/Makefile
+++ b/arch/ia64/kernel/Makefile
@@ -5,7 +5,7 @@
5extra-y := head.o init_task.o vmlinux.lds 5extra-y := head.o init_task.o vmlinux.lds
6 6
7obj-y := acpi.o entry.o efi.o efi_stub.o gate-data.o fsys.o ia64_ksyms.o irq.o irq_ia64.o \ 7obj-y := acpi.o entry.o efi.o efi_stub.o gate-data.o fsys.o ia64_ksyms.o irq.o irq_ia64.o \
8 irq_lsapic.o ivt.o machvec.o pal.o patch.o process.o perfmon.o ptrace.o sal.o \ 8 irq_lsapic.o ivt.o machvec.o pal.o paravirt_patchlist.o patch.o process.o perfmon.o ptrace.o sal.o \
9 salinfo.o setup.o signal.o sys_ia64.o time.o traps.o unaligned.o \ 9 salinfo.o setup.o signal.o sys_ia64.o time.o traps.o unaligned.o \
10 unwind.o mca.o mca_asm.o topology.o 10 unwind.o mca.o mca_asm.o topology.o
11 11
@@ -47,35 +47,13 @@ ifeq ($(CONFIG_DMAR), y)
47obj-$(CONFIG_SWIOTLB) += pci-swiotlb.o 47obj-$(CONFIG_SWIOTLB) += pci-swiotlb.o
48endif 48endif
49 49
50# The gate DSO image is built using a special linker script.
51targets += gate.so gate-syms.o
52
53extra-y += gate.so gate-syms.o gate.lds gate.o
54
55# fp_emulate() expects f2-f5,f16-f31 to contain the user-level state. 50# fp_emulate() expects f2-f5,f16-f31 to contain the user-level state.
56CFLAGS_traps.o += -mfixed-range=f2-f5,f16-f31 51CFLAGS_traps.o += -mfixed-range=f2-f5,f16-f31
57 52
58CPPFLAGS_gate.lds := -P -C -U$(ARCH) 53# The gate DSO image is built using a special linker script.
59 54include $(srctree)/arch/ia64/kernel/Makefile.gate
60quiet_cmd_gate = GATE $@ 55# tell compiled for native
61 cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@ 56CPPFLAGS_gate.lds += -D__IA64_GATE_PARAVIRTUALIZED_NATIVE
62
63GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1 \
64 $(call ld-option, -Wl$(comma)--hash-style=sysv)
65$(obj)/gate.so: $(obj)/gate.lds $(obj)/gate.o FORCE
66 $(call if_changed,gate)
67
68$(obj)/built-in.o: $(obj)/gate-syms.o
69$(obj)/built-in.o: ld_flags += -R $(obj)/gate-syms.o
70
71GATECFLAGS_gate-syms.o = -r
72$(obj)/gate-syms.o: $(obj)/gate.lds $(obj)/gate.o FORCE
73 $(call if_changed,gate)
74
75# gate-data.o contains the gate DSO image as data in section .data.gate.
76# We must build gate.so before we can assemble it.
77# Note: kbuild does not track this dependency due to usage of .incbin
78$(obj)/gate-data.o: $(obj)/gate.so
79 57
80# Calculate NR_IRQ = max(IA64_NATIVE_NR_IRQS, XEN_NR_IRQS, ...) based on config 58# Calculate NR_IRQ = max(IA64_NATIVE_NR_IRQS, XEN_NR_IRQS, ...) based on config
81define sed-y 59define sed-y