Dld allows a programmer to explicitly define global symbols. That is, a
programmer can force a symbol to have storage assigned for it. This is
especially useful in incremental program testing where the function
being tested needs to access some global variables which are defined by
another function not yet linked in (or even not yet written). There are
two functions related to explicit definition:
Function: int dld_define_sym(const char *name, unsigned int size)
dld_define_sym forces dld to allocate size bytes for symbol
name. It can be called before or after a reference to name
is made. If references to name already exist when it is defined,
all such references are directed to point to the correct address
allocated for name.
dld_define_sym returns 0 if successful. Otherwise, it returns a
non-zero error code (see section Definition of Error Codes).
The typical error is a multiple definition of name.
Please take a moment to fill out
this visitor survey You can help support this site by
visiting the advertisers that sponsor it! (only once each, though)