From 70a0442a420ccea85e6255fedb760448c5b7b87f Mon Sep 17 00:00:00 2001 From: Alexey Brodkin Date: Sun, 28 Dec 2014 02:45:37 +0300 Subject: arc: move linker script in arch/arc/cpu folder This way we'll be able to use the same one script for either ARC CPU. Signed-off-by: Alexey Brodkin --- arch/arc/cpu/arc700/u-boot.lds | 85 ------------------------------------------ arch/arc/cpu/u-boot.lds | 85 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 85 deletions(-) delete mode 100644 arch/arc/cpu/arc700/u-boot.lds create mode 100644 arch/arc/cpu/u-boot.lds (limited to 'arch/arc') diff --git a/arch/arc/cpu/arc700/u-boot.lds b/arch/arc/cpu/arc700/u-boot.lds deleted file mode 100644 index ccddbf7dc9..0000000000 --- a/arch/arc/cpu/arc700/u-boot.lds +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -OUTPUT_FORMAT("elf32-littlearc", "elf32-littlearc", "elf32-littlearc") -OUTPUT_ARCH(arc) -ENTRY(_start) -SECTIONS -{ - . = ALIGN(4); - .text : { - *(.__text_start) - *(.__image_copy_start) - *(.text*) - } - - . = ALIGN(4); - .text_end : - { - *(.__text_end) - } - - . = ALIGN(1024); - .ivt_start : { - *(.__ivt_start) - } - - .ivt : - { - *(.ivt) - } - - .ivt_end : { - *(.__ivt_end) - } - - . = ALIGN(4); - .rodata : { - *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) - } - - . = ALIGN(4); - .data : { - *(.data*) - } - - . = ALIGN(4); - .u_boot_list : { - KEEP(*(SORT(.u_boot_list*))); - } - - . = ALIGN(4); - .rel_dyn_start : { - *(.__rel_dyn_start) - } - - .rela.dyn : { - *(.rela.dyn) - } - - .rel_dyn_end : { - *(.__rel_dyn_end) - } - - . = ALIGN(4); - .bss_start : { - *(.__bss_start); - } - - .bss : { - *(.bss*) - } - - .bss_end : { - *(.__bss_end); - } - - . = ALIGN(4); - .image_copy_end : { - *(.__image_copy_end) - *(.__init_end) - } -} diff --git a/arch/arc/cpu/u-boot.lds b/arch/arc/cpu/u-boot.lds new file mode 100644 index 0000000000..ccddbf7dc9 --- /dev/null +++ b/arch/arc/cpu/u-boot.lds @@ -0,0 +1,85 @@ +/* + * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +OUTPUT_FORMAT("elf32-littlearc", "elf32-littlearc", "elf32-littlearc") +OUTPUT_ARCH(arc) +ENTRY(_start) +SECTIONS +{ + . = ALIGN(4); + .text : { + *(.__text_start) + *(.__image_copy_start) + *(.text*) + } + + . = ALIGN(4); + .text_end : + { + *(.__text_end) + } + + . = ALIGN(1024); + .ivt_start : { + *(.__ivt_start) + } + + .ivt : + { + *(.ivt) + } + + .ivt_end : { + *(.__ivt_end) + } + + . = ALIGN(4); + .rodata : { + *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) + } + + . = ALIGN(4); + .data : { + *(.data*) + } + + . = ALIGN(4); + .u_boot_list : { + KEEP(*(SORT(.u_boot_list*))); + } + + . = ALIGN(4); + .rel_dyn_start : { + *(.__rel_dyn_start) + } + + .rela.dyn : { + *(.rela.dyn) + } + + .rel_dyn_end : { + *(.__rel_dyn_end) + } + + . = ALIGN(4); + .bss_start : { + *(.__bss_start); + } + + .bss : { + *(.bss*) + } + + .bss_end : { + *(.__bss_end); + } + + . = ALIGN(4); + .image_copy_end : { + *(.__image_copy_end) + *(.__init_end) + } +} -- cgit v1.2.1