-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cm_backtrace.c:236: undefined reference to `_sstack' #35
Comments
GCC 的链接脚本里要稍微改一下,增加 |
如下所示,我已经在ld文件中添加了: 但是编译时候仍报错: |
我随便找了一个 RT-Thread Stduio 生成 链接脚本 ,你可以参考一下
|
gcc脚本写的千差万别,我这边也是这个问题。cmback的宏定义 然后说堆栈,堆栈各种厂商写的不统一。有的厂商的连接脚本连 例如我的map文件搜索 .stack可以查找到如下内容: .stack 0x00008e80 0x1000 ./build/Debug/startup.o 然后我的连接脚本又是这种的: SECTIONS
} |
请教一下各位,这个问题现在解决了吗? |
使用NXP的S32K144芯片,裸机,gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977] (GNU Tools for ARM Embedded Processors)编译器编译发生以下报错:
cm_backtrace.c:236: undefined reference to
_sstack' cm_backtrace.c:236: undefined reference to
_stext'cm_backtrace.c:236: undefined reference to
_estack' cm_backtrace.c:236: undefined reference to
_etext'请问大佬是什么原因,感谢大佬解答
The text was updated successfully, but these errors were encountered: