Skip to content
Snippets Groups Projects
Commit d19a715e authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

sysota: disable shared linking


Shared linking has caused some problems on x86, where sysotactl would
crash on an apparently-stray pointer. This looks like a compiler bug.

Shared linking mode causes Go's standard library to be built into a
large .so file and all applications link to that with the dynamic
linker.

Given that sysota is the only Go application in our image and that is
has only one binary, this does not bring meaningful savings. In fact,
without shared linking, the overall image size is smaller as unused
parts of Go stdlib are removed.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent 8b00ce84
No related branches found
No related tags found
1 merge request!50many: enable sysota for QEMU x86{,-64}
......@@ -12,6 +12,14 @@ SRC_URI = "git://gitlab.com/zygoon/sysota.git;protocol=https;branch=main \
SRCREV = "6aec6e345e7c7f6d94932acbebeada32fde33162"
S = "${WORKDIR}/git"
# Disable linking to shared Go stdlib.
# This fixes a crash when using Go 1.17 on x86.
# https://gitlab.eclipse.org/eclipse/oniro-core/sysota/-/issues/7
GO_DYNLINK:x86 = ""
GO_DYNLINK:x86-64 = ""
GO_DYNLINK:arm = ""
GO_DYNLINK:aarch64 = ""
# This package is built with go-mod as well as with make.
#
# The go-mod build is done in the ${B} directory but is not sufficient for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment