Commit af7e6a74 authored by Roland McGrath's avatar Roland McGrath Committed by Thomas Gleixner
Browse files

x86_64: install unstripped copies of compat vdso on disk

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: default avatarRoland McGrath <>
Signed-off-by: default avatarAndi Kleen <>
Signed-off-by: default avatarIngo Molnar <>
Signed-off-by: default avatarThomas Gleixner <>
parent 8957ecab
......@@ -18,18 +18,35 @@ $(obj)/syscall32_syscall.o: \
$(foreach F,sysenter syscall,$(obj)/vsyscall-$
# Teach kbuild about targets
targets := $(foreach F,sysenter syscall,vsyscall-$F.o vsyscall-$
targets := $(foreach F,$(addprefix vsyscall-,sysenter syscall),\
$F.o $ $
# The DSO images are built using a special linker script
quiet_cmd_syscall = SYSCALL $@
cmd_syscall = $(CC) -m32 -nostdlib -shared -s \
cmd_syscall = $(CC) -m32 -nostdlib -shared \
$(call ld-option, -Wl$(comma)--hash-style=sysv) \
-Wl, -o $@ \
-Wl,-T,$(filter-out FORCE,$^)
$(obj)/ $(obj)/ \
$(obj)/ $(src)/ $(obj)/vsyscall-%.o FORCE
$(obj)/ OBJCOPYFLAGS := -S
$(obj)/ $(obj)/ FORCE
$(call if_changed,objcopy)
$(obj)/ $(obj)/ \
$(obj)/ $(src)/ $(obj)/vsyscall-%.o FORCE
$(call if_changed,syscall)
AFLAGS_vsyscall-sysenter.o = -m32 -Wa,-32
AFLAGS_vsyscall-syscall.o = -m32 -Wa,-32
vdsos :=
quiet_cmd_vdso_install = INSTALL $@
cmd_vdso_install = cp $($(obj)/ \
@mkdir -p $(MODLIB)/vdso
$(call cmd,vdso_install)
vdso_install: $(vdsos)
......@@ -110,9 +110,14 @@ bzdisk: vmlinux
fdimage fdimage144 fdimage288 isoimage: vmlinux
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) $@
install: vdso_install
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) $@
$(Q)$(MAKE) $(build)=arch/x86/ia32 $@
$(Q)rm -rf $(objtree)/arch/x86_64/boot
$(Q)$(MAKE) $(clean)=$(boot)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment