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 by the image issuing the call to
45 In other words, search the dylib symbols that the calling image linked against when it was built.
49 is called with the special
52 then the search for the symbol starts with the image that called
54 If it is not found, the search continues as if RTLD_NEXT was used.
60 returns a null pointer if the symbol cannot be found, and sets an error
61 condition which may be queried with
65 Unlike other dyld API's, the symbol name passed to
67 must NOT be prepended with an underscore.