https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119698
John David Anglin <danglin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|ada |target Version|15.0 |12.4.1 Resolution|--- |FIXED Status|REOPENED |RESOLVED --- Comment #17 from John David Anglin <danglin at gcc dot gnu.org> --- I believe this bug is fixed by the following commit: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8b26ee407613cdbfc3fb2095c09ae28b4642fd63 This change enables generation of GNU stack notes in gcc-12. As similar commit was done for gcc-13. At some point, binutils changed the default for making the stack executable. This broke nested function support and gnat in gcc-12 and gcc-13. The fix is to enable generation of GNU stack notes for these releases. The broken Debian packages need to be replaced with new builds.