Commit | Line | Data |
---|---|---|
2de1aa1c JK |
1 | #define N_GSYM 128 |
2 | #define N_LSYM 129 | |
f492b6c1 JK |
3 | |
4 | /* If we try to use .stabx for common blocks, the AIX assembler (bogusly) | |
5 | complains about the lack of a colon in the stabstring. */ | |
6 | #define BEGIN_COMMON(name) .bc name | |
7 | #define END_COMMON(name) .ec | |
1458f956 JK |
8 | |
9 | #define VAR(name) \ | |
10 | .globl name; \ | |
1458f956 JK |
11 | .align 1; \ |
12 | name:; \ | |
b1285bd9 JK |
13 | .long 42; |
14 | #define STAB(string,type,value) .stabx string,value,type,0 | |
15 | ||
16 | /* Put everything in this csect, which seems to make things work. | |
17 | The compiler actually puts the stabs in .csect [PR], but that didn't | |
18 | work here (I guess because there is no text section). */ | |
19 | .csect .data[RW] | |
1458f956 | 20 | #include "wierd.def" |
884e8cd4 JK |
21 | |
22 | /* Stuff with backslashes needs to go here, since the aix assembler treats | |
23 | them differently. */ | |
24 | ||
25 | STAB("sym92:\ !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",N_LSYM,0) | |
26 | STAB("type92:t92=\ !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",N_LSYM,0) | |
27 | STAB("attr92:G392=@\ !#$%&'()*+,-./0123456789:<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~;1",N_GSYM, 0) |