1. 编译出错
undefined reference to `__stack_chk_guard'
undefined reference to `__stack_chk_fail'
解决方法-1:添加libssp库
libssp 包含支持GCC堆栈保护函数的程序
解决方法-2 : disable gcc 编译参数 -fstack-protector-all(启用堆栈保护), 将编译配置的-fstack-protector-all 改为 -fno-stack-protector(禁用堆栈保护)
顺便记一下:openwrt 选译libssp库
make menuconfig --->Toolchain Options->Enable Stack-Smashing Protection support
退回主菜单--->Base system-->libssp
重新编译工程即可生成libssp.so*