diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-05-14 19:07:10 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-05-14 19:12:45 +0200 |
commit | 01a419e428f33d115a72fa8eac1d808825d2cae5 (patch) | |
tree | 6ee203741edf7f30dee6c8791edb0fb868a99c9b /includes | |
parent | 9af6145187da9e21a606f9737ddb4aa45ac6282d (diff) | |
download | systemtap-steved-01a419e428f33d115a72fa8eac1d808825d2cae5.tar.gz systemtap-steved-01a419e428f33d115a72fa8eac1d808825d2cae5.tar.xz systemtap-steved-01a419e428f33d115a72fa8eac1d808825d2cae5.zip |
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.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/sys/sdt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h index f89b736a..5899549c 100644 --- a/includes/sys/sdt.h +++ b/includes/sys/sdt.h @@ -19,8 +19,9 @@ #define STAP_PROBE_ADDR "\t.long " #endif +/* An allocated section .probes that holds the probe names and addrs. */ #define STAP_PROBE_DATA_(probe) \ - __asm__ volatile (".section .probes\n" \ + __asm__ volatile (".section .probes, \"a\"\n" \ "\t.align 8\n" \ "1:\n\t.asciz " #probe "\n" \ "\t.align 4\n" \ |