mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-12-02 11:59:08 -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.
19 lines
235 B
Plaintext
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;
|
|
}
|