Disable stack protector for target CFLAGS

Stack protector on ARM reads the canary via TLS (__aeabi_read_tp), which
is unavailable since the toolchain is built with --disable-tls and uClibc
runs on uClinux without TLS support. This caused linker errors in d3des.c.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-18 11:42:38 +03:00
parent a0b70bd271
commit 39ea36dfc2

2
env.sh
View File

@@ -38,7 +38,7 @@ _env_register() {
# Флаги тулчейна
CFLAGS_TOOLSET='-O2'
CFLAGS_TARGET='-Os -mthumb'
CFLAGS_TARGET='-Os -mthumb -fno-stack-protector'
CXXFLAGS_TARGET=$CFLAGS_TARGET
LDFLAGS_TARGET='-Wl,--fdpic'