File: header.S

package info (click to toggle)
syslinux 3:6.03+dfsg-5+deb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 41,276 kB
  • sloc: ansic: 358,748; asm: 9,608; pascal: 4,809; perl: 3,894; makefile: 2,488; sh: 324; python: 266; xml: 39
file content (54 lines) | stat: -rw-r--r-- 1,367 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
STACK_SIZE	= 8192
HEAP_SIZE	= 16384

		.section ".header","a"
		.balign	512
__header_start:
		.short	0x5a4d
		.short	_exe_edata_low
		.short	_exe_edata_blocks
		.short	0		/* Relocation count */
		.short	(__header_end - __header_start) >> 4
		.short	_exe_bss_paras
		.short	_exe_bss_paras
		.short	_exe_text_seg	/* SP */
		.short	__stack_end
		.short	0		/* Checksum */
		.short	_start
		.short	_exe_text_seg	/* CS */
		.short	__reloc
		.short	0		/* Overlay number */
/*
 * Don't put these fields in unless we actually have an NE or PE image;
 * some tools might get confused and assume __reloc = 64 automatically
 * means an NE/PE image or a Windows image of some sort.
 */
#if 0
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.short	0		/* Unknown/pad? */
		.long	0		/* Pointer to Windows PE header */
#endif
		.balign 4
__reloc:
		.balign	512
__header_end:

		.section ".heap","aw"
		.space	HEAP_SIZE

		.section ".stack","aw"
		.space	STACK_SIZE