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 all mach-o images in the process (except those loaded with dlopen(xxx, RTLD_LOCAL))
34 are searched in the order they were loaded.
35 This can be a costly search and should be avoided.
39 is called with the special
42 then the search for the symbol is limited to the images which were loaded
43 after the one issuing the call to
50 returns a null pointer if the symbol cannot be found, and sets an error
51 condition which may be queried with
55 Unlike other dyld API's, the symbol name passed to
57 must NOT be prepended with an underscore.
64 .Xr NSObjectFileImage 3