From: Roland McGrath While integrating these with the Fedora kernel build, I worked out a few kinks. This patch replaces powerpc-vdso-install-unstripped-copies-on-disk.patch 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. Signed-off-by: Roland McGrath Cc: Sam Ravnborg Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton --- arch/powerpc/Makefile | 9 ++++++--- arch/powerpc/kernel/vdso32/Makefile | 4 ++-- arch/powerpc/kernel/vdso64/Makefile | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff -puN arch/powerpc/Makefile~powerpc-vdso-install-unstripped-copies-on-disk-update arch/powerpc/Makefile --- a/arch/powerpc/Makefile~powerpc-vdso-install-unstripped-copies-on-disk-update +++ a/arch/powerpc/Makefile @@ -166,12 +166,14 @@ define archhelp @echo ' *_defconfig - Select default config from arch/$(ARCH)/configs' endef -install: +install: vdso_install $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install + +vdso_install: ifeq ($(CONFIG_PPC64),y) - $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 install + $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@ endif - $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 install + $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@ archclean: $(Q)$(MAKE) $(clean)=$(boot) @@ -221,3 +223,4 @@ checkbin: fi CLEAN_FILES += $(TOUT) + diff -puN arch/powerpc/kernel/vdso32/Makefile~powerpc-vdso-install-unstripped-copies-on-disk-update arch/powerpc/kernel/vdso32/Makefile --- a/arch/powerpc/kernel/vdso32/Makefile~powerpc-vdso-install-unstripped-copies-on-disk-update +++ a/arch/powerpc/kernel/vdso32/Makefile @@ -46,10 +46,10 @@ quiet_cmd_vdso32as = VDSO32A $@ # install commands for the unstripped file quiet_cmd_vdso_install = INSTALL $@ - cmd_vdso_install = cp $@.dbg $(MODLIB)/vdso/$@ + cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@ vdso32.so: $(obj)/vdso32.so.dbg @mkdir -p $(MODLIB)/vdso $(call cmd,vdso_install) -install: vdso32.so +vdso_install: vdso32.so diff -puN arch/powerpc/kernel/vdso64/Makefile~powerpc-vdso-install-unstripped-copies-on-disk-update arch/powerpc/kernel/vdso64/Makefile --- a/arch/powerpc/kernel/vdso64/Makefile~powerpc-vdso-install-unstripped-copies-on-disk-update +++ a/arch/powerpc/kernel/vdso64/Makefile @@ -40,10 +40,10 @@ quiet_cmd_vdso64as = VDSO64A $@ # install commands for the unstripped file quiet_cmd_vdso_install = INSTALL $@ - cmd_vdso_install = cp $@.dbg $(MODLIB)/vdso/$@ + cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/$@ vdso64.so: $(obj)/vdso64.so.dbg @mkdir -p $(MODLIB)/vdso $(call cmd,vdso_install) -install: vdso64.so +vdso_install: vdso64.so _