rts/linker: Don't unload code when profiling is enabled
The heap census may contain references (e.g. `Counter.identity`) to static data which must be available when the census is reported at the end of execution. Fixes #24512.
Please register or sign in to comment