]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/ia64/kernel/Makefile.gate
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
[mirror_ubuntu-artful-kernel.git] / arch / ia64 / kernel / Makefile.gate
CommitLineData
e4ff5b8f
IY
1# The gate DSO image is built using a special linker script.
2
26160371
NP
3targets += gate.so gate.lds gate.o gate-dummy.o
4
5obj-y += gate-syms.o
e4ff5b8f
IY
6
7CPPFLAGS_gate.lds := -P -C -U$(ARCH)
8
028d5bf1 9quiet_cmd_gate = GATE $@
e4ff5b8f
IY
10 cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@
11
12GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1 \
f86fd306 13 $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
e4ff5b8f
IY
14$(obj)/gate.so: $(obj)/gate.lds $(obj)/gate.o FORCE
15 $(call if_changed,gate)
16
26160371
NP
17GATECFLAGS_gate-dummy.o = -r
18$(obj)/gate-dummy.o: $(obj)/gate.lds $(obj)/gate.o FORCE
e4ff5b8f
IY
19 $(call if_changed,gate)
20
26160371
NP
21LDFLAGS_gate-syms.o := -r -R
22$(obj)/gate-syms.o: $(obj)/gate-dummy.o FORCE
23 $(call if_changed,ld)
24
e1cb14b8 25# gate-data.o contains the gate DSO image as data in section .data..gate.
e4ff5b8f
IY
26# We must build gate.so before we can assemble it.
27# Note: kbuild does not track this dependency due to usage of .incbin
28$(obj)/gate-data.o: $(obj)/gate.so