summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-07-08 00:17:29 +0000
committerMike Frysinger <vapier@gentoo.org>2007-07-08 00:17:29 +0000
commit9c01486fafb781204c52577fb8a61e5210b4706c (patch)
tree5d24c650a15cc6da32e66f5dc5bb4a80c9adf3c9 /bin/prepstrip
parentNow that the "white" color code really is white, alias it to bold where it's ... (diff)
downloadportage-multirepo-9c01486fafb781204c52577fb8a61e5210b4706c.tar.gz
portage-multirepo-9c01486fafb781204c52577fb8a61e5210b4706c.tar.bz2
portage-multirepo-9c01486fafb781204c52577fb8a61e5210b4706c.zip
allow split debuf for kernel modules
svn path=/main/trunk/; revision=7193
Diffstat (limited to 'bin/prepstrip')
-rwxr-xr-xbin/prepstrip8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index 539eba2f..e7b07c7a 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"* ]] \