old-cross-binutils/gold/testsuite/exclude_libs_test_1.c
Ian Lance Taylor 1c74fab0d1 PR 10916
* symtab.cc (Symbol_table::add_from_relobj): When not exporting
	symbols from this object, don't change the visibility of an
	undefined symbol.
	* testsuite/exclude_libs_test_1.c (lib1_ref): New function.
2009-12-31 01:14:34 +00:00

32 lines
490 B
C

void lib1_default (void);
void lib1_hidden (void);
void lib1_internal (void);
void lib1_protected (void);
void lib1_ref (void);
extern void lib2_default (void);
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)
{
}
void
lib1_ref (void)
{
lib2_default ();
}