From a926a9f60aa94a034b0a06eed296996363245d30 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 7 Apr 2020 13:04:24 +0900 Subject: [PATCH] linker_script: move stacks section to bl_common.ld.h The stacks section is the same for all BL linker scripts. Move it to the common header file. Change-Id: Ibd253488667ab4f69702d56ff9e9929376704f6c Signed-off-by: Masahiro Yamada --- bl1/bl1.ld.S | 7 +------ bl2/bl2.ld.S | 7 +------ bl2/bl2_el3.ld.S | 7 +------ bl2u/bl2u.ld.S | 7 +------ bl31/bl31.ld.S | 7 +------ bl32/sp_min/sp_min.ld.S | 7 +------ bl32/tsp/tsp.ld.S | 7 +------ plat/mediatek/mt6795/bl31.ld.S | 7 +------ 8 files changed, 8 insertions(+), 48 deletions(-) diff --git a/bl1/bl1.ld.S b/bl1/bl1.ld.S index 009a9b59c..4ebe8a02a 100644 --- a/bl1/bl1.ld.S +++ b/bl1/bl1.ld.S @@ -103,12 +103,7 @@ SECTIONS __DATA_RAM_END__ = .; } >RAM AT>ROM - stacks (NOLOAD) : { - __STACKS_START__ = .; - *(tzfw_normal_stacks) - __STACKS_END__ = .; - } >RAM - + STACK_SECTION >RAM BSS_SECTION >RAM XLAT_TABLE_SECTION >RAM diff --git a/bl2/bl2.ld.S b/bl2/bl2.ld.S index 15df5dd03..17475f061 100644 --- a/bl2/bl2.ld.S +++ b/bl2/bl2.ld.S @@ -88,12 +88,7 @@ SECTIONS __DATA_END__ = .; } >RAM - stacks (NOLOAD) : { - __STACKS_START__ = .; - *(tzfw_normal_stacks) - __STACKS_END__ = .; - } >RAM - + STACK_SECTION >RAM BSS_SECTION >RAM XLAT_TABLE_SECTION >RAM diff --git a/bl2/bl2_el3.ld.S b/bl2/bl2_el3.ld.S index d04f226e9..ea7a23500 100644 --- a/bl2/bl2_el3.ld.S +++ b/bl2/bl2_el3.ld.S @@ -123,12 +123,7 @@ SECTIONS } >RAM __RELA_END__ = .; - stacks (NOLOAD) : { - __STACKS_START__ = .; - *(tzfw_normal_stacks) - __STACKS_END__ = .; - } >RAM - + STACK_SECTION >RAM BSS_SECTION >RAM XLAT_TABLE_SECTION >RAM diff --git a/bl2u/bl2u.ld.S b/bl2u/bl2u.ld.S index 8c0bbbdd0..3ab43825c 100644 --- a/bl2u/bl2u.ld.S +++ b/bl2u/bl2u.ld.S @@ -90,12 +90,7 @@ SECTIONS __DATA_END__ = .; } >RAM - stacks (NOLOAD) : { - __STACKS_START__ = .; - *(tzfw_normal_stacks) - __STACKS_END__ = .; - } >RAM - + STACK_SECTION >RAM BSS_SECTION >RAM XLAT_TABLE_SECTION >RAM diff --git a/bl31/bl31.ld.S b/bl31/bl31.ld.S index 1cdf7c943..94d03e3da 100644 --- a/bl31/bl31.ld.S +++ b/bl31/bl31.ld.S @@ -158,12 +158,7 @@ SECTIONS __NOBITS_START__ = .; #endif - stacks (NOLOAD) : { - __STACKS_START__ = .; - *(tzfw_normal_stacks) - __STACKS_END__ = .; - } >NOBITS - + STACK_SECTION >NOBITS BSS_SECTION >NOBITS XLAT_TABLE_SECTION >NOBITS diff --git a/bl32/sp_min/sp_min.ld.S b/bl32/sp_min/sp_min.ld.S index da005db64..8e91cec91 100644 --- a/bl32/sp_min/sp_min.ld.S +++ b/bl32/sp_min/sp_min.ld.S @@ -101,12 +101,7 @@ SECTIONS ASSERT(. <= BL32_PROGBITS_LIMIT, "BL32 progbits has exceeded its limit.") #endif - stacks (NOLOAD) : { - __STACKS_START__ = .; - *(tzfw_normal_stacks) - __STACKS_END__ = .; - } >RAM - + STACK_SECTION >RAM BSS_SECTION >RAM XLAT_TABLE_SECTION >RAM diff --git a/bl32/tsp/tsp.ld.S b/bl32/tsp/tsp.ld.S index bf77c9234..7428c0345 100644 --- a/bl32/tsp/tsp.ld.S +++ b/bl32/tsp/tsp.ld.S @@ -91,12 +91,7 @@ SECTIONS ASSERT(. <= TSP_PROGBITS_LIMIT, "TSP progbits has exceeded its limit.") #endif - stacks (NOLOAD) : { - __STACKS_START__ = .; - *(tzfw_normal_stacks) - __STACKS_END__ = .; - } >RAM - + STACK_SECTION >RAM BSS_SECTION >RAM XLAT_TABLE_SECTION >RAM diff --git a/plat/mediatek/mt6795/bl31.ld.S b/plat/mediatek/mt6795/bl31.ld.S index b061b91ce..91ca87cb6 100644 --- a/plat/mediatek/mt6795/bl31.ld.S +++ b/plat/mediatek/mt6795/bl31.ld.S @@ -74,12 +74,7 @@ SECTIONS ASSERT(. <= BL31_PROGBITS_LIMIT, "BL3-1 progbits has exceeded its limit.") #endif - stacks (NOLOAD) : { - __STACKS_START__ = .; - *(tzfw_normal_stacks) - __STACKS_END__ = .; - } >RAM - + STACK_SECTION >RAM BSS_SECTION >RAM __RW_END__ = __BSS_END__;