Re:32-bit x86 Position Independent Code – It's That Bad
by zvrba on Thursday April 16, 2015 @03:06AM
(#9386330)
Just found out that physical page information is exposed through /proc: https://www.kernel.org/doc/Documentation/vm/pagemap.txt
Re:32-bit x86 Position Independent Code – It's That Bad
by zvrba on Wednesday April 15, 2015 @06:34AM
(#9379992)
Ah, good point! Though I think I'll do a dlopen on each file to mimic whatever the loader usually does. I'll do it as a weekend-project :)
The results of mincore() in one process with a shared mapping of a file are enough to tell you how much of that file is loaded shared system-wide.