[Chapel Merge] dlopen: Move `chpl_executionCommand` to be part of program data

Branch: refs/heads/main
Revision: 0c02bcb5765b32fec9ce2bb183eeec61b595bd13
Author: dlongnecke-cray
Link: dlopen: Move `chpl_executionCommand` to be part of program data by dlongnecke-cray · Pull Request #28798 · chapel-lang/chapel · GitHub
Log Message:
dlopen: Move chpl_executionCommand to be part of program data (#28798)

This PR adjusts chpl_executionCommand so that it no longer lives in
the runtime but becomes a writeable variable that lives in data section
of a chpl_rt_prginfo. As part of chpl_rt_init the runtime
initializes the chpl_executionCommand for the root program.

TESTING

  • COMM=gasnet

Reviewed by @jabraham17. Thanks!

Compare: Comparing 3222bd66b199fb28cddf3bbd05b5496910004980...8a1e892adb30d33b99dadaa16a3b9a445749a164 · chapel-lang/chapel · GitHub

Diff:
M compiler/codegen/codegen.cpp
M runtime/include/chpl-prginfo-data-macro.h
M runtime/include/chpl-prginfo.h
M runtime/include/chplcgfns.h
M runtime/src/chpl-init.c
M runtime/src/chplmemtrack.c
https://github.com/chapel-lang/chapel/pull/28798.diff