elfloader icon indicating copy to clipboard operation
elfloader copied to clipboard

[Request] Call constructor after load and call destructor before unload

Open nk4z0u opened this issue 7 months ago • 0 comments

A .so file may contain .init, .init_array, .fini and .fini_array. Taking constructor as an example, the .init and .init_array should be called firstly after the module is loaded and before call run_elf_module. That's because functions such as -eentry will be included in .init_array, and should be called firstly after loaded, otherwise the initialization won't be done and the call to run_elf_module may fail because of the dependency on initialization.

May I ask if you will update this project?

Thanks for your awesome work.

nk4z0u avatar Jul 18 '24 06:07 nk4z0u