man-pages/man1/dh_dwz.1.html
2021-03-31 01:06:50 +01:00

142 lines
4.3 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DH_DWZ</TITLE>
</HEAD><BODY>
<H1>DH_DWZ</H1>
Section: Debhelper (1)<BR>Updated: 2020-03-27<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
dh_dwz - optimize DWARF debug information in ELF binaries via dwz
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>dh_dwz</B> [<I>debhelper options</I>] [<B>-X</B><I>item</I>] [<B>--</B> <I>params</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>dh_dwz</B> is a debhelper program that will optimize the (uncompressed)
size of the <FONT SIZE="-1">DWARF</FONT> debug information in <FONT SIZE="-1">ELF</FONT> binaries. It does so by
running <B><A HREF="/cgi-bin/man/man2html?1+dwz">dwz</A></B>(1) on all the <FONT SIZE="-1">ELF</FONT> binaries in the package.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>--dwz-multifile</B>, <B>--no-dwz-multifile</B><DD>
Whether <B><A HREF="/cgi-bin/man/man2html?1+dwz">dwz</A></B>(1) should generate a <I>multifile</I> from the <FONT SIZE="-1">ELF</FONT> binaries
in the same package. When enabled, if a package ships at least 2 <FONT SIZE="-1">ELF</FONT>
binaries, <B>dh_dwz</B> will instruct <B><A HREF="/cgi-bin/man/man2html?1+dwz">dwz</A></B>(1) to generate a multifile
for the package.
<P>
By default, <B>dh_dwz</B> will attempt to create a multifile but will
continue without if <B><A HREF="/cgi-bin/man/man2html?1+dwz">dwz</A></B>(1) does not create one (but succeeds anyway).
This commonly happens when the debug files do not contain debug
symbols (e.g. a missing -g to the compiler) or when the debug
symbols are compressed (see Debian bug #931891). If <B>--dwz-multifile</B>
is passed, then <B>dh_dwz</B> will abort with an error if <B><A HREF="/cgi-bin/man/man2html?1+dwz">dwz</A></B>(1) does
not create a multifile.
<P>
Note this options may not work if a package contains more <FONT SIZE="-1">ELF</FONT> binaries
than can fit on a single command line. If this becomes a problem,
please pass <B>--no-dwz-multifile</B> to work around the issue.
<P>
The generated multifile will be compressed with <B>objcopy
--compress-debug-sections</B>.
<P>
Note for <B>udeb</B> packages: <B>dh_dwz</B> will never generate multifiles
for <B>udeb</B> packages. It will still use <B>dwz</B> to reduce the
file size of debug files if it finds any.
<DT id="2"><B>-X</B><I>item</I>, <B>--exclude=</B><I>item</I><DD>
Exclude files that contain <I>item</I> anywhere in their filename from being
stripped. You may use this option multiple times to build up a list of
things to exclude.
<DT id="3"><B>--</B> <I>params</I><DD>
Pass <I>params</I> to <B><A HREF="/cgi-bin/man/man2html?1+dwz">dwz</A></B>(1) when it processes <FONT SIZE="-1">ELF</FONT> binaries. This is
mostly useful for setting memory related parameters (e.g. -l and -L).
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>NOTES</H2>
If the <B></B><FONT SIZE="-1"><B>DEB_BUILD_OPTIONS</B></FONT><B></B> environment variable contains <B>nostrip</B>,
nothing will be stripped, in accordance with Debian policy (section
10.1 ``Binaries'').
<P>
While this tool technically does not remove debug information from
binaries, it is still skipped when the <B></B><FONT SIZE="-1"><B>DEB_BUILD_OPTIONS</B></FONT><B></B>
environment variable contains <B>nostrip</B>. This is because <B>nostrip</B>
is often used to optimize build times (e.g. for ``build and
test''-cycles) rather than optimizing for size.
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?7+debhelper">debhelper</A></B>(7)
<P>
This program is a part of debhelper.
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
Niels Thykier &lt;<A HREF="mailto:niels@thykier.net">niels@thykier.net</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="7"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="8"><A HREF="#lbAF">NOTES</A><DD>
<DT id="9"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="10"><A HREF="#lbAH">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:10 GMT, March 31, 2021
</BODY>
</HTML>