diff --git a/hal/x86_fsp_qemu.ld.in b/hal/x86_fsp_qemu.ld.in index cfecbbfc..3e08865c 100644 --- a/hal/x86_fsp_qemu.ld.in +++ b/hal/x86_fsp_qemu.ld.in @@ -25,6 +25,8 @@ SECTIONS _end_wolfboot = .; } > RAM + _stored_data = _end_text; + _fsp_size = _end_fsp_s - _start_fsp_s; .bss WOLFBOOT_LOAD_BASE + SIZEOF(.text) (NOLOAD): { diff --git a/hal/x86_fsp_qemu_stage1.ld.in b/hal/x86_fsp_qemu_stage1.ld.in index 962cd8f0..dc43b4c2 100644 --- a/hal/x86_fsp_qemu_stage1.ld.in +++ b/hal/x86_fsp_qemu_stage1.ld.in @@ -56,6 +56,7 @@ SECTIONS .bootloader WOLFBOOT_ORIGIN : { + _start_text = .; KEEP(*(.boot*)) *(.text*) *(.rodata*) diff --git a/hal/x86_fsp_tgl.ld.in b/hal/x86_fsp_tgl.ld.in index 1ec85c53..9c4c1569 100644 --- a/hal/x86_fsp_tgl.ld.in +++ b/hal/x86_fsp_tgl.ld.in @@ -25,6 +25,7 @@ SECTIONS _end_wolfboot = .; } + _stored_data = _end_text; _fsp_size = _end_fsp_s - _start_fsp_s; .bss WOLFBOOT_LOAD_BASE + SIZEOF(.text) (NOLOAD): { diff --git a/hal/x86_fsp_tgl_stage1.ld.in b/hal/x86_fsp_tgl_stage1.ld.in index 4b7c0ca7..923d3bba 100644 --- a/hal/x86_fsp_tgl_stage1.ld.in +++ b/hal/x86_fsp_tgl_stage1.ld.in @@ -53,6 +53,7 @@ SECTIONS .bootloader WOLFBOOT_ORIGIN : { + _start_text = .; KEEP(./tgl_fsp.o(.boot)) KEEP(*(.boot*)) KEYSTORE_START = .;