111
|
1 #include "20081222_0.h"
|
|
2
|
|
3 #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
|
|
4 #define ASMNAME2(prefix, cname) STRING (prefix) cname
|
|
5 #define STRING(x) #x
|
|
6
|
|
7 /* Actually, call "x" "INT_X", and make it hidden. */
|
|
8 extern __typeof (x) x
|
|
9 __asm__ (ASMNAME ("INT_x"))
|
|
10 __attribute__ ((__visibility__ ("hidden")));
|
|
11
|
|
12 int x ()
|
|
13 {
|
|
14 return 7;
|
|
15 }
|
|
16
|
|
17 /* Make an externally-visible symbol "X" that's an alias for INT_x. */
|
|
18 extern __typeof (x) EXT_x
|
|
19 __asm__ (ASMNAME ("x"))
|
|
20 __attribute__ ((__alias__ ("INT_x")));
|