I have a process running, which contains a shared library,
For example:
00007f3d8422d000 4K r-x-- /media/projects/shared-lib/libshared.so
00007f3d8422e000 2044K ----- /media/projects/shared-lib/libshared.so
00007f3d8442d000 4K r---- /media/projects/shared-lib/libshared.so
00007f3d8442e000 4K rw--- /media/projects/shared-lib/libshared.so
- I would like to duplicate the above mapping, so another virtual pages will be point to the same physical address, how can it be done ?
So I will see the same mapping but with other virtual addresses. (In the same running process)
- What finally I would like to do, is replace the old shared library with the new mapping, can it be done ?
Thanks