-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Respect runtime paths when loading shared libraries #23872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
22620d5
Locate shared libraries using rpath
ryanking13 dfa80d8
Use rpath to load shared libraries
ryanking13 3b9d68e
Update test
ryanking13 39db974
ruff
ryanking13 1568cfe
Automatic rebaseline of codesize expectations. NFC
ryanking13 4f3ffe5
Don't run test on pthread
ryanking13 e49d1a2
Fix wasmfs test
ryanking13 82b38da
Automatic rebaseline of codesize expectations. NFC
ryanking13 3689d4e
ruff
ryanking13 a0732d7
Address comments
ryanking13 defefc2
Make closure compiler happy
ryanking13 8a7196d
Automatic rebaseline of codesize expectations. NFC
ryanking13 5511492
Merge remote-tracking branch 'upstream/main' into dylink-rpath
ryanking13 abacbf0
Fix tests
ryanking13 2df17b3
Automatic rebaseline of codesize expectations. NFC
ryanking13 0603c0a
Merge branch 'main' into dylink-rpath
hoodmane b23485c
Use C function for path lookup
hoodmane 47f36f4
Revert "Use C function for path lookup"
hoodmane 76d8fc8
Add also_with_wasmfs decorator
hoodmane 17191ba
Revert "Revert "Use C function for path lookup""
hoodmane 820805a
Call wasmExports._emscripten_resolve_path directly
hoodmane 105e771
Tidy up
hoodmane bbc7be9
Rename test to test_dlopen_rpath
hoodmane c6c5bdc
Fix tests
hoodmane d03329b
Revert codesizes
hoodmane f2a839f
Remove repeat declarations
hoodmane 676e156
Add SUPPORT_RPATH setting
hoodmane 8edc342
Update settings_reference.rst
hoodmane 0895d17
Fix test
hoodmane 0848d77
Fix again
hoodmane e0b3fba
Merge branch 'main' into dylink-rpath
hoodmane 59875c4
Remove SUPPORT_RPATH
hoodmane 4e4ab33
Update codesize
hoodmane 7e98557
Fix indentation and use withStackSave
hoodmane 6fee8c9
Move RPATH lookup below checks for loadedLibsByName and handle
hoodmane 0af5e3c
Cleanup
hoodmane 4904e56
Move rpath to end of arguments list and remove default
hoodmane 3e1ccce
Merge branch 'main' into dylink-rpath
hoodmane be22217
Put rpath in flags
hoodmane e27a006
parentLibPath ==> parentLibName
hoodmane caf817c
Add comment
hoodmane 97a764d
Merge branch 'main' into dylink-rpath
hoodmane 8763702
Fix wasmfs
hoodmane bb0240a
Fix in wasmfs
hoodmane 8040eee
Add _emscripten_resolve_path to create_pointer_conversion_wrappers
hoodmane 80b3763
Update codesize
hoodmane a52f4a8
Rename _emscripten_resolve_path to _emscripten_find_dylib
hoodmane db81df7
Factor out findLibraryFS
hoodmane 39d91b4
Fix refactor
hoodmane 8e3d3e0
Some test cleanup
hoodmane fb7ca61
Rename hello1* to hello*
hoodmane f164ddc
Format fixes
hoodmane 7422fc9
Add comment on why we copy flags rather than mutating.
hoodmane 31ac4ce
Quit out earlier if runtime not initialized and add comment
hoodmane 6c37485
Merge branch 'main' into dylink-rpath
hoodmane ff9c431
Update codesizes
hoodmane 412fb96
Fix ruff lint
hoodmane 61e93e6
Address some review comments
hoodmane d5bf161
Simplify path_find
hoodmane e3a2ff8
Indentation
hoodmane aa85192
Make `_emscripten_resolve_path` return `NULL` if it didn't resolve th…
hoodmane 5d3620e
adjust test_ld_library_path
hoodmane e66a372
Revert unneeded change
hoodmane 2e41541
Fix codesize_hello_dylink again
hoodmane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5892 | ||
6148 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
12932 | ||
13509 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.