Support direct 64-bit EFI boot.

This commit is contained in:
Martin Whitaker
2020-07-03 22:38:17 +01:00
parent b68afac6c0
commit c505472939
5 changed files with 265 additions and 40 deletions

View File

@@ -0,0 +1,25 @@
OUTPUT_FORMAT("binary")
OUTPUT_ARCH(i386:x86-64)
ENTRY(boot);
SECTIONS {
. = 0;
.header : {
*(.header)
}
.setup : {
*(.setup)
}
. = ALIGN(512);
.text : {
_text_start = . ;
*(.data)
. = ALIGN(512);
_text_end = . ;
}
_text_size = (_text_end - _text_start);
_sys_size = _text_size >> 4;
_init_size = _text_size;
}