<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 7, 2014 at 3:32 PM, Saied Kazemi <span dir="ltr"><<a href="mailto:saied@google.com" target="_blank">saied@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>cat 0001-Fix-pie.lds.S.in-script-to-work-with-the-gold-linker.patch</div><div>From e65747b94f52acdf422ae6f3f2c4d9d383665f2d Mon Sep 17 00:00:00 2001</div>
<div>From: Saied Kazemi <<a href="mailto:saied@google.com" target="_blank">saied@google.com</a>></div>
<div>Date: Fri, 7 Mar 2014 14:49:00 -0800</div><div>Subject: [PATCH] Fix <a href="http://pie.lds.S.in" target="_blank">pie.lds.S.in</a> script to work with the gold linker</div><div><br></div><div>The <a href="http://pie.lds.S.in" target="_blank">pie.lds.S.in</a> needs two minor changes to work with the gold</div>
<div>(/usr/bin/gold) linker. These changes are compatible with /usr/bin/ld</div><div>and make linker script more portable.</div><div><br></div><div>The first change is adding a comma before /DISCARD/ so that the grammar</div>
<div>won't be ambiguous. Otherwise, gold treats it as a part of the assignment</div><div>and would generate a syntax error about the "unexpected ':'".</div><div><br></div><div>The second change is moving initialization of __export_parasite_args</div>
<div>to inside the SECTIONS command because it references the dot symbol.</div><div>Otherwise, gold would generate the error "invalid reference to dot symbol</div><div>outside of SECTIONS clause."</div><div><br>
</div><div>Signed-off-by: Saied Kazemi <<a href="mailto:saied@google.com" target="_blank">saied@google.com</a>></div><div>---</div><div> pie/<a href="http://pie.lds.S.in" target="_blank">pie.lds.S.in</a> | 6 +++---</div>
<div> 1 file changed, 3 insertions(+), 3 deletions(-)</div>
<div><br></div><div>diff --git a/pie/<a href="http://pie.lds.S.in" target="_blank">pie.lds.S.in</a> b/pie/<a href="http://pie.lds.S.in" target="_blank">pie.lds.S.in</a></div><div>index cbdfaa9..97e6c41 100644</div><div>--- a/pie/<a href="http://pie.lds.S.in" target="_blank">pie.lds.S.in</a></div>
<div>+++ b/pie/<a href="http://pie.lds.S.in" target="_blank">pie.lds.S.in</a></div><div>@@ -12,7 +12,7 @@ SECTIONS</div><div> <span style="white-space:pre-wrap">                </span>. = ALIGN(32);</div><div> <span style="white-space:pre-wrap">                </span>*(.got*)</div>
<div> <span style="white-space:pre-wrap">                </span>. = ALIGN(32);</div><div>-<span style="white-space:pre-wrap">        </span>} =0x00000000</div><div>+<span style="white-space:pre-wrap">        </span>} =0x00000000,</div><div>
</div><div> <span style="white-space:pre-wrap">        </span>/DISCARD/ : {</div><div> <span style="white-space:pre-wrap">                </span>*(.debug*)</div><div>@@ -22,6 +22,6 @@ SECTIONS</div><div> <span style="white-space:pre-wrap">                </span>*(.eh_frame*)</div>
<div> <span style="white-space:pre-wrap">                </span>*(*)</div><div> <span style="white-space:pre-wrap">        </span>}</div><div>-}</div><div> </div><div>-__export_parasite_args = .;</div><div>+<span style="white-space:pre-wrap">        </span>__export_parasite_args = .;</div>
<div>+}</div><span class="HOEnZb"><font color="#888888"><div>-- </div><div>1.9.0.279.gdc9e3eb</div><div><br></div></font></span></div>
<br>_______________________________________________<br>
CRIU mailing list<br>
<a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/criu" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
<br></blockquote></div><br></div>