- 論壇徽章:
- 0
|
回復(fù) #4 koolcoy 的帖子
-Map,stm32test.map
這個(gè)是我在man中查到的-Map參數(shù)的含義:
- -M
- --print-map
- Print a link map to the standard output. A link map provides information about the link, including the following:
- * Where object files are mapped into memory.
- * How common symbols are allocated.
- * All archive members included in the link, with a mention of the symbol which caused the archive member to be brought in.
- * The values assigned to symbols.
- Note - symbols whose values are computed by an expression which involves a reference to a previous value of the same symbol
- may not have correct result displayed in the link map. This is because the linker discards intermediate results and only
- retains the final value of an expression. Under such circumstances the linker will display the final value enclosed by square
- brackets. Thus for example a linker script containing:
- foo = 1
- foo = foo * 4
- foo = foo + 8
- will produce the following output in the link map if the -M option is used:
- 0x00000001 foo = 0x1
- [0x0000000c] foo = (foo * 0x4)
- [0x0000000c] foo = (foo + 0x8)
- See Expressions for more information about expressions in linker scripts.
- -Map mapfile
- Print a link map to the file mapfile. See the description of the -M option, above.
復(fù)制代碼
這樣說來,map文件是連接器生成的文件,應(yīng)該不是用于控制連接過程的。 |
|