48 lines
1.9 KiB
Diff
48 lines
1.9 KiB
Diff
commit 83994b86444a4b75488b513362fd23390936e2a4
|
|
Author: Josh Stone <jistone@redhat.com>
|
|
Date: Thu Sep 26 10:53:14 2013 -0700
|
|
|
|
Revert "SDT: Use %foo for section types rather than "foo""
|
|
|
|
This reverts commit a31190f59188830b78dce26f0fbc42084f27c3c1.
|
|
|
|
This broke glibc's use of SDT_PROBE_ASM; revert until we figure it out.
|
|
|
|
diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h
|
|
index 8230a5b..ba04c12 100644
|
|
--- a/includes/sys/sdt.h
|
|
+++ b/includes/sys/sdt.h
|
|
@@ -171,22 +171,9 @@ __extension__ extern unsigned long long __sdt_unsp;
|
|
# define _SDT_ASM_AUTOGROUP ""
|
|
#endif
|
|
|
|
-/* We used to have just "note", but some assemblers don't support that.
|
|
- * GAS documents that it should be @note, but since ARM uses @ for
|
|
- * comments, it also supports %note. It appears we can get away with
|
|
- * the latter everywhere, so long as we escape it depending on mode.
|
|
- * NB: %progbits apparently doesn't need (and can't have) similar %%
|
|
- * escaping, since that asm() has no operands. */
|
|
-#ifdef __ASSEMBLER__
|
|
-#define _SDT_ASM_NOTE %note
|
|
-#else
|
|
-#define _SDT_ASM_NOTE %%note
|
|
-#endif
|
|
-
|
|
#define _SDT_ASM_BODY(provider, name, pack_args, args) \
|
|
_SDT_ASM_1(990: _SDT_NOP) \
|
|
- _SDT_ASM_3( .pushsection .note.stapsdt,_SDT_ASM_AUTOGROUP, \
|
|
- _SDT_ASM_NOTE) \
|
|
+ _SDT_ASM_3( .pushsection .note.stapsdt,_SDT_ASM_AUTOGROUP,"note") \
|
|
_SDT_ASM_1( .balign 4) \
|
|
_SDT_ASM_3( .4byte 992f-991f, 994f-993f, _SDT_NOTE_TYPE) \
|
|
_SDT_ASM_1(991: .asciz _SDT_NOTE_NAME) \
|
|
@@ -202,7 +189,7 @@ __extension__ extern unsigned long long __sdt_unsp;
|
|
|
|
#define _SDT_ASM_BASE \
|
|
_SDT_ASM_1(.ifndef _.stapsdt.base) \
|
|
- _SDT_ASM_5( .pushsection .stapsdt.base,"aG",%progbits, \
|
|
+ _SDT_ASM_5( .pushsection .stapsdt.base,"aG","progbits", \
|
|
.stapsdt.base,comdat) \
|
|
_SDT_ASM_1( .weak _.stapsdt.base) \
|
|
_SDT_ASM_1( .hidden _.stapsdt.base) \
|