举个例子:
在CMD文件中如下配置
SECTIONS
{
init : load > mem
const :load > mem
text:load > mem
data:load > mem
bss:load > mem
.......
}
但是编译后,map文件中,const段却在bss段后面,也就是说链接顺序并没有按照CMD中的顺序,我不希望指定地址来指定链接顺序,有什么方法能够解决我的问题不
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
举个例子:
在CMD文件中如下配置
SECTIONS
{
init : load > mem
const :load > mem
text:load > mem
data:load > mem
bss:load > mem
.......
}
但是编译后,map文件中,const段却在bss段后面,也就是说链接顺序并没有按照CMD中的顺序,我不希望指定地址来指定链接顺序,有什么方法能够解决我的问题不
谢谢!