mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
af7e6a7464
This keeps an unstripped copy of the vDSO images built before they are stripped and embedded in the kernel. The unstripped copies get installed in $(MODLIB)/vdso/ by "make install" (or you can explicitly use the subtarget "make vdso_install"). These files can be useful when they contain source-level debugging information. [ tglx: arch/x86 adaptation ] Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
#
|
|
# Makefile for the ia32 kernel emulation subsystem.
|
|
#
|
|
|
|
obj-$(CONFIG_IA32_EMULATION) := ia32entry.o sys_ia32.o ia32_signal.o tls32.o \
|
|
ia32_binfmt.o fpu32.o ptrace32.o syscall32.o syscall32_syscall.o \
|
|
mmap32.o
|
|
|
|
sysv-$(CONFIG_SYSVIPC) := ipc32.o
|
|
obj-$(CONFIG_IA32_EMULATION) += $(sysv-y)
|
|
|
|
obj-$(CONFIG_IA32_AOUT) += ia32_aout.o
|
|
|
|
audit-class-$(CONFIG_AUDIT) := audit.o
|
|
obj-$(CONFIG_IA32_EMULATION) += $(audit-class-y)
|
|
|
|
$(obj)/syscall32_syscall.o: \
|
|
$(foreach F,sysenter syscall,$(obj)/vsyscall-$F.so)
|
|
|
|
# Teach kbuild about targets
|
|
targets := $(foreach F,$(addprefix vsyscall-,sysenter syscall),\
|
|
$F.o $F.so $F.so.dbg)
|
|
|
|
# The DSO images are built using a special linker script
|
|
quiet_cmd_syscall = SYSCALL $@
|
|
cmd_syscall = $(CC) -m32 -nostdlib -shared \
|
|
$(call ld-option, -Wl$(comma)--hash-style=sysv) \
|
|
-Wl,-soname=linux-gate.so.1 -o $@ \
|
|
-Wl,-T,$(filter-out FORCE,$^)
|
|
|
|
$(obj)/%.so: OBJCOPYFLAGS := -S
|
|
$(obj)/%.so: $(obj)/%.so.dbg FORCE
|
|
$(call if_changed,objcopy)
|
|
|
|
$(obj)/vsyscall-sysenter.so.dbg $(obj)/vsyscall-syscall.so.dbg: \
|
|
$(obj)/vsyscall-%.so.dbg: $(src)/vsyscall.lds $(obj)/vsyscall-%.o FORCE
|
|
$(call if_changed,syscall)
|
|
|
|
AFLAGS_vsyscall-sysenter.o = -m32 -Wa,-32
|
|
AFLAGS_vsyscall-syscall.o = -m32 -Wa,-32
|
|
|
|
vdsos := vdso32-sysenter.so vdso32-syscall.so
|
|
|
|
quiet_cmd_vdso_install = INSTALL $@
|
|
cmd_vdso_install = cp $(@:vdso32-%.so=$(obj)/vsyscall-%.so.dbg) \
|
|
$(MODLIB)/vdso/$@
|
|
|
|
$(vdsos):
|
|
@mkdir -p $(MODLIB)/vdso
|
|
$(call cmd,vdso_install)
|
|
|
|
vdso_install: $(vdsos)
|