<div class="gmail_quote">On Thu, May 26, 2011 at 4:56 PM, Mark Wielaard <span dir="ltr">&lt;<a href="mailto:mjw@redhat.com">mjw@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Thu, 2011-05-26 at 16:39 +0200, devzero2000 wrote:<br>
&gt; On Wed, May 25, 2011 at 11:36 PM, Mark Wielaard &lt;<a href="mailto:mjw@redhat.com">mjw@redhat.com</a>&gt; wrote:<br>
</div><div class="im">&gt; &gt; The attached patch adds an -r argument flag to find-debuginfo. When that<br>
&gt; &gt; flag is given then find-debuginfo will invoke eu-strip with<br>
&gt; &gt; --reloc-debug-sections. This is a new option to eu-strip that strips<br>
&gt; &gt; out/resolves relocations between .debug_* elf sections in ET_REL files.<br>
&gt; &gt; This can save a lot of space for kernel module. For example rebuilding<br>
&gt; &gt; kernel-debuginfo-2.6.35.13-91.fc14.x86_64 showed a nice reduction in<br>
&gt; &gt; size when using find-debuginfo -r with a new eu-strip from elfutils was<br>
&gt; &gt; installed.<br>
&gt; &gt; Before: Compressed: 238 M Expanded: 1381 M<br>
&gt; &gt; After : Compressed: 207 M Expanded: 908 M<br>
&gt; &gt;<br>
</div><div class="im">&gt; I was noticed, at least on Fedora, that this option leads to a reduction of<br>
&gt; the size of many shared lib or binary of 40% . There would be<br>
&gt; drawbacks to enable it in every package if it is supported by elfutils ?<br>
<br>
</div>The option does nothing for shared library (ET_DYN) or executable<br>
(ET_EXEC) files. It is specific to ET_REL files. Which normally are (.o)<br>
objects files created by the compiler that can be relinked by the linker<br>
with other object files (to create shared libraries or executables). It<br>
just happens that kernel modules (.ko files) are also ET_REL files, and<br>
those .ko files also still contain all the relocations for the .debug_*<br>
elf sections. Since they will never be relinked with other object files<br>
(especially after stripping the debug sections away), it just makes<br>
sense to just apply all relocations to the debug sections to saves<br>
space.<br>
<br>
So it only makes sense to enable this option in the SPEC file for the<br>
kernel modules. It should be harmless when enabled for other packages.<br></blockquote><div><span id="result_box" class="" lang="en"><span title="Fai clic per visualizzare le traduzioni alternative" class="hps">I</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">had</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">thought the</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">same</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">thing,</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps"></span><span class="" title="Fai clic per visualizzare le traduzioni alternative">but initially i have done some experiment<br>
</span></span><span id="result_box" class="" lang="en"><span title="Fai clic per visualizzare le traduzioni alternative" class="hps">and </span><span title="Fai clic per visualizzare le traduzioni alternative" class="hps">with</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">some</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">big </span><span title="Fai clic per visualizzare le traduzioni alternative" class="hps">shared</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">lib</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">I</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">had</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">a</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">great</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">reduction</span><span class="" title="Fai clic per visualizzare le traduzioni alternative">, strangely enough. </span><span title="Fai clic per visualizzare le traduzioni alternative" class="hps">But</span> i have given  now a better look and <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">control</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">is not</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">always</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">so, and with some executable i have also some expansion :=)</span><span title="Fai clic per visualizzare le traduzioni alternative" class="hps atn"></span><span title="Fai clic per visualizzare le traduzioni alternative">.</span> I will follow your raccomandation. <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">Thanks</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">for the</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">clarification.</span></span><br>
<span id="result_box" class="" lang="en"><span class="" title="Fai clic per visualizzare le traduzioni alternative"></span><br> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps"></span></span>Best Regards<br>
</div><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Cheers,<br>
<font color="#888888"><br>
Mark<br>
<br>
</font></blockquote></div><br>