memtest86plus/build32/ldscripts/memtest_efi.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

27 lines
366 B
Plaintext

OUTPUT_FORMAT("binary")
OUTPUT_ARCH(i386)
ENTRY(boot);
SECTIONS {
. = 0;
.header : {
*(.header)
}
.setup : {
*(.setup)
}
. = ALIGN(512);
.text : {
_text_start = . ;
*(.data)
. = ALIGN(512);
_text_end = . ;
}
/DISCARD/ : { *(*) }
_text_size = (_text_end - _text_start);
_sys_size = _text_size >> 4;
_init_size = _text_size + _bss_size;
}