[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#399217: libc6-dbg: libraries includes useless .debug_loc



Package: libc6-dbg
Version: 2.3.6.ds1-8
Severity: normal
Tags: patch

I've had this sitting on my hard drive for six months but never committed
it, and now I no longer consider myself a glibc committer.

Someone reported that there were useless sections in the separate debuginfo
files in /usr/lib/debug.  That's because I missed one DWARF-2 section
when creating them; they have location lists, which are useless without
.debug_info.  The fix is straightforward.

Index: debian/wrapper/objcopy
===================================================================
--- debian/wrapper/objcopy	(revision 1881)
+++ debian/wrapper/objcopy	(working copy)
@@ -4,7 +4,7 @@ case " $* " in
   *" --only-keep-debug "*)
     exec /usr/bin/objcopy -R .debug_info -R .debug_aranges -R .debug_pubnames \
 	-R .debug_abbrev -R .debug_line -R .debug_str -R .debug_ranges \
-	-R .comment -R .note "$@"
+	-R .debug_loc -R .comment -R .note "$@"
     ;;
 esac
 


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19-rc1
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages libc6-dbg depends on:
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries

libc6-dbg recommends no packages.

-- no debconf information



Reply to: