Summary: | .probes section disappears into debuginfo | ||
---|---|---|---|
Product: | systemtap | Reporter: | Mark Wielaard <mark> |
Component: | runtime | Assignee: | Unassigned <systemtap> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | scox |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Mark Wielaard
2009-05-10 18:57:29 UTC
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. |