Node:Transformations On Static Variables, Next:, Up:Transformations On Symbol Tables



Transformations on Static Variables

This source line defines a static variable at file scope:

     static int s_g_repeat
     

The following stab describes the symbol:

     .stabs "s_g_repeat:S1",38,0,0,_s_g_repeat
     

The assembler transforms the stab into this symbol table entry in the .o file. The location is expressed as a data segment offset.

     00000084 - 00 0000 STSYM s_g_repeat:S1
     

In the symbol table entry from the executable, the linker has made the relocatable address absolute.

     0000e00c - 00 0000 STSYM s_g_repeat:S1