forked from Minki/linux
i386: prepare shared kernel/vsyscall-int80.S
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
d4c3a41e9a
commit
24f5b95bb9
@ -50,7 +50,7 @@ obj-$(CONFIG_SCx200) += scx200.o
|
|||||||
# vsyscall_32.o contains the vsyscall DSO images as __initdata.
|
# vsyscall_32.o contains the vsyscall DSO images as __initdata.
|
||||||
# We must build both images before we can assemble it.
|
# We must build both images before we can assemble it.
|
||||||
# Note: kbuild does not track this dependency due to usage of .incbin
|
# Note: kbuild does not track this dependency due to usage of .incbin
|
||||||
$(obj)/vsyscall_32.o: $(obj)/vsyscall-int80.so $(obj)/vsyscall-sysenter.so
|
$(obj)/vsyscall_32.o: $(obj)/vsyscall-int80_32.so $(obj)/vsyscall-sysenter.so
|
||||||
targets += $(foreach F,int80 sysenter,vsyscall-$F.o vsyscall-$F.so)
|
targets += $(foreach F,int80 sysenter,vsyscall-$F.o vsyscall-$F.so)
|
||||||
targets += vsyscall-note.o vsyscall_32.lds
|
targets += vsyscall-note.o vsyscall_32.lds
|
||||||
|
|
||||||
@ -64,9 +64,9 @@ export CPPFLAGS_vsyscall_32.lds += -P -C -U$(ARCH)
|
|||||||
vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 \
|
vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 \
|
||||||
$(call ld-option, -Wl$(comma)--hash-style=sysv)
|
$(call ld-option, -Wl$(comma)--hash-style=sysv)
|
||||||
SYSCFLAGS_vsyscall-sysenter.so = $(vsyscall-flags)
|
SYSCFLAGS_vsyscall-sysenter.so = $(vsyscall-flags)
|
||||||
SYSCFLAGS_vsyscall-int80.so = $(vsyscall-flags)
|
SYSCFLAGS_vsyscall-int80_32.so = $(vsyscall-flags)
|
||||||
|
|
||||||
$(obj)/vsyscall-int80.so $(obj)/vsyscall-sysenter.so: \
|
$(obj)/vsyscall-int80_32.so $(obj)/vsyscall-sysenter.so: \
|
||||||
$(obj)/vsyscall-%.so: $(src)/vsyscall_32.lds \
|
$(obj)/vsyscall-%.so: $(src)/vsyscall_32.lds \
|
||||||
$(obj)/vsyscall-%.o $(obj)/vsyscall-note.o FORCE
|
$(obj)/vsyscall-%.o $(obj)/vsyscall-note.o FORCE
|
||||||
$(call if_changed,syscall)
|
$(call if_changed,syscall)
|
||||||
|
@ -4,12 +4,12 @@ __INITDATA
|
|||||||
|
|
||||||
.globl vsyscall_int80_start, vsyscall_int80_end
|
.globl vsyscall_int80_start, vsyscall_int80_end
|
||||||
vsyscall_int80_start:
|
vsyscall_int80_start:
|
||||||
.incbin "arch/i386/kernel/vsyscall-int80.so"
|
.incbin "arch/i386/kernel/vsyscall-int80_32.so"
|
||||||
vsyscall_int80_end:
|
vsyscall_int80_end:
|
||||||
|
|
||||||
.globl vsyscall_sysenter_start, vsyscall_sysenter_end
|
.globl vsyscall_sysenter_start, vsyscall_sysenter_end
|
||||||
vsyscall_sysenter_start:
|
vsyscall_sysenter_start:
|
||||||
.incbin "arch/i386/kernel/vsyscall-sysenter.so"
|
.incbin "arch/i386/kernel/vsyscall-sysenter_32.so"
|
||||||
vsyscall_sysenter_end:
|
vsyscall_sysenter_end:
|
||||||
|
|
||||||
__FINIT
|
__FINIT
|
||||||
|
Loading…
Reference in New Issue
Block a user