ncc: define __i386__ for x86 builds
[neatcc.git] / out.h
blobf199dbf9e29a25c61683e9c9c7d5db21569ba447
1 #define OUT_CS 0x0001 /* code segment symbol */
2 #define OUT_DS 0x0002 /* data segment symbol */
3 #define OUT_BSS 0x0004 /* bss segment symbol */
5 #define OUT_GLOB 0x0010 /* global symbol */
7 #define OUT_REL 0x0100 /* relative relocation */
8 #define OUT_REL24 0x0200 /* 24-bit relative relocation */
10 #define OUT_ALIGNMENT 16 /* amount of section alignment */
12 void out_init(int flags);
14 void out_sym(char *name, int flags, int off, int len);
15 void out_rel(char *name, int flags, int off);
17 void out_write(int fd, char *cs, int cslen, char *ds, int dslen);