Back to index

cell-binutils  2.17cvs20070401
sh2.c
Go to the documentation of this file.
00001 /* This is part of the shared library ld test.  This file becomes part
00002    of a shared library.  */
00003 
00004 /* This variable is defined here, and referenced by another file in
00005    the shared library.  */
00006 int shlibvar2 = 4;
00007 
00008 /* This variable is defined here, and shouldn't be used to resolve a
00009    reference with non-default visibility in another shared library.  */
00010 int visibility_com = 2;
00011 
00012 /* This function is called by another file in the shared library.  */
00013 
00014 int
00015 shlib_shlibcalled ()
00016 {
00017   return 5;
00018 }
00019 
00020 #ifdef DSO_DEFINE_TEST
00021 int
00022 visibility ()
00023 {
00024   return 2;
00025 }
00026 
00027 int visibility_var = 2;
00028 
00029 int visibility_def = 2;
00030 
00031 int
00032 visibility_func ()
00033 {
00034   return 2;
00035 }
00036 #endif
00037 
00038 #ifdef HIDDEN_WEAK_TEST
00039 int visibility_var_weak = 2;
00040 
00041 int
00042 visibility_func_weak ()
00043 {
00044   return 2;
00045 }
00046 #endif
00047 
00048 #ifndef SHARED
00049 # ifndef XCOFF_TEST
00050 int overriddenvar = -1;
00051 
00052 int
00053 shlib_overriddencall2 ()
00054 {
00055   return 7;
00056 }
00057 # endif
00058 # ifdef PROTECTED_TEST
00059 int shared_data = 100;
00060 # endif
00061 #endif