mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
7cda33a15e
* lib/ld-lib.exp (default_ld_link): Redirect the linker output to link_output and make it global. * ld-elfvsb/elfvsb.exp (visibility_test): Add "hidden_undef", "hidden_undef_def", "hidden_weak", "protected_undef", "protected_undef_def" and "protected_weak". (visibility_run): Likewise. * ld-elfvsb/main.c: Likewise. * ld-elfvsb/sh1.c: Likewise. * ld-elfvsb/sh2.c: Likewise. * ld-elfvsb/elfvsb.dat: Updated.
25 lines
417 B
C
25 lines
417 B
C
/* This is part of the shared library ld test. This file becomes part
|
|
of a shared library. */
|
|
|
|
/* This variable is defined here, and referenced by another file in
|
|
the shared library. */
|
|
int shlibvar2 = 4;
|
|
|
|
/* This function is called by another file in the shared library. */
|
|
|
|
int
|
|
shlib_shlibcalled ()
|
|
{
|
|
return 5;
|
|
}
|
|
|
|
#ifdef DSO_DEFINE_TEST
|
|
int
|
|
visibility ()
|
|
{
|
|
return 2;
|
|
}
|
|
|
|
int visibility_var = 2;
|
|
#endif
|