- 论坛徽章:
- 0
|
回复 #4 koolcoy 的帖子
-Map,stm32test.map
这个是我在man中查到的-Map参数的含义:
- -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.
复制代码
这样说来,map文件是连接器生成的文件,应该不是用于控制连接过程的。 |
|