summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-08 01:16:37 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-08 01:16:37 +0000
commit1a5783ef25db41d8cfbe9aa516d28ea47d934b14 (patch)
tree8170245103b95955ecc44c8870cd7cfd861111b7 /bin
parentb83ad9cd2d6d4c6c6cc4bc2cea08c00c861dd9a8 (diff)
downloadportage-1a5783ef25db41d8cfbe9aa516d28ea47d934b14.tar.gz
portage-1a5783ef25db41d8cfbe9aa516d28ea47d934b14.tar.bz2
portage-1a5783ef25db41d8cfbe9aa516d28ea47d934b14.zip
allow split debuf for kernel modules (trunk r7193)
svn path=/main/branches/2.1.2/; revision=7194
Diffstat (limited to 'bin')
-rwxr-xr-xbin/prepstrip8
1 files changed, 7 insertions, 1 deletions
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"* ]] \