mirror of https://github.com/wolfSSL/wolfBoot.git
x86_fsp: linker: add KEEP to sections that may be removed by gc
parent
22b1f3efa1
commit
fe5d1a98c7
|
@ -24,7 +24,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
_wolfboot_flash_start = .;
|
_wolfboot_flash_start = .;
|
||||||
KEEP(*(.sig_wolfboot_raw*))
|
KEEP(*(.sig_wolfboot_raw*))
|
||||||
*(.wolfboot)
|
KEEP(*(.wolfboot))
|
||||||
_wolfboot_flash_end = .;
|
_wolfboot_flash_end = .;
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ SECTIONS
|
||||||
.keystore KEYSTORE_START :
|
.keystore KEYSTORE_START :
|
||||||
{
|
{
|
||||||
_start_keystore = .;
|
_start_keystore = .;
|
||||||
*(.keystore*)
|
KEEP(*(.keystore*))
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
.jmpto32 BOOTLOADER_JUMP32_START :
|
.jmpto32 BOOTLOADER_JUMP32_START :
|
||||||
|
@ -90,7 +90,7 @@ SECTIONS
|
||||||
AT(FSP_T_ORIGIN)
|
AT(FSP_T_ORIGIN)
|
||||||
{
|
{
|
||||||
_start_fsp_t = .;
|
_start_fsp_t = .;
|
||||||
*(.fsp_t)
|
KEEP(*(.fsp_t))
|
||||||
}
|
}
|
||||||
|
|
||||||
.fsp_s FSP_S_ORIGIN :
|
.fsp_s FSP_S_ORIGIN :
|
||||||
|
@ -98,14 +98,14 @@ SECTIONS
|
||||||
_fsp_s_hdr = .;
|
_fsp_s_hdr = .;
|
||||||
KEEP(*(.sig_fsp_s*))
|
KEEP(*(.sig_fsp_s*))
|
||||||
_start_fsp_s = .;
|
_start_fsp_s = .;
|
||||||
*(.fsp_s)
|
KEEP(*(.fsp_s))
|
||||||
_end_fsp_s = .;
|
_end_fsp_s = .;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fsp_m FSP_M_ORIGIN :
|
.fsp_m FSP_M_ORIGIN :
|
||||||
{
|
{
|
||||||
_start_fsp_m = .;
|
_start_fsp_m = .;
|
||||||
*(.fsp_m)
|
KEEP(*(.fsp_m))
|
||||||
_end_fsp_m = .;
|
_end_fsp_m = .;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
_wolfboot_flash_start = .;
|
_wolfboot_flash_start = .;
|
||||||
KEEP(*(.sig_wolfboot_raw*))
|
KEEP(*(.sig_wolfboot_raw*))
|
||||||
*(.wolfboot)
|
KEEP(*(.wolfboot))
|
||||||
_wolfboot_flash_end = .;
|
_wolfboot_flash_end = .;
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
|
@ -37,13 +37,13 @@ SECTIONS
|
||||||
_policy_size_u32 = .;
|
_policy_size_u32 = .;
|
||||||
. += 4;
|
. += 4;
|
||||||
_start_policy = .;
|
_start_policy = .;
|
||||||
. += MAX_POLICY_SIZE;
|
. += MAX_POLICY_SIZE;
|
||||||
_end_policy = .;
|
_end_policy = .;
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
.ucode_update0 UCODE0_BASE :
|
.ucode_update0 UCODE0_BASE :
|
||||||
{
|
{
|
||||||
*(.ucode0)
|
KEEP(*(.ucode0))
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
.fit_table FIT_TABLE :
|
.fit_table FIT_TABLE :
|
||||||
|
@ -57,16 +57,16 @@ SECTIONS
|
||||||
_fsp_s_hdr = .;
|
_fsp_s_hdr = .;
|
||||||
KEEP(*(.sig_fsp_s*))
|
KEEP(*(.sig_fsp_s*))
|
||||||
_start_fsp_s = .;
|
_start_fsp_s = .;
|
||||||
*(.fsp_s)
|
KEEP(*(.fsp_s))
|
||||||
_end_fsp_s = .;
|
_end_fsp_s = .;
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
.bootloader WOLFBOOT_ORIGIN :
|
.bootloader WOLFBOOT_ORIGIN :
|
||||||
{
|
{
|
||||||
KEEP(./tgl_fsp.o(.boot))
|
KEEP(./tgl_fsp.o(.boot))
|
||||||
*(.boot*)
|
KEEP(*(.boot*))
|
||||||
KEYSTORE_START = .;
|
KEYSTORE_START = .;
|
||||||
*(.keystore*)
|
KEEP(*(.keystore*))
|
||||||
*(.text*)
|
*(.text*)
|
||||||
*(.rodata*)
|
*(.rodata*)
|
||||||
*(.eh_frame*)
|
*(.eh_frame*)
|
||||||
|
@ -100,13 +100,13 @@ SECTIONS
|
||||||
AT(FSP_T_ORIGIN)
|
AT(FSP_T_ORIGIN)
|
||||||
{
|
{
|
||||||
_start_fsp_t = .;
|
_start_fsp_t = .;
|
||||||
*(.fsp_t)
|
KEEP(*(.fsp_t))
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
.fsp_m FSP_M_ORIGIN :
|
.fsp_m FSP_M_ORIGIN :
|
||||||
{
|
{
|
||||||
_start_fsp_m = .;
|
_start_fsp_m = .;
|
||||||
*(.fsp_m)
|
KEEP(*(.fsp_m))
|
||||||
_end_fsp_m = .;
|
_end_fsp_m = .;
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue