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

x86: Install unstripped copy of 64bit vdso to disk

This keeps an unstripped copy of the 64bit 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 af7e6a74
......@@ -13,7 +13,7 @@ vobjs := $(foreach F,$(vobjs-y),$(obj)/$F)
$(obj)/vdso.o: $(obj)/
targets += $(vobjs-y) vdso-syms.o
targets += $(vobjs-y) vdso-syms.o
# The DSO images are built using a special linker script.
quiet_cmd_syscall = SYSCALL $@
......@@ -26,12 +26,19 @@ vdso-flags = -fPIC -shared -Wl, \
$(call ld-option, -Wl$(comma)--hash-style=sysv) \
-Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 = $(vdso-flags) = $(vdso-flags)
$(obj)/vdso.o: $(src)/vdso.S $(obj)/
$(obj)/ $(src)/ $(vobjs) FORCE
$(obj)/ $(src)/ $(vobjs) FORCE
$(call if_changed,syscall)
$(obj)/ OBJCOPYFLAGS := -S
$(obj)/ $(obj)/ FORCE
$(call if_changed,objcopy)
CFL := $(PROFILING) -mcmodel=small -fPIC -g0 -O2 -fasynchronous-unwind-tables -m64
$(obj)/vclock_gettime.o: KBUILD_CFLAGS = $(CFL)
......@@ -47,3 +54,11 @@ $(obj)/built-in.o: ld_flags += -R $(obj)/vdso-syms.o
SYSCFLAGS_vdso-syms.o = -r -d
$(obj)/vdso-syms.o: $(src)/ $(vobjs) FORCE
$(call if_changed,syscall)
quiet_cmd_vdso_install = INSTALL $@
cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@
@mkdir -p $(MODLIB)/vdso
$(call cmd,vdso_install)
......@@ -117,6 +117,7 @@ vdso_install:
$(Q)$(MAKE) $(build)=arch/x86/ia32 $@
$(Q)$(MAKE) $(build)=arch/x86/vdso $@
$(Q)rm -rf $(objtree)/arch/x86_64/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