5 .Nd get address of a symbol
9 .Fn dlsym "void* handle" "const char* symbol"
12 returns the address of the code or data location
13 specified by the null-terminated character string
15 Which libraries and bundles are searched depends on the
25 then only that image and any libraries it depends on are searched for
30 is called with the special
33 then every mach-o image in the process is searched in the order they were loaded.
34 This can be a costly search and should be avoided.
38 is called with the special
41 then the search for the symbol is limited to the images which were loaded
42 after the one issuing the call to
49 returns a null pointer if the symbol cannot be found, and sets an error
50 condition which may be queried with
54 Unlike other dyld API's, the symbol name passed to
56 must NOT be prepended with an underscore.
63 .Xr NSObjectFileImage 3