Back to index

glibc  2.9
Defines | Functions
ldsodefs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define DL_STATIC_INIT(map)   _dl_static_init (map)


void _dl_static_init (struct link_map *map)

Define Documentation

#define DL_STATIC_INIT (   map)    _dl_static_init (map)

Definition at line 31 of file ldsodefs.h.

Function Documentation

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: