[Bug runtime/33347] New: combat overenthusiastic gc during linking of sys/sdt.h .stapsdt.base section
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Sun Aug 31 20:17:47 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33347
Bug ID: 33347
Summary: combat overenthusiastic gc during linking of sys/sdt.h
.stapsdt.base section
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: runtime
Assignee: systemtap at sourceware dot org
Reporter: fche at redhat dot com
Target Milestone: ---
It has been reported that several linkers (other than gnu binutils) apply
garbage collection in such a way that deletes the sys/sdt.h .stapsdt.base
section, and renders the _.stapsdt.base symbol to the weak-0 (or incurs link
time errors). Reports indicate that by adding the "R" section flag
(SHF_GNU_RETAIN), this is prevented.
https://github.com/rui314/mold/issues/1510
https://sourceware.org/PR27775
https://stackoverflow.com/questions/79604713/linking-error-in-static-linking-with-gc-sections-option
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list