memtest86plus/build32/ldscripts/memtest_bin.lds
Martin Whitaker e7d22959ea Fix linking with latest gcc.
gas now adds a .note.gnu.property section to the object files. We
need to strip it out when building the binaries.
2021-07-18 20:41:31 +01:00

23 lines
302 B
Plaintext

OUTPUT_FORMAT("binary")
OUTPUT_ARCH("i386")
ENTRY(boot);
SECTIONS {
. = 0;
.bootsect : {
*(.bootsect)
}
.setup : {
*(.setup)
}
.memtest : {
_start = . ;
*(.data)
_end = . ;
}
/DISCARD/ : { *(*) }
_sys_size = (_end - _start + 15) >> 4;
_init_size = (_end - _start) + _bss_size;
}