File: exe.ld

package info (click to toggle)
exactimage 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,040 kB
  • sloc: cpp: 35,940; ansic: 1,952; xml: 1,447; makefile: 338; perl: 138; sh: 110; python: 45; php: 37; ruby: 12
file content (39 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (4)
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
OUTPUT_FORMAT(binary)
SECTIONS {
    .sig : {
	SHORT(0x5a4d); /* magic */
	SHORT(262); /* last page size */

	SHORT(0x0007); /* file pages */
	SHORT(0x0000); /* relocation items */

	SHORT(16); /* header paragraphs, 16 for .com */
	SHORT(1); /* min alloc */

	SHORT(1); /* max alloc */
	SHORT(0); /* initial SS */

	SHORT(0xfffe); /* initial SP */
	SHORT(0); /* checksum */

	SHORT(0x00); /* initial IP */
	SHORT(0); /* initial CS */

	SHORT(0x100); /* relocation table offset */
	SHORT(0); /* overlay number */
    }

    . = 0x0100;
    .start : {
	*(.start);
     }
    .text : {
        *(.text);
    }
    .data : {
        *(.data);
        *(.bss);
        *(.rodata);
    }
    _heap = ALIGN(4);
}