手機 - Motorola XT897 - Sailfish OS 4.4.0.68 - Debian 12 - 解決Undefined reference to __stack_chk_guard問題



問題如下:

mipsel-linux-ld: SFont.c:(.text+0x3ec): undefined reference to `__stack_chk_guard'
mipsel-linux-ld: SFont.c:(.text+0x594): undefined reference to `__stack_chk_guard'
mipsel-linux-ld: SFont.c:(.text+0x5cc): undefined reference to `__stack_chk_fail'

解法如下:

CFLAGS += -fno-stack-protector