fixed the interrupt gate descriptor setup
[ld45_start_nothing] / game.ld
1 OUTPUT_ARCH(i386)
2
3 SECTIONS {
4         /* BIOS loads the boot code at 7c00h */
5         . = 0x7c00;
6
7         .boot : { * (.boot); }
8
9         /* second stage boot loader */
10         .boot2 : {
11                 * (.boot2);
12                 * (.bootend);
13                 /* pad the boot loader to the next sector boundary */
14                 . = ALIGN(512);
15         }
16         _boot2_size = SIZEOF(.boot2);
17
18         /* main program will be loaded at 1MB by the second stage
19          * boot loader
20          */
21         . = 1M;
22         _main_start = .;
23
24         .startup : { * (*.startup); }
25         .text : { * (.text); }
26         .data : { * (.data); }
27
28         _main_size = . - _main_start;
29         _mem_start = .;
30 }