[RTLD] Dynamic linker#990
Conversation
b38309a to
ef2ca8f
Compare
|
[CURRENT STATUS] Currently linking dynamically is only supported on ia32. Dynamic linker is adaptation of dynamic linker used by NetBSD. Locally I run nightly test campaign with all binaries linked dynamically and all tests passed but TODO:
Things to consider:
|
40a8682 to
6d6c02a
Compare
f345526 to
cc65c5e
Compare
4a449e4 to
ab7106e
Compare
Unit Test Results7 381 tests - 577 6 835 ✅ - 581 42m 4s ⏱️ -2s For more details on these failures, see this check. Results for commit 2bd81ef. ± Comparison against base commit 2ff5840. This pull request removes 821 and adds 244 tests. Note that renamed tests count towards both.This pull request removes 25 skipped tests and adds 9 skipped tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
3507c77 to
faf4069
Compare
|
Host tests fails due to devel image used being based on ubuntu 24 and having newer version of |
|
TODO: Remove need for ldconfig. Migrate to creating symlinks on host. ldconfig was needed as both ext2 and rofs did not support symlinks created on host. The issue in ext2 has been fixed, on rofs this can also be done. |
JIRA: RTOS-664
Description
This change contains all changes needed for shared libraries support.
Toolchain needs to be rebuild.
Small example showing how to create a shared library and link dynamically is added
sharedlibMotivation and Context
Types of changes
How Has This Been Tested?
Checklist:
Special treatment
This PR needs additional PRs to work (list the PRs, preferably in merge-order).
[RTLD]Adapt build env to shared libs phoenix-rtos-build#177
[RTLD] Add support for PIC and being build as shared library libphoenix#334
[RTLD] Add interpreter support phoenix-rtos-kernel#511
[RTLD] Dynamic linker phoenix-rtos-utils#214
I will merge this PR by myself when appropriate.