mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-27 10:00:17 -06:00
e7d22959ea
gas now adds a .note.gnu.property section to the object files. We need to strip it out when building the binaries.
27 lines
366 B
Plaintext
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;
|
|
}
|