|
发表于 2016-3-20 16:54:02
|
显示全部楼层
经过几天的研究,我来给出权威的解答吧,答案就在keil的帮助文档中:
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” |
|