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