https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115158
--- Comment #2 from Dimitar Dimitrov <dimitar at gcc dot gnu.org> --- Before r15-518-g99b1daae18c095, getentropy usage is disabled, as expected: pru-gcc-build/pru/libstdc++-v3/include/pru/bits/c++config.h:/* #undef _GLIBCXX_HAVE_GETENTROPY */ With r15-518-g99b1daae18c095, the generated code appears to be slightly bigger (similar to PR115144). The "hello world" check in config/no-executables.m4 has been already close to the default IMEM limit of 8K, so the link now begins to fail due to IMEM region overflow. Thus the configure script switches to "gcc_no_link=yes". Newlib does not gate the getentropy() function declaration. Hence a simple compile check succeeds and erroneously enables it for libstdc++: pru-gcc-build/pru/libstdc++-v3/include/pru/bits/c++config.h:#define _GLIBCXX_HAVE_GETENTROPY 1 As a fix, I plan to increase the IMEM size in the default linker script.