Updating syslinux-dev lintian overrides.
[syslinux-debian/hramrach.git] / dos / header.S
blob836707873d5feb71d58306988a0571196244d8c8
1 STACK_SIZE      = 8192
2 HEAP_SIZE       = 16384
4                 .section ".header","a"
5                 .balign 512
6 __header_start:
7                 .short  0x5a4d
8                 .short  _exe_edata_low
9                 .short  _exe_edata_blocks
10                 .short  0               /* Relocation count */
11                 .short  (__header_end - __header_start) >> 4
12                 .short  _exe_bss_paras
13                 .short  _exe_bss_paras
14                 .short  _exe_text_seg   /* SP */
15                 .short  __stack_end
16                 .short  0               /* Checksum */
17                 .short  _start
18                 .short  _exe_text_seg   /* CS */
19                 .short  __reloc
20                 .short  0               /* Overlay number */
22  * Don't put these fields in unless we actually have an NE or PE image;
23  * some tools might get confused and assume __reloc = 64 automatically
24  * means an NE/PE image or a Windows image of some sort.
25  */
26 #if 0
27                 .short  0               /* Unknown/pad? */
28                 .short  0               /* Unknown/pad? */
29                 .short  0               /* Unknown/pad? */
30                 .short  0               /* Unknown/pad? */
31                 .short  0               /* Unknown/pad? */
32                 .short  0               /* Unknown/pad? */
33                 .short  0               /* Unknown/pad? */
34                 .short  0               /* Unknown/pad? */
35                 .short  0               /* Unknown/pad? */
36                 .short  0               /* Unknown/pad? */
37                 .short  0               /* Unknown/pad? */
38                 .short  0               /* Unknown/pad? */
39                 .short  0               /* Unknown/pad? */
40                 .short  0               /* Unknown/pad? */
41                 .short  0               /* Unknown/pad? */
42                 .short  0               /* Unknown/pad? */
43                 .long   0               /* Pointer to Windows PE header */
44 #endif
45                 .balign 4
46 __reloc:
47                 .balign 512
48 __header_end:
50                 .section ".heap","aw"
51                 .space  HEAP_SIZE
53                 .section ".stack","aw"
54                 .space  STACK_SIZE