[Bug runtime/10139] .probes section disappears into debuginfo
mjw at redhat dot com
sourceware-bugzilla@sourceware.org
Thu May 14 17:20:00 GMT 2009
------- Additional Comments From mjw at redhat dot com 2009-05-14 17:19 -------
We now mark the .probes section as SHF_ALLOC and we search in both dwarf and
main elf files for a .probes section in case we hit on a binary build against an
older sdt.h
commit 01a419e428f33d115a72fa8eac1d808825d2cae5
Author: Mark Wielaard <mjw@redhat.com>
Date: Thu May 14 19:07:10 2009 +0200
PR10139 Mark .probes section SHF_ALLOC.
* includes/sys/sdt.h (STAP_PROBE_DATA_): Mark .probes section SHF_ALLOC.
* tapsets.cxx (dwarf_builder::build): Search in either dwarf or main elf
file for .probes section.
Side note. We cannot easily make this a non-allocated SHT_NOTE. Those are kept
by stripping, but possibly not in all old tools (binutils strip from some years
ago). And SHT_NOTE means it's an ELF note, which has a standard header layout if
you don't use that format, all the normal ELF tools will tell you that there is
a corrupt section. So we would have to change the format of the section in that
case.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=10139
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list