Next: Transformations on Global Variables, Up: Transformations on Symbol Tables [Contents][Index]

#### 7.2.1 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