delorie.com/djgpp/doc/libc/libc_159.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

dlsymresolver

Syntax

 
#include <sys/dxe.h>

extern void *(*dlsymresolver) (const char *symname);

Description

This is a pointer to a function (e.g. replaceable) containing a pointer to a function that is called when an unresolved symbol cannot be found in all the symbol tables that the dynamic loader have at his disposition. For example, as a last resort, the routine could return the address of a dummy function -- this allows loading modules that you don't know in advance which unresolved symbols it contains. Of course, the functions that use this last-resort dummy function will be, most likely, unuseable but at least you may query the address of some table inside the module, for example, and process it somehow.

Return Value

The handler should return NULL to rise a error condition, otherwise it should return a valid address.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004