memtest86plus/build64/ldscripts/memtest_mbr.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

19 lines
235 B
Plaintext

OUTPUT_FORMAT("binary")
OUTPUT_ARCH(i386:x86-64)
ENTRY(boot);
SECTIONS {
. = 0;
.mbr : {
*(.mbr)
}
.memtest (NOLOAD) : {
_start = . ;
*(.data)
_end = . ;
}
/DISCARD/ : { *(*) }
_sys_size = (_end - _start + 15) >> 4;
}