3 ms·
There isn't a whole lot of magic in loaders. They do much the same job as linkers, except instead of files on disk, they set up pages in memory. All the import
by barrkel 13y ago
There isn't a whole lot of magic in loaders. They do much the same job as linkers, except instead of files on disk, they set up pages in memory. All the import slots are filled with references to all the corresponding exports, until all imports are satisfied; and all the relocations are adjusted based on load location. There are a couple more wrinkles for optimization and extra functionality, but that's approximately it.