From: Mike Frysinger Date: Sun, 8 Jul 2007 00:17:29 +0000 (-0000) Subject: allow split debuf for kernel modules X-Git-Tag: v2.2_pre1~1061 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c01486fafb781204c52577fb8a61e5210b4706c;p=portage.git allow split debuf for kernel modules svn path=/main/trunk/; revision=7193 --- diff --git a/bin/prepstrip b/bin/prepstrip index 539eba2f1..e7b07c7aa 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -93,7 +93,13 @@ do [[ ${stripitbaby} -eq 1 ]] && ${STRIP} -g "${x}" elif [[ ${f} == *"SB executable"* || ${f} == *"SB shared object"* || ${f} == *"SB relocatable"* ]] ; then vecho " ${x:${#D}}" - [[ ${f} != *"SB relocatable"* ]] && save_elf_debug "${x}" + if [[ ${f} != *"SB relocatable"* ]] || [[ ${x} == *.ko ]] ; then + # only split debug info for final linked objects + # or kernel modules as debuginfo for intermediatary + # files (think crt*.o from gcc/glibc) is useless and + # actually causes problems + save_elf_debug "${x}" + fi [[ -n ${NOSTRIP} ]] && continue if [[ ${stripitbaby} -eq 1 ]] ; then [[ ${f} == *"SB relocatable"* ]] \