bfd/
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elfvsb / sh2.c
CommitLineData
6fc49d28
L
1/* This is part of the shared library ld test. This file becomes part
2 of a shared library. */
3
4/* This variable is defined here, and referenced by another file in
5 the shared library. */
6int shlibvar2 = 4;
7
1b1fe8fe
L
8/* This variable is defined here, and shouldn't be used to resolve a
9 reference with non-default visibility in another shared library. */
10int visibility_com = 2;
11
6fc49d28
L
12/* This function is called by another file in the shared library. */
13
14int
15shlib_shlibcalled ()
16{
17 return 5;
18}
7cda33a1
L
19
20#ifdef DSO_DEFINE_TEST
21int
22visibility ()
23{
24 return 2;
25}
26
27int visibility_var = 2;
1b1fe8fe
L
28
29int visibility_def = 2;
30
31int
32visibility_func ()
33{
34 return 2;
35}
36#endif
37
38#ifdef HIDDEN_WEAK_TEST
39int visibility_var_weak = 2;
40
41int
42visibility_func_weak ()
43{
44 return 2;
45}
7cda33a1 46#endif
This page took 0.191568 seconds and 4 git commands to generate.