1 minor finding · 5 suggestions
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · Static-PIE executable links lose fatal linker warnings
The x86_64 and aarch64 static linker flags omit -Wl,--fatal-warnings, removing the gate that previously made linker warnings fail these release builds.
Location: contrib/guix/libexec/build_linux.sh:48 (head).
Details and suggested fix
The static branch supplies an explicit CMAKE_EXE_LINKER_FLAGS value without HOST_LDFLAGS, even though the preceding case statement still adds -Wl,--fatal-warnings there. Environment LDFLAGS and the toolchain's _INIT value only initialize an unset cache entry, so they do not restore the option. The fatal-warning setting in TryAppendLinkerFlag.cmake applies only to configure probes. Add -Wl,--fatal-warnings directly to the static branch rather than restoring the dynamic-interpreter flags with it. No warning from the current static links was identified, so this is a removed validation gate, not an observed defective artifact.
Optional improvements
[suggestion] · Static FORTIFY check cannot distinguish application calls from libc code
A matching symbol in a static executable may come from separately fortified glibc, so the final-image scan alone does not establish that Bitcoin Core's code was fortified.
Location: contrib/guix/security-check.py:132 (head).
Details and suggested fix
Static linking requires replacing the import-only scan, but binary.symbols accepts a matching name from any included object without checking its origin or references. The x86_64/aarch64 runtime enables --enable-fortify-source independently of Bitcoin Core's _FORTIFY_SOURCE=3 setting, and packaging checks the image before split-debug. Add a negative-control build that disables application fortification while retaining the same libc, and require the check to reject it. Other dynamically linked release targets still provide coverage for shared application flags; the concern is regressions specific to static outputs. Whether libc currently contributes a qualifying symbol independently of application fortification was not verified, and no false pass has been demonstrated.
[suggestion] · Runtime documentation omits bitcoin-gui and conflicts with INSTALL.md
bitcoin-gui remains dynamically linked but is missing from the release note's exceptions, while the shipped installation guide still requires glibc unconditionally.
Location: doc/release-notes-25573.md:4 (head).
Details and suggested fix
build_linux_gui.sh builds and installs both bitcoin-gui and bitcoin-qt with the dynamic linker flags, and symbol-check.py exempts both from static checking. List both GUI executables as exceptions to the x86_64/aarch64 portability claim. Also update doc/INSTALL_linux.md, which packaging copies into each Linux archive as INSTALL.md, so its glibc 2.31 requirement applies to the GUI executables and the other Linux architectures rather than the new static executables. While updating the note, change “systems than ship” to “systems that ship” and remove the extra comma before “than were previously supported.”
[suggestion] · Static ELF checks bypass normal reporting and disappear under optimization
A failed static invariant aborts symbol-check with an AssertionError, while optimized Python removes all static invariants instead of reporting a failure.
Location: contrib/guix/symbol-check.py:302 (head).
Details and suggested fix
check_ELF_STATIC implements every invariant as an assert, and its caller ignores the return value. In normal execution, a violation stops packaging but skips the usual <file>: failed <CHECK> report and all remaining files. With python3 -O or an enabled PYTHONOPTIMIZE, the assertions and their helper calls disappear. Any non-GUI ELF selected by --static then passes this symbol-check branch, even if dynamically linked. No current caller enabling Python optimization was found; packaging invokes plain python3 in a pure Guix environment. RUNPATH and part of the ABI check already used assertions at base, but the new static path extends that dependence. Use explicit predicates and feed their failures into the existing failed list.
[suggestion] · Static symbol validation counts entries instead of rejecting exports
The static path skips the export allowlist, leaving room for up to two unexpected x86_64 exports when the other static invariants pass.
Location: contrib/guix/symbol-check.py:303 (head).
Details and suggested fix
check_ELF_STATIC limits the dynamic symbol table to three entries but never checks their names or export status. The documented x86_64 baseline contains only one null entry, so adding one or two defined exports need not violate that limit or the zero-import check. The ordinary ELF path would reject names outside IGNORE_EXPORTS, but static dispatch skips it. Run check_exported_symbols in the static path as well; it already ignores entries that are not exported. REDUCE_EXPORTS is enabled and no current unexpected export was identified, so this is a gap in regression detection rather than an observed export.
[suggestion] · Resolver warning leaves systemd NSS providers implicit
The static binaries also cannot load systemd's resolve, myhostname, or mymachines NSS providers, which users may not recognize as covered by the general warning.
Location: doc/release-notes-25573.md:10 (head).
Details and suggested fix
glibc-nss-nodlopen.patch disables external NSS module loading, including these systemd providers. Name them alongside mDNS, LDAP and SSSD so users can recognize affected hosts: entries in /etc/nsswitch.conf. Hostnames supplied only by these providers, such as a synthesized local hostname or _gateway, need another configured resolution source; fallback depends on the NSS configuration. Recommend numeric addresses for local-service settings that depend on them. This concerns configured hostnames, not the numeric default RPC and Tor-control endpoints, and the note already correctly discloses the general dynamic-NSS limitation.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Static binaries embed a pinned glibc resolver without a stated update process (earlier report)