stripping of DLLs?

Fridrich Strba fridrich.strba at bluewin.ch
Wed Jun 3 11:09:47 UTC 2009


Check this script that I use in my openSUSE build system to extract the
debug information.

Cheers

Fridrich

On Tue, 2009-06-02 at 23:14 +0200, Erik van Pienbroek wrote:
> Op dinsdag 02-06-2009 om 16:51 uur [tijdzone -0400], schreef Adam Goode:
> > Hi,
> > 
> > I am looking at the comtents of
> > /usr/i686-pc-mingw32/sys-root/mingw/bin/ with i686-pc-mingw32-nm. There
> > are a lot of symbols there!
> > 
> > Shouldn't these all be stripped? Is there a bug in the search script?
> > 
> > 
> > 
> > Thanks,
> > 
> > Adam
> 
> Hi Adam,
> 
> Your observation is correct. The .DLL's we ship contain debug symbols.
> Only the static libraries (.a files) are stripped.
> 
> A while ago I looked for a way to strip out the debug symbols and
> collect them in a -debuginfo package (like the regular Fedora packages),
> but it requires modification to some RPM files (scripts and tools).
> 
> The script /usr/lib/rpm/find-debuginfo.sh is one of those scripts which
> needs adjustment. From the looks of it, three files are created:
> debugfiles.list, debugsources.list and debuglinks.list. It isn't clear
> what the contents of those files 'should' be.
> 
> Next to this, also some RPM tools are called to extract the debug
> information like /usr/lib/rpm/debugedit and /usr/bin/eu_strip
> (elfutils). The debugedit tool is written in C and makes intensive use
> of binutils. As the use of binutils is a bit too low-level for me, I
> gave up trying to extract debug information from our MinGW DLL's...
> 
> Maybe this information can be of use to somebody else.
> 
> Regards,
> 
> Erik van Pienbroek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw32-find-debuginfo.sh
Type: application/x-shellscript
Size: 942 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/mingw/attachments/20090603/d9accdf8/attachment.bin 


More information about the mingw mailing list