diff options
author | Kumar Gala <kumar.gala@linaro.org> | 2017-04-27 13:07:17 -0500 |
---|---|---|
committer | Kumar Gala <kumar.gala@linaro.org> | 2017-04-28 15:26:39 -0500 |
commit | ed70ea71080ffa429918e49af941a7888875b14c (patch) | |
tree | 34f630881e9719932203e518507505e9717f9586 | |
parent | 62b075049961aeec1addffbb6860c42d09fdd203 (diff) |
arm: linker: remove unused linker sections
We don't use __scs or __scp anymore so we can remove the related linker
script and various defines and such associated with them.
Change-Id: Ibbbe27c23a3f2b816b992dfdeb4f80cf798e0d40
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
-rw-r--r-- | include/arch/arm/cortex_m/scripts/linker.ld | 28 | ||||
-rw-r--r-- | include/section_tags.h | 1 | ||||
-rw-r--r-- | include/sections.h | 2 |
3 files changed, 0 insertions, 31 deletions
diff --git a/include/arch/arm/cortex_m/scripts/linker.ld b/include/arch/arm/cortex_m/scripts/linker.ld index f13396260..04f39a8a7 100644 --- a/include/arch/arm/cortex_m/scripts/linker.ld +++ b/include/arch/arm/cortex_m/scripts/linker.ld @@ -65,8 +65,6 @@ MEMORY { FLASH (rx) : ORIGIN = ROM_ADDR, LENGTH = ROM_SIZE SRAM (wx) : ORIGIN = RAM_ADDR, LENGTH = RAM_SIZE - SYSTEM_CONTROL_SPACE (wx) : ORIGIN = 0xE000E000, LENGTH = 4K - SYSTEM_CONTROL_PERIPH (wx) : ORIGIN = 0x400FE000, LENGTH = 4K /* Used by and documented in include/linker/intlist.ld */ IDT_LIST (wx) : ORIGIN = (RAM_ADDR + RAM_SIZE), LENGTH = 2K @@ -217,32 +215,6 @@ SECTIONS GROUP_END(RAMABLE_REGION) - GROUP_START(SYSTEM_CONTROL_PERIPH) - SECTION_PROLOGUE(.scp,(NOLOAD),) - { - /* - * The leading '.' in the ".scp" section name indicates that section is - * mapped to neither a normal ROM nor a normal RAM area. - */ - - *(.scp) - *(".scp.*") - } GROUP_LINK_IN(SYSTEM_CONTROL_PERIPH) - GROUP_END(SYSTEM_CONTROL_PERIPH) - - GROUP_START(SYSTEM_CONTROL_SPACE) - SECTION_PROLOGUE(.scs,(NOLOAD),) - { - /* - * The leading '.' in the ".scs" section name indicates that section is - * mapped to neither normal ROM nor normal RAM space. - */ - - *(.scs) - *(".scs.*") - } GROUP_LINK_IN(SYSTEM_CONTROL_SPACE) - GROUP_END(SYSTEM_CONTROL_SPACE) - #ifdef CONFIG_CUSTOM_SECTIONS_LD /* Located in project source directory */ #include <custom-sections.ld> diff --git a/include/section_tags.h b/include/section_tags.h index f067fb96e..ce6853cde 100644 --- a/include/section_tags.h +++ b/include/section_tags.h @@ -18,7 +18,6 @@ #define __sw_isr_table _GENERIC_SECTION(SW_ISR_TABLE) #if defined(CONFIG_ARM) -#define __scp_section __in_section_unique(SCP_SECTION) #define __kinetis_flash_config_section __in_section_unique(KINETIS_FLASH_CONFIG) #endif /* CONFIG_ARM */ diff --git a/include/sections.h b/include/sections.h index 08a7b8b38..da5ec1ffe 100644 --- a/include/sections.h +++ b/include/sections.h @@ -45,8 +45,6 @@ /* Architecture-specific sections */ #if defined(CONFIG_ARM) -#define SCS_SECTION scs -#define SCP_SECTION scp #define KINETIS_FLASH_CONFIG kinetis_flash_config #endif |