Sure, go ahead.<br><br><div>On Thu Jan 02 2014 at 7:03:20 PM, Doug Gilmore <<a href="mailto:Doug.Gilmore@imgtec.com">Doug.Gilmore@imgtec.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 12/27/2013 02:39 PM, Nico Weber wrote:<br>
> Author: nico<br>
> Date: Fri Dec 27 16:38:59 2013<br>
> New Revision: 198087<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=198087&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=198087&view=rev</a><br>
> Log:<br>
> Strip dead code when linking by default with BFD ld (linux, ...) and ld64 (os x).<br>
><br>
> This reduces the size of clang-format from 22 MB to 1.8 MB, diagtool goes from<br>
> 21 MB to 2.8 MB, libclang.so goes from 29 MB to 20 MB, etc.  The size of the<br>
> bin/ folder shrinks from 270 MB to 200 MB.<br>
><br>
> Targets that support plugins and don't already use EXPORTED_SYMBOL_FILE<br>
> (which libclang and libLTO already do) can set NO_DEAD_STRIP to opt out.<br>
> ...<br>
Unfortunately this is causing relocation problems:<br>
<br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=18360" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=18360</a><br>
<br>
Is it OK if we apply the following patch until we resolve the issue at hand?<br>
<br>
Thanks,<br>
<br>
Doug<br>
<br>
diff --git a/Makefile.rules b/Makefile.rules<br>
index 1eeadac..9a42f83 100644<br>
--- a/Makefile.rules<br>
+++ b/Makefile.rules<br>
@@ -611,9 +611,12 @@ endif<br>
 # By default, strip dead symbols at link time<br>
 ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))<br>
 ifneq ($(HOST_OS),Darwin)<br>
+# Disabled for Mips until bug 18360 is resolved.<br>
+ifneq ($(HOST_ARCH),Mips)<br>
   CXX.Flags += -ffunction-sections -fdata-sections<br>
 endif<br>
 endif<br>
+endif<br>
 ifndef NO_DEAD_STRIP<br>
   ifeq ($(HOST_OS),Darwin)<br>
     LD.Flags += -Wl,-dead_strip<br>
<br>
<br>
______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote>