#define N_LSYM 0x81 #define N_GSYM 0x80 #define VAR(name) \ .globl name; \ .align 1; \ name:; \ .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"