⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 symbol-value.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>Using as</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Using as">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="Symbol%20Value">Symbol Value</a>,

Next:<a rel="next" accesskey="n" href="Symbol-Type.html#Symbol%20Type">Symbol Type</a>,

Up:<a rel="up" accesskey="u" href="Symbol-Attributes.html#Symbol%20Attributes">Symbol Attributes</a>

<hr><br>

</div>



<h4 class="subsection">Value</h4>



   <p>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 <code>ld</code> changes section base addresses during linking.  Absolute

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

called absolute.



   <p>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

<code>ld</code> 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 <code>.comm</code>

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.



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -