-//////////////////////////////////////////////////////////////////////
-//
-// LOAD_STATIC_WORD targetReg, symbolName, LOCAL_SYMBOL | EXTERNAL_SYMBOL
-//
-// Load the value of the named static data word.
-//
-// Takes: targetReg - the register, other than r0, to load
-// symbolName - the name of the symbol
-// LOCAL_SYMBOL - symbol name used as-is
-// EXTERNAL_SYMBOL - symbol name gets nonlazy treatment
-//
-// Eats: edx and targetReg
-//////////////////////////////////////////////////////////////////////
-
-// Values to specify whether the symbol is plain or nonlazy
-LOCAL_SYMBOL = 0
-EXTERNAL_SYMBOL = 1
-
-.macro LOAD_STATIC_WORD
-
-#if defined(__DYNAMIC__)
- call 1f
-1: popl %edx
-.if $2 == EXTERNAL_SYMBOL
- movl L$1-1b(%edx),$0
- movl 0($0),$0
-.elseif $2 == LOCAL_SYMBOL
- movl $1-1b(%edx),$0
-.else
- !!! Unknown symbol type !!!
-.endif
-#else
- movl $1,$0
-#endif
-
-.endmacro
-
-//////////////////////////////////////////////////////////////////////
-//
-// LEA_STATIC_DATA targetReg, symbolName, LOCAL_SYMBOL | EXTERNAL_SYMBOL
-//
-// Load the address of the named static data.
-//
-// Takes: targetReg - the register, other than edx, to load
-// symbolName - the name of the symbol
-// LOCAL_SYMBOL - symbol is local to this module
-// EXTERNAL_SYMBOL - symbol is imported from another module
-//
-// Eats: edx and targetReg
-//////////////////////////////////////////////////////////////////////
-
-.macro LEA_STATIC_DATA
-#if defined(__DYNAMIC__)
- call 1f
-1: popl %edx
-.if $2 == EXTERNAL_SYMBOL
- movl L$1-1b(%edx),$0
-.elseif $2 == LOCAL_SYMBOL
- leal $1-1b(%edx),$0
-.else
- !!! Unknown symbol type !!!
-.endif
-#else
- leal $1,$0
-#endif
-
-.endmacro
-