mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-30 11:03:48 -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.
23 lines
302 B
Plaintext
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;
|
|
}
|