summaryrefslogtreecommitdiffstats
path: root/includes/sys/sdt.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys/sdt.h')
-rw-r--r--includes/sys/sdt.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h
index 104973df..7affade6 100644
--- a/includes/sys/sdt.h
+++ b/includes/sys/sdt.h
@@ -18,12 +18,10 @@
#endif
/* Allocated section needs to be writable when creating pic shared objects
- because we store relocatable addresses in them. */
-#ifdef __PIC__
+ because we store relocatable addresses in them. We used to make this
+ read only for non-pic executables, but the new semaphore support relies
+ on having a writable .probes section to put the enabled variables in. */
#define ALLOCSEC "\"aw\""
-#else
-#define ALLOCSEC "\"a\""
-#endif
/* An allocated section .probes that holds the probe names and addrs. */
#define STAP_PROBE_DATA_(probe,guard,arg) \