4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"STABS">
6 <meta name=
"generator" content=
"makeinfo 4.3">
7 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home">
12 Node:
<a name=
"Transformations%20On%20Static%20Variables">Transformations On Static Variables
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"Transformations-On-Global-Variables.html#Transformations%20On%20Global%20Variables">Transformations On Global Variables
</a>,
14 Up:
<a rel=
"up" accesskey=
"u" href=
"Transformations-On-Symbol-Tables.html#Transformations%20On%20Symbol%20Tables">Transformations On Symbol Tables
</a>
18 <h4 class=
"subsection">Transformations on Static Variables
</h4>
20 <p>This source line defines a static variable at file scope:
22 <pre class=
"example"> static int s_g_repeat
25 <p>The following stab describes the symbol:
27 <pre class=
"example"> .stabs
"s_g_repeat:S1",
38,
0,
0,_s_g_repeat
30 <p>The assembler transforms the stab into this symbol table entry in the
31 <code>.o
</code> file. The location is expressed as a data segment offset.
33 <pre class=
"example"> 00000084 -
00 0000 STSYM s_g_repeat:S1
36 <p>In the symbol table entry from the executable, the linker has made the
37 relocatable address absolute.
39 <pre class=
"example"> 0000e00c -
00 0000 STSYM s_g_repeat:S1