Sorry Andrew which I have written some wrong information in previous mail as you said sequence should be as follows
#include #include #include int main() { const char * ipath = "./foo.so"; const char * opath = "./myfoo.so"; _exithandle(); if (dldump(ipath, opath, RTLD_REL_ALL) != 0) (void) printf("dldump failed: %s\n", dlerror()); _exit(0); } Now questios is that if there is not any .init and .fini section in shared object as above foo.so do not have these section then there is no need to call _exithanle() before dldump() call and then _exit() after dldump() call. Now we can used exit() after dldump() call for exiting from the application regards Bhushan This message posted from opensolaris.org