<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 20 July 2017 at 10:52,  <span dir="ltr">&lt;<a href="mailto:liu.ming50@gmail.com" target="_blank">liu.ming50@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":8o" class="a3s aXjCH m15d5f6a8764308b2">+++ b/meta/classes/bfd-binding-<wbr>now.bbclass<br>
@@ -0,0 +1,4 @@<br>
+# Workaround for some ARCHs do not support bfd lazy binding well<br>
+# Refer to: <a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=11679" rel="noreferrer" target="_blank">https://bugzilla.yoctoproject.<wbr>org/show_bug.cgi?id=11679</a><br>
+<br>
+TARGET_LDFLAGS_append = &quot;${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;ld-is-gold&#39;, &#39; -Wl,-z,relro,-z,now -fuse-ld=bfd &#39;, &#39;&#39;, d)}&quot;<br></div></blockquote></div><br>This is pretty ugly.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Does this tell us that maybe gold should be considered opt-in on a per-recipe basis instead of used by default?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Can you instead have a .inc file which fiddles the flag for all the recipes from outside the recipes? See eg security_flags.inc.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>