<div dir="ltr">On Thu, Jan 2, 2014 at 6:45 AM, Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@britannica.bec.de" target="_blank">joerg@britannica.bec.de</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Dec 27, 2013 at 02:04:10PM -0800, Eric Christopher wrote:<br>
> On Fri, Dec 27, 2013 at 2:01 PM, Joerg Sonnenberger<br>
> <<a href="mailto:joerg@britannica.bec.de">joerg@britannica.bec.de</a>> wrote:<br>
> > On Fri, Dec 27, 2013 at 11:12:40AM -0800, Nico Weber wrote:<br>
> >> Something like the attached patch? (Make-only again, but now including the<br>
> >> linux bits. If folks like it, I can do the cmake part as a followup.)<br>
> ><br>
> > Does it get applied for shared libraries? I don't think it makes sense<br>
> > in that situation.<br>
> ><br>
><br>
> These have export lists etc.<br>
<br>
</div>I mean: building the shared library code with -ffunction-section<br>
-fdata-section is just going to blow up the object files at best and<br>
make the linker slower. It's not really about exporting symbols.<br></blockquote><div><br></div><div>Much of the code (llvm core libs, clang core libs) is shared by many of the tools (libclang, clang, clang-format, opt, etc). Since most of the tools want stripping, the shared code needs to be built with these flags (or be compiled twice for the different libs). Do you have measurements showing that linking got slower for the targets you care about?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Joerg<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>