blob: 7afb57b39f6e7ad1c9e81d5286f15204b2fab2f1 [file] [log] [blame]
Martin Roth9b1b3352016-02-24 12:27:06 -08001OUTPUT_FORMAT("binary")
2OUTPUT_ARCH("i386")
3
4ENTRY(_main);
5SECTIONS {
6 . = 0;
7 .bootsect : { *(.bootsect) }
8 .setup : { *(.setup) }
Martin Roth4dcd13d2016-02-24 13:53:07 -08009 .memtest : {
Martin Roth9b1b3352016-02-24 12:27:06 -080010 _start = . ;
Martin Roth4dcd13d2016-02-24 13:53:07 -080011 *(.data)
Martin Roth9b1b3352016-02-24 12:27:06 -080012 _end = . ;
13 }
14 _syssize = (_end - _start + 15) >> 4;
15}