One Technical Problem: Can one process load two different c libraries simutaneously, such as uclibc and glibc?

For some special reasons, there is a possible case which need to load uclibc and glibc in one processes simutaneously. For example, I have written some code based on uclibc and a library(x.so) which based on glibc, and for some reasons, I can't get x's source code to recompile it. Furthemore, my own code is tidely related with uclibc, and it's very difficult to migrate to glibc. Then if it is possible to load both uclibc and glibc into one process space, it will be very simple to resolve this dilemma. I did try, but failed at last. The process can run until load the second c library, take glibc as example. Once load the glibc, the process will crash immediately. I don't know whether it is feasible theoretically and how to realize. Can anyone help?

posted @ 2018-06-12 13:34  耕读编码  阅读(275)  评论(0编辑  收藏  举报