]> sourceware.org Git - systemtap.git/commit
SDT: Use %foo for section types rather than "foo"
authorJosh Stone <jistone@redhat.com>
Fri, 20 Sep 2013 23:00:44 +0000 (16:00 -0700)
committerJosh Stone <jistone@redhat.com>
Fri, 20 Sep 2013 23:00:44 +0000 (16:00 -0700)
commita31190f59188830b78dce26f0fbc42084f27c3c1
treedccd1df397f9419fc423ce8e53c34229e15ddc42
parent6bd8b8ddb7ba37c924b1231466c11418bc495dab
SDT: Use %foo for section types rather than "foo"

GAS can take section types as "foo", @foo, or %foo.  We had the quoted
form, but this is not documented, and llvm-mc doesn't support it.  Using
@foo starts a comment on ARM, so we're left with %foo.

For note, we have to escape it to %%note for the asm()'s operand
expansion, but leave it as %note for pure assembly.  For progbits, there
are no operands, so it's %progbits either way.

Thanks to Martin C. Martin for first reporting this to LLVM[1], and then
returning to systemtap with a suggested compatibility fix.
 [1] http://llvm.org/bugs/show_bug.cgi?id=17270
includes/sys/sdt.h
This page took 0.02465 seconds and 5 git commands to generate.