Change in ...meta-telephony[201705]: libosmocore: Disable TLS workaround to avoid ld crash

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Aug 9 10:42:36 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/meta-telephony/+/15146


Change subject: libosmocore: Disable TLS workaround to avoid ld crash
......................................................................

libosmocore: Disable TLS workaround to avoid ld crash

Change-Id: I8d2bfa7ed44d1d2a7fb024ac49bc81cdbf38675d
---
M recipes-osmocom/libosmocore/libosmocore_git.bb
1 file changed, 12 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/meta-telephony refs/changes/46/15146/1

diff --git a/recipes-osmocom/libosmocore/libosmocore_git.bb b/recipes-osmocom/libosmocore/libosmocore_git.bb
index 06e9796..3a417f0 100644
--- a/recipes-osmocom/libosmocore/libosmocore_git.bb
+++ b/recipes-osmocom/libosmocore/libosmocore_git.bb
@@ -24,3 +24,15 @@
 RREPLACES_libosmovty = "DONOTREPLACElibosmocore"
 
 EXTRA_OECONF += "--disable-pcsc"
+
+# OS#4062: Some gcc version (< 7.3.0) on ARM generate wrong code for __thread
+# variables that crash at runtime. It seems, due to some unknown reason, that we
+# are not affected by this bug with toolchain from poky pyro (6.4.0). However,
+# libosmocore as of e188b8cd98f599468fbb200c7d590de955daf761 applies some
+# CFLAGS="-mtls-dialect=gnu2" to workaround the issue automatically. But same
+# toolchain contains an "ld" that crashes when those flags are applied.
+# Fortunately, libosmocore provides a way to disable the workaround, and since
+# we are not affected by the bug, we are fine with that. If the toolchain had
+# the TLS runtime bug, then we'd had to build with -O0. Can be probably dropped
+# once we move to newer toolchain.
+EXTRA_OECONF +=  "--disable-detect-tls-gcc-arm-bug"

-- 
To view, visit https://gerrit.osmocom.org/c/meta-telephony/+/15146
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: meta-telephony
Gerrit-Branch: 201705
Gerrit-Change-Id: I8d2bfa7ed44d1d2a7fb024ac49bc81cdbf38675d
Gerrit-Change-Number: 15146
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190809/cb6cfd01/attachment.htm>


More information about the gerrit-log mailing list