--- /usr/lib/portage/bin/ebuild-helpers/prepstrip.foo 2011-10-20 22:44:39.542233087 +0000 +++ /usr/lib/portage/bin/ebuild-helpers/prepstrip 2011-10-20 22:48:27.843952888 +0000 @@ -229,7 +229,12 @@ elif [[ ${f} == *"SB executable"* || ${f} == *"SB shared object"* ]] ; then process_elf "${x}" ${PORTAGE_STRIP_FLAGS} elif [[ ${f} == *"SB relocatable"* ]] ; then - process_elf "${x}" ${SAFE_STRIP_FLAGS} + vecho " ${x:${#D}}" + save_elf_sources "${x}" + if ${strip_this} ; then + [[ ${x} == *.ko ]] && save_elf_debug "${x}" + ${STRIP} ${SAFE_STRIP_FLAGS} "${x}" + fi fi done