<p>laforge <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/meta-telephony/+/15146">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  pespin: Verified
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">libosmocore: Disable TLS workaround to avoid ld crash<br><br>Change-Id: I8d2bfa7ed44d1d2a7fb024ac49bc81cdbf38675d<br>---<br>M recipes-osmocom/libosmocore/libosmocore_git.bb<br>1 file changed, 12 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/recipes-osmocom/libosmocore/libosmocore_git.bb b/recipes-osmocom/libosmocore/libosmocore_git.bb</span><br><span>index 06e9796..3a417f0 100644</span><br><span>--- a/recipes-osmocom/libosmocore/libosmocore_git.bb</span><br><span>+++ b/recipes-osmocom/libosmocore/libosmocore_git.bb</span><br><span>@@ -24,3 +24,15 @@</span><br><span> RREPLACES_libosmovty = "DONOTREPLACElibosmocore"</span><br><span> </span><br><span> EXTRA_OECONF += "--disable-pcsc"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# OS#4062: Some gcc version (< 7.3.0) on ARM generate wrong code for __thread</span><br><span style="color: hsl(120, 100%, 40%);">+# variables that crash at runtime. It seems, due to some unknown reason, that we</span><br><span style="color: hsl(120, 100%, 40%);">+# are not affected by this bug with toolchain from poky pyro (6.4.0). However,</span><br><span style="color: hsl(120, 100%, 40%);">+# libosmocore as of e188b8cd98f599468fbb200c7d590de955daf761 applies some</span><br><span style="color: hsl(120, 100%, 40%);">+# CFLAGS="-mtls-dialect=gnu2" to workaround the issue automatically. But same</span><br><span style="color: hsl(120, 100%, 40%);">+# toolchain contains an "ld" that crashes when those flags are applied.</span><br><span style="color: hsl(120, 100%, 40%);">+# Fortunately, libosmocore provides a way to disable the workaround, and since</span><br><span style="color: hsl(120, 100%, 40%);">+# we are not affected by the bug, we are fine with that. If the toolchain had</span><br><span style="color: hsl(120, 100%, 40%);">+# the TLS runtime bug, then we'd had to build with -O0. Can be probably dropped</span><br><span style="color: hsl(120, 100%, 40%);">+# once we move to newer toolchain.</span><br><span style="color: hsl(120, 100%, 40%);">+EXTRA_OECONF +=  "--disable-detect-tls-gcc-arm-bug"</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/meta-telephony/+/15146">change 15146</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/meta-telephony/+/15146"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: meta-telephony </div>
<div style="display:none"> Gerrit-Branch: 201705 </div>
<div style="display:none"> Gerrit-Change-Id: I8d2bfa7ed44d1d2a7fb024ac49bc81cdbf38675d </div>
<div style="display:none"> Gerrit-Change-Number: 15146 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>