Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / stabs / Transformations-On-Static-Variables.html
blob7639dfdc2a3ae99e6b80f7dc043e554b39afe44f
1 <html lang="en">
2 <head>
3 <title>STABS</title>
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">
8 </head>
9 <body>
10 <div class="node">
11 <p>
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>
15 <hr><br>
16 </div>
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
23 </pre>
25 <p>The following stab describes the symbol:
27 <pre class="example"> .stabs "s_g_repeat:S1",38,0,0,_s_g_repeat
28 </pre>
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
34 </pre>
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
40 </pre>
42 </body></html>