diff options
Diffstat (limited to 'memtest_efi_modified.lds')
-rw-r--r-- | memtest_efi_modified.lds | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/memtest_efi_modified.lds b/memtest_efi_modified.lds new file mode 100644 index 0000000..90e7f76 --- /dev/null +++ b/memtest_efi_modified.lds @@ -0,0 +1,29 @@ +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 = . ; + } + + /* + /DISCARD/ : { *(*) } + */ + + _text_size = (_text_end - _text_start); + + _sys_size = _text_size >> 4; + _init_size = _text_size + _bss_size; +} |