gcc手册

源代码在线查看: symbol-value.html

软件大小: 1194 K
上传用户: Erlin
关键词: gcc
下载地址: 免注册下载 普通下载 VIP

相关代码

				

				

				Using as

				

				

				

				

				

				

				

				

				Node:Symbol Value,

				Next:Symbol Type,

				Up:Symbol Attributes

				

				

				

				Value

				

				   The value of a symbol is (usually) 32 bits.  For a symbol which labels a

				location in the text, data, bss or absolute sections the value is the

				number of addresses from the start of that section to the label. 

				Naturally for text, data and bss sections the value of a symbol changes

				as ld changes section base addresses during linking.  Absolute

				symbols' values do not change during linking: that is why they are

				called absolute.

				

				   The value of an undefined symbol is treated in a special way.  If it is

				0 then the symbol is not defined in this assembler source file, and

				ld tries to determine its value from other files linked into the

				same program.  You make this kind of symbol simply by mentioning a symbol

				name without defining it.  A non-zero value represents a .comm

				common declaration.  The value is how much common storage to reserve, in

				bytes (addresses).  The symbol refers to the first address of the

				allocated storage.

				

				   

				

							

相关资源