What changed, and why it matters
This commit is a build-system optimization that makes the compiled program files smaller by telling the linker to discard unused code sections. It does not change any program behavior or fix any security issue.
No security action needed; this is a benign build optimization.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The Makefile change adds -Wl,--gc-sections to LDLIBS when HAVE_FUNCTION_SECTIONS is set. This linker flag removes unused ELF sections during linking, reducing binary size. It is a size-optimization build change with no functional or security relevance visible in the diff or commit message.
Changed components
MakefileInspect captured patch +4 / −0
diff --git a/Makefile b/Makefile
index 0b7b88f8..97983e6a 100644
--- a/Makefile
+++ b/Makefile
@@ -313,6 +313,10 @@ else
LDLIBS = -L$(CPATH) -lm $(SQLITE3_LDLIBS) $(COVFLAGS)
endif
+ifeq ($(HAVE_FUNCTION_SECTIONS),1)
+LDLIBS += -Wl,--gc-sections
+endif
+
# If we have the postgres client library we need to link against it as well
ifeq ($(HAVE_POSTGRES),1)
LDLIBS += $(POSTGRES_LDLIBS)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.