Skip to content

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

@nk4z0u

Description

@nk4z0u

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions