#define VAR(name) \
.globl name; \
- .csect .data[RW]; \
.align 1; \
name:; \
- .long 42; \
- .csect [PR]
-#define STAB(string,type,value) .stabx string,value,type
+ .long 42;
+#define STAB(string,type,value) .stabx string,value,type,0
+
+/* Put everything in this csect, which seems to make things work.
+ The compiler actually puts the stabs in .csect [PR], but that didn't
+ work here (I guess because there is no text section). */
+ .csect .data[RW]
#include "wierd.def"