Files
RedBear-OS/src
Anhad Singh 64d3793190 fix(ld_so): page faulting when library not found
The error handling was already in place. The reason it was page faulting
is that, on failure, the function exits as soon as it encounters an
`Err` variant. When that happens, the DSO object for which the
dependency was being loaded is dropped. Dropping it calls `munmap` to
unload the executable and also runs the functions in `.fini`. However,
`run_fini` should only be called if the `DSO` is being unloaded after it
has been successfully loaded (i.e. all dependencies were satisfied and
all init functions had run).

Closes #1599

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-10 13:24:53 +11:00
..
2025-10-03 21:51:10 -06:00
2025-10-03 21:51:10 -06:00
2025-11-15 07:55:37 -07:00
2025-10-03 21:51:10 -06:00
2025-10-03 21:51:10 -06:00
2025-10-03 21:51:10 -06:00
2023-11-04 18:29:38 +00:00
2024-09-26 16:24:01 +02:00
2025-10-03 21:51:10 -06:00
2025-01-09 13:33:56 -07:00
2025-10-04 07:50:16 -06:00
2025-11-15 07:55:37 -07:00