Erlang/OTP 25 makes it so Erlang releases are relocatable by default. It does so by calling bin/dyn_erl --realpath. bin/dyn_erl is a version of bin/erl implemented in C.
When using reltool, you can also mark a release as relocatable (this is the default). Doing so makes it so bin/dyn_erl is used instead of bin/erl. However, I believe this option is no longer relevant from Erlang/OTP 25 and the whole code path could be removed.
If that’s the case: do we still need both bin/erl and bin/dyn_erl? It looks like we have two options:
-
Remove
bin/erl, renamebin/dyn_erltobin/erl, and make it the actual entry point -
Keep
bin/erlas is and trim downbin/dyn_erlfunctionality to be only about computing the real path (potentially renaming it tobin/erl_realpathor similar?)
Thoughts?