Back to index

glibc  2.9
testobj1.c File Reference
#include <dlfcn.h>
#include <stdlib.h>
#include "testobj.h"

Go to the source code of this file.


int obj1func1 (int a __attribute__((unused)))
int obj1func2 (int a)
int preload (int a)

Function Documentation

int obj1func1 ( int a   __attribute__(unused))

Definition at line 7 of file testobj1.c.

  return 42;
int obj1func2 ( int  a)

Definition at line 13 of file testobj1.c.

  return foo (a) + 10;

Here is the caller graph for this function:

int preload ( int  a)

Definition at line 19 of file testobj1.c.

  int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
  if (fp != NULL)
    return fp (a) + 10;
  return 10;

Here is the call graph for this function: