Back to index

cell-binutils  2.17cvs20070401
Defines | Functions | Variables
sh1.c File Reference

Go to the source code of this file.

Defines

#define NULL   ((void *) 0)
#define const

Functions

int shlib_mainvar ()
int shlib_overriddenvar ()
int shlib_shlibvar1 ()
int shlib_shlibvar2 ()
int shlib_shlibcalled ()
int shlib_shlibcall ()
int shlib_overriddencall2 ()
int shlib_shlibcall2 ()
int main_called ()
int shlib_maincall ()
int shlib_checkfunptr1 (int(*)() p)
int shlib_checkfunptr2 (int(*)() p)
int shlib_check ()
int visibility ()
int visibility_checkfunptr ()
int visibility_check ()
void * visibility_funptr ()
int visibility_checkvarptr ()
int visibility_checkvar ()
void * visibility_varptr ()
int visibility_varval ()
int shlib_visibility_checkcom ()
int shlib_visibility_checkweak ()

Variables

int mainvar
int overriddenvar
int shlibvar1 = 3
int shlibvar2
int(*)() shlib_getfunptr1 ()
int(*)() shlib_getfunptr2 ()
static int i = 6
static const char * str = "Hello, world\n"
int visibility_var = 2

Define Documentation

#define const

Definition at line 152 of file sh1.c.

#define NULL   ((void *) 0)

Definition at line 2 of file sh1.c.


Function Documentation

Definition at line 140 of file main.c.

{
  return 6;
}

Definition at line 159 of file sh1.c.

{
  const char *s1, *s2;

  if (i != 6)
    return 0;

  /* To isolate the test, don't rely on any external functions, such
     as strcmp.  */
  s1 = "Hello, world\n";
  s2 = str;
  while (*s1 != '\0')
    if (*s1++ != *s2++)
      return 0;
  if (*s2 != '\0')
    return 0;

  if (shlib_shlibvar1 () != 3)
    return 0;

  return 1;
}
int shlib_checkfunptr1 ( int (*) ()  p)

Definition at line 112 of file sh1.c.

{
  return p == shlib_shlibvar1;
}

Here is the call graph for this function:

int shlib_checkfunptr2 ( int (*) ()  p)

Definition at line 123 of file sh1.c.

{
  return p == main_called;
}

Here is the call graph for this function:

Definition at line 102 of file sh1.c.

{
  return main_called ();
}

Definition at line 38 of file sh1.c.

{
  return mainvar;
}

Definition at line 148 of file main.c.

{
  return 8;
}

Here is the caller graph for this function:

Definition at line 46 of file sh1.c.

{
  return overriddenvar;
}

Definition at line 70 of file sh1.c.

{
  return shlib_shlibcalled ();
}

Definition at line 82 of file sh1.c.

{
  return shlib_overriddencall2 ();
}

Definition at line 15 of file sh2.c.

{
  return 5;
}

Here is the caller graph for this function:

Definition at line 53 of file sh1.c.

{
  return shlibvar1;
}

Definition at line 59 of file sh1.c.

{
  return shlibvar2;
}

Definition at line 385 of file sh1.c.

{
  return 1;
}

Here is the caller graph for this function:

Definition at line 391 of file sh1.c.

{
  return 1;
}

Here is the caller graph for this function:

Definition at line 199 of file sh1.c.

{
  return 2;
}

Here is the caller graph for this function:

Definition at line 231 of file sh1.c.

{
#ifdef WEAK_TEST
  if (&visibility)
    return visibility () == 1;
  else
    return 1;
#else
#ifdef HIDDEN_NORMAL_TEST
  return visibility_normal () == 2;
#else
  return visibility () == 2;
#endif
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 216 of file sh1.c.

{
#ifdef WEAK_TEST
  return 1;
#else
#ifdef HIDDEN_NORMAL_TEST
  int (*v) () = visibility_normal;
#else
  int (*v) () = visibility;
#endif
  return (*v) () == 2;
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 292 of file sh1.c.

{
#ifdef WEAK_TEST
  return 1;
#else
#ifdef HIDDEN_NORMAL_TEST
  return visibility_var_normal == 2;
#else
  return visibility_var == 2;
#endif
#endif
}

Here is the caller graph for this function:

Definition at line 274 of file sh1.c.

{
#ifdef WEAK_TEST
  if (&visibility_var)
    return visibility_var == 1;
  else
    return 1;
#else
#ifdef HIDDEN_NORMAL_TEST
  int *v = &visibility_var_normal;
#else
  int *v = &visibility_var;
#endif
  return *v == 2;
#endif
}

Here is the caller graph for this function:

void* visibility_funptr ( )

Definition at line 248 of file sh1.c.

{
#ifdef WEAK_TEST
  if (&visibility == NULL)
    return NULL;
  else
#endif
    return visibility;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void* visibility_varptr ( )

Definition at line 306 of file sh1.c.

{
#ifdef WEAK_TEST
  if (&visibility_var == NULL)
    return NULL;
  else
#endif
    return &visibility_var;
}

Here is the caller graph for this function:

Definition at line 317 of file sh1.c.

{
#ifdef WEAK_TEST
  if (&visibility_var == NULL)
    return 0;
  else
#endif
    return visibility_var;
}

Here is the caller graph for this function:


Variable Documentation

int i = 6 [static]

Definition at line 155 of file sh1.c.

Definition at line 22 of file main.c.

Definition at line 23 of file main.c.

Definition at line 133 of file sh1.c.

{
  return shlib_shlibvar1;
}

Definition at line 142 of file sh1.c.

{
  return main_called;
}

Definition at line 28 of file sh1.c.

Definition at line 6 of file sh2.c.

const char* str = "Hello, world\n" [static]

Definition at line 156 of file sh1.c.

Definition at line 264 of file sh1.c.