Review report

core: PR #25573

🟠 Major

Include static libstdc++ in the effective linker flags (contrib/guix/libexec/build_linux.sh:72, head)

For x86_64 and aarch64, the case-selected argument is the last CMAKE_EXE_LINKER_FLAGS definition passed to CMake, so it replaces the earlier definition at line 67. That final value includes -static-pie but omits -static-libstdc++. -static-pie does not itself request static linking of libstdc++, so executables can retain a libstdc++.so dependency and fail on hosts without the corresponding runtime library. Include the static-libstdc++ option in the effective flags and avoid duplicate definitions.

🟡 Minor

Keep a fortification check for static executables (contrib/guix/security-check.py:131, head)

The no-interpreter branch accepts every static ELF without checking whether the application has fortification. The glibc package’s --enable-fortify-source setting does not establish that Bitcoin Core’s translation units were built with _FORTIFY_SOURCE; these are separate compilation settings. The previous check required fortified imported functions, which may not provide suitable evidence for static linking, but unconditional success removes the release check’s ability to catch a future fortification regression. Validate an appropriate static-specific artifact property or the application compilation setting instead of treating interpreter absence as proof. This is a loss of verification, not evidence that the current binaries are unfortified.