2009-05-20 06:14:17 +08:00
|
|
|
void lib1_default (void);
|
|
|
|
void lib1_hidden (void);
|
|
|
|
void lib1_internal (void);
|
|
|
|
void lib1_protected (void);
|
2009-12-31 09:14:34 +08:00
|
|
|
void lib1_ref (void);
|
|
|
|
extern void lib2_default (void);
|
2009-05-20 06:14:17 +08:00
|
|
|
|
|
|
|
void __attribute__((visibility ("default")))
|
|
|
|
lib1_default (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void __attribute__((visibility ("hidden")))
|
|
|
|
lib1_hidden (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void __attribute__((visibility ("internal")))
|
|
|
|
lib1_internal (void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void __attribute__((visibility ("protected")))
|
|
|
|
lib1_protected (void)
|
|
|
|
{
|
|
|
|
}
|
2009-12-31 09:14:34 +08:00
|
|
|
|
|
|
|
void
|
|
|
|
lib1_ref (void)
|
|
|
|
{
|
|
|
|
lib2_default ();
|
|
|
|
}
|