Change in ...meta-telephony: libosmocore: Disable TLS workaround to avoid ld crash
gerrit-no-reply at lists.osmocom.org
Sun Aug 11 12:10:45 UTC 2019
laforge has submitted this change and it was merged. ( 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
1 file changed, 12 insertions(+), 0 deletions(-)
laforge: Looks good to me, approved
diff --git a/recipes-osmocom/libosmocore/libosmocore_git.bb b/recipes-osmocom/libosmocore/libosmocore_git.bb
index 06e9796..3a417f0 100644
@@ -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-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gerrit-log