Skip to content

Conversation

@dra27
Copy link
Owner

@dra27 dra27 commented Aug 27, 2025

No description provided.

@dra27 dra27 added relocatable PRs related to the Relocatable Compiler project CI: Skip testsuite Skip the testsuite runs on a PR CI: Full matrix Full CI test matrix labels Aug 27, 2025
@dra27 dra27 changed the title [Relocatable] Follow-up 12: Improve error message when dynamic loading is unexpectedly unavailable [Relocatable] Follow-up 22: Improve error message when dynamic loading is unexpectedly unavailable Aug 28, 2025
@dra27 dra27 force-pushed the relocatable-testing branch from 3c8b5c1 to 2a7e0ad Compare September 9, 2025 22:19
@dra27 dra27 changed the base branch from relocatable-testing to trunk September 13, 2025 13:35
@dra27 dra27 changed the base branch from trunk to relocatable-testing November 30, 2025 14:35
@dra27 dra27 force-pushed the relocatable-testing branch from d644c59 to 63922b2 Compare November 30, 2025 14:36
@dra27 dra27 force-pushed the relocatable-testing branch from 63922b2 to 198fcfd Compare December 10, 2025 11:10
@dra27 dra27 force-pushed the relocatable-testing branch from 198fcfd to 56b115d Compare December 11, 2025 18:34
Exposes the value of SUPPORT_DYNAMIC_LINKING.
It is possible, especially when using Dynlink, to end up in the
situation where a bytecode runtime which doesn't support dynamic loading
is asked to load support DLLs (e.g. a bytecode image with a DLLS
section, or a cma archive passed to the toplevel/Dynlink which has a
non-empty lib_dllibs list).

Previously, the error message would refer to the name of the first DLL
being loaded and simply state that dynamic loading is not supported. The
confusing part is that typically this would refer to a DLL which is not
on the system.

Now, the bytecode linker only writes DLLS and DLPT when there are
entries to write in them, and the runtime, toplevel and Dynlink provide
a direct explanation that dynamic loading is needed, but is not
available. In particular, the error now refers to the file which is
being loaded (i.e. the bytecode executable or the .cma file) rather than
a .so file which doesn't exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: Full matrix Full CI test matrix CI: Skip testsuite Skip the testsuite runs on a PR relocatable PRs related to the Relocatable Compiler project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants