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:
2
env.sh
2
env.sh
@@ -38,7 +38,7 @@ _env_register() {
|
|||||||
|
|
||||||
# Флаги тулчейна
|
# Флаги тулчейна
|
||||||
CFLAGS_TOOLSET='-O2'
|
CFLAGS_TOOLSET='-O2'
|
||||||
CFLAGS_TARGET='-Os -mthumb'
|
CFLAGS_TARGET='-Os -mthumb -fno-stack-protector'
|
||||||
CXXFLAGS_TARGET=$CFLAGS_TARGET
|
CXXFLAGS_TARGET=$CFLAGS_TARGET
|
||||||
LDFLAGS_TARGET='-Wl,--fdpic'
|
LDFLAGS_TARGET='-Wl,--fdpic'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user