From 89b074d4171d40a51a1accc65d962e44da980dd8 Mon Sep 17 00:00:00 2001 From: Regia König Date: Tue, 23 Aug 2022 11:44:36 +0200 Subject: Create new linker script for memtest_efi --- create_debug.sh | 3 +++ memtest_efi_modified.lds | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) mode change 100644 => 100755 create_debug.sh create mode 100644 memtest_efi_modified.lds diff --git a/create_debug.sh b/create_debug.sh old mode 100644 new mode 100755 index e69de29..19047bc --- a/create_debug.sh +++ b/create_debug.sh @@ -0,0 +1,3 @@ +#! /bin/sh + +objdump -h memtest_shared 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; +} -- cgit v1.2.3-55-g7522