aarch64: linker: Remove unused symbols and sections
Remove unused symbols and related sections from the linker script. In particular CONFIG_IS_BOOTLOADER and CONFIG_CODE_DATA_RELOCATION are not currently supported on AArch64. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
7162786f83
commit
13ef690192
1 changed files with 2 additions and 21 deletions
|
@ -45,19 +45,8 @@
|
||||||
#define ROM_SIZE (CONFIG_FLASH_SIZE * 1K - CONFIG_FLASH_LOAD_OFFSET)
|
#define ROM_SIZE (CONFIG_FLASH_SIZE * 1K - CONFIG_FLASH_LOAD_OFFSET)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_XIP)
|
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K)
|
||||||
#if defined(CONFIG_IS_BOOTLOADER)
|
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
|
||||||
#define RAM_SIZE (CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
|
|
||||||
#define RAM_ADDR (CONFIG_SRAM_BASE_ADDRESS + \
|
|
||||||
(CONFIG_SRAM_SIZE * 1K - RAM_SIZE))
|
|
||||||
#else
|
|
||||||
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K)
|
|
||||||
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K - CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
|
|
||||||
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_ARM_MMU)
|
#if defined(CONFIG_ARM_MMU)
|
||||||
_region_min_align = CONFIG_MMU_PAGE_SIZE;
|
_region_min_align = CONFIG_MMU_PAGE_SIZE;
|
||||||
|
@ -252,10 +241,6 @@ SECTIONS
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
*(".kernel_bss.*")
|
*(".kernel_bss.*")
|
||||||
|
|
||||||
#ifdef CONFIG_CODE_DATA_RELOCATION
|
|
||||||
#include <linker_sram_bss_relocate.ld>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* As memory is cleared in words only, it is simpler to ensure the BSS
|
* As memory is cleared in words only, it is simpler to ensure the BSS
|
||||||
* section ends on a 4 byte boundary. This wastes a maximum of 3 bytes.
|
* section ends on a 4 byte boundary. This wastes a maximum of 3 bytes.
|
||||||
|
@ -277,10 +262,6 @@ SECTIONS
|
||||||
*/
|
*/
|
||||||
#include <snippets-rwdata.ld>
|
#include <snippets-rwdata.ld>
|
||||||
|
|
||||||
#ifdef CONFIG_CODE_DATA_RELOCATION
|
|
||||||
#include <linker_sram_data_relocate.ld>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||||
|
|
||||||
__data_rom_start = LOADADDR(_DATA_SECTION_NAME);
|
__data_rom_start = LOADADDR(_DATA_SECTION_NAME);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue