https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108259
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:751c2d9a46f786381a90d5c8c49947fa0d9b7ee5 commit r13-4995-g751c2d9a46f786381a90d5c8c49947fa0d9b7ee5 Author: Iain Sandoe <i...@sandoe.co.uk> Date: Sun Jan 1 15:42:03 2023 +0000 modula-2: Module registration constructors need to be visible [PR108259]. In the current design the main executable links explicitly to the module registration construtors that it uses. This means that they must be visible in shared libraries. PR modula2/108259 gcc/m2/ChangeLog: * gm2-gcc/m2decl.cc (m2decl_DeclareModuleCtor): Make module registration constructors visible.