Back to index

glibc  2.9
dl-static.c File Reference
#include <ldsodefs.h>
#include <bits/libc-lock.h>

Go to the source code of this file.


 __libc_lock_define_initialized_recursive (static, _dl_static_lock)
void _dl_static_init (struct link_map *map)

Function Documentation

__libc_lock_define_initialized_recursive ( static  ,

Definition at line 41 of file dl-static.c.

void _dl_static_init ( struct link_map map)

Definition at line 50 of file dl-static.c.

  const ElfW(Sym) *ref = NULL;
  lookup_t loadbase;
  void (*f) (void *[]);

  __libc_lock_lock_recursive (_dl_static_lock);

  loadbase = _dl_lookup_symbol_x ("_dl_var_init", map, &ref,
                              map->l_local_scope, NULL, 0, 1, NULL);
  if (ref != NULL)
      f = (void (*) (void *[])) DL_SYMBOL_ADDRESS (loadbase, ref);
      f (variables);

  __libc_lock_unlock_recursive (_dl_static_lock);

Here is the call graph for this function: