[Chapel Merge] dlopen: Introduce the `ChapelProgramRegistration.chpl` module

Branch: refs/heads/main
Revision: 4d8167ac798557890eff13bfb18d73ef50b4648f
Author: dlongnecke-cray
Link: dlopen: Introduce the `ChapelProgramRegistration.chpl` module by dlongnecke-cray · Pull Request #28720 · chapel-lang/chapel · GitHub
Log Message:
dlopen: Introduce the ChapelProgramRegistration.chpl module (#28720)

This PR introduces a new internal module which is responsible for
setting up a chpl_rt_prginfo struct with details from the Chapel
program. It is a companion to #28716 (and the branch is currently based
on top of it).

This PR is meant to introduce the structure of the module. Not all of
the callbacks and constants are wired up here - I will add that as a
subsequent PR.

Reviewed by @jabraham17. Thanks much!

Compare: Comparing 0c650fe6c6191ee1099dd1f5f9823221c2164ace...03d41d1e869e78c357518827530f883a526d38ea · chapel-lang/chapel · GitHub

Diff:
A modules/internal/ChapelProgramRegistration.chpl
M modules/internal/ChapelStandard.chpl
M test/compflags/ferguson/print-module-resolution.good
M test/modules/sungeun/init/printModuleInitOrder.good
https://github.com/chapel-lang/chapel/pull/28720.diff