By default, the linker places input sections in a specific order within an execution region.
The sections are placed in the following order:
1、By attribute as follows:
a.Read-only code.
b.Read-only data.
c.Read-write code.
d.Read-write data.
e.Zero-initialized data.
2、By input section name if they have the same attributes. Names are considered to be case-sensitive and are compared in alphabetical order using the ASCII collation sequence for characters.
3、By a tie-breaker if they have the same attributes and section names. By default, it is the order that armlink processes the section. You can override this with the FIRST or LAST execution region attribute.
关键在于第2项“By input section name” 学习一下,精华帖,还没怎么看懂 受益了,谢谢大侠们 我也遇到stack过小而出问题 后排围观大神讨论 进来学习,谢谢分享 不错,学习了 老帖有新意,敬佩 分析的精彩 学习了!!!!! 不错,这些一般都是没有人去关注的东西,讲得好! 以前没注意到这个问题,学习了
页:
1
[2]