mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[init] Randomize load address of dynamic ELF modules
Update init to use the new xoroshiro RNG to create a random load address for dynamic executables. Also pass an address past the end of the loader in the loader_arg to use when loading dynamic dependencies.
This commit is contained in:
@@ -42,6 +42,8 @@ struct j6_arg_loader
|
||||
uintptr_t image_base;
|
||||
uintptr_t *got;
|
||||
uintptr_t entrypoint;
|
||||
uintptr_t start_addr;
|
||||
uintptr_t other;
|
||||
};
|
||||
|
||||
struct j6_arg_driver
|
||||
|
||||
Reference in New Issue
Block a user