[Chapel Merge] dlopen: Replace uses of compiler-generated symbols in RT

Branch: refs/heads/main
Revision: a675f0cff30b237ea7ebef2acaff6804ab5bddef
Author: dlongnecke-cray
Link: dlopen: Replace uses of compiler-generated symbols in RT by dlongnecke-cray · Pull Request #28789 · chapel-lang/chapel · GitHub
Log Message:
dlopen: Replace uses of compiler-generated symbols in RT (#28789)

This PR is part of a series that begins to replace all direct references
to compiler-generated symbols in the runtime. As this is the first one,
I've elected to replace symbols that are either used once (e.g.,
chpl_gen_main, callbacks for module initializers), or used
infrequently (e.g., symbol tables for stack unwinding).

TESTING:

  • standard
  • COMM=gasnet

Reviewed by @jabraham17. Thanks!

Compare: Comparing da0944169b19e457d5a2511829c039b26bef1e74...bc4a40bb8368173694e2f7e85fb9b03e42fab857 · chapel-lang/chapel · GitHub

Diff:
M modules/internal/ChapelProgramEntrypoints.chpl
M runtime/include/chpl-prginfo.h
M runtime/include/chplcgfns.h
M runtime/include/config.h
M runtime/src/arg.c
M runtime/src/chpl-init.c
M runtime/src/chpl-launcher-common.c
M runtime/src/chpl-prginfo.c
M runtime/src/config.c
https://github.com/chapel-lang/chapel/pull/28789.diff