Merge all SPARC linker scripts into a single file
cover Merge all SPARC linker scripts into a single file
In the other architecutres, the default linker scripts are placed at arch/${ARCH}/cpu/u-boot.lds or arch/${ARCH}/cpu/${CPU}/u-boot.lds.
On the other hand, SPARC does not have arch-default linker script but has almost the same linker scripts under each board directory.
They can be easily merged.
I built all SPARC boards and compared MD5SUM. The same binaries are produced before/after this series. So I am sure this clean-up is correct.
Masahiro Yamada (2):
sparc: merge LEON3 linker scripts
sparc: merge LEON2 and LEON3 linker scripts
{board/gaisler/grsim => arch/sparc/cpu}/u-boot.lds | 6 +-
board/gaisler/gr_cpci_ax2000/u-boot.lds | 143 --------------------
board/gaisler/gr_ep2s60/u-boot.lds | 143 --------------------
board/gaisler/gr_xc3s_1500/u-boot.lds | 145 ---------------------
board/gaisler/grsim_leon2/u-boot.lds | 142 --------------------
5 files changed, 2 insertions(+), 577 deletions(-)
rename {board/gaisler/grsim => arch/sparc/cpu}/u-boot.lds (95%)
delete mode 100644 board/gaisler/gr_cpci_ax2000/u-boot.lds
delete mode 100644 board/gaisler/gr_ep2s60/u-boot.lds
delete mode 100644 board/gaisler/gr_xc3s_1500/u-boot.lds
delete mode 100644 board/gaisler/grsim_leon2/u-boot.ldsSignature · 1 line
1.9.1
PATCH 1/2 sparc: merge LEON3 linker scripts
The linker scripts of LEON3
- board/gaisler/grsim/u-boot.lds
- board/gaisler/gr_cpci_ax2000/u-boot.lds
- board/gaisler/gr_ep2s60/u-boot.lds
- board/gaisler/gr_xc3s_1500/u-boot.lds
are the same (except cosmetic differences such as indentation).
This commit merges them into arch/sparc/cpu/leon3/u-boot.lds.
---
.../grsim => arch/sparc/cpu/leon3}/u-boot.lds | 0
board/gaisler/gr_cpci_ax2000/u-boot.lds | 143 --------------------
board/gaisler/gr_ep2s60/u-boot.lds | 143 --------------------
board/gaisler/gr_xc3s_1500/u-boot.lds | 145 ---------------------
4 files changed, 431 deletions(-)
rename {board/gaisler/grsim => arch/sparc/cpu/leon3}/u-boot.lds (100%)
delete mode 100644 board/gaisler/gr_cpci_ax2000/u-boot.lds
delete mode 100644 board/gaisler/gr_ep2s60/u-boot.lds
delete mode 100644 board/gaisler/gr_xc3s_1500/u-boot.ldsarch/sparc/cpu/leon3/u-boot.lds renamed from board/gaisler/grsim/u-boot.lds +0 -0
board/gaisler/gr_cpci_ax2000/u-boot.lds deleted +0 -143
143 lines not on this page · raw message
board/gaisler/gr_ep2s60/u-boot.lds deleted +0 -143
143 lines not on this page · raw message
board/gaisler/gr_xc3s_1500/u-boot.lds deleted +0 -145
145 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 1/2 sparc: merge LEON3 linker scripts
Quoted 7 lines · Masahiro Yamada
The linker scripts of LEON3
-
board/gaisler/grsim/u-boot.lds
-board/gaisler/gr_cpci_ax2000/u-boot.lds
-board/gaisler/gr_ep2s60/u-boot.lds
-board/gaisler/gr_xc3s_1500/u-boot.lds
Quoted 6 lines
are the same (except cosmetic differences such as indentation).
This commit merges them into
arch/sparc/cpu/leon3/u-boot.lds.Signed-off-by Masahiro Yamada <[email protected]>Cc Daniel Hellstrom <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140722/563b0c4f/attachment.pgp>
PATCH 2/2 sparc: merge LEON2 and LEON3 linker scripts
In reply to Masahiro YamadaThere is only one line diff between LEON2 and LEON3 linker scripts:
- arch/sparc/cpu/leon2/start.o (.text)
+ arch/sparc/cpu/leon3/start.o (.text)
They can be written in the same way:
*/start.o (.text)
So, board/gaisler/grsim_leon2/u-boot.lds
and arch/sparc/cpu/leon3/u-boot.lds
can be merged into arch/sparc/cpu/u-boot.lds.
---
arch/sparc/cpu/{leon3 => }/u-boot.lds | 6 +-
board/gaisler/grsim_leon2/u-boot.lds | 142 ----------------------------------
2 files changed, 2 insertions(+), 146 deletions(-)
rename arch/sparc/cpu/{leon3 => }/u-boot.lds (95%)
delete mode 100644 board/gaisler/grsim_leon2/u-boot.ldsarch/sparc/cpu/u-boot.lds renamed from arch/sparc/cpu/leon3/u-boot.lds +2 -4
@@ -1,7 +1,5 @@ /* - * Linker script for Gaisler Research AB's GRSIM LEON3 simulator. - * - * (C) Copyright 2007 + * (C) Copyright 2007-2008 * Daniel Hellstrom, Gaisler Research, daniel at gaisler.com. * * SPDX-License-Identifier: GPL-2.0+
@@ -43,7 +41,7 @@ SECTIONS _text = .; *(.start) - arch/sparc/cpu/leon3/start.o (.text) + */start.o (.text) /* 8k is the same as the PROM offset from end of main memory, (CONFIG_SYS_PROM_SIZE) */ . = ALIGN(8192); /* PROM CODE, Will be relocated to the end of memory,
board/gaisler/grsim_leon2/u-boot.lds deleted +0 -142
142 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 2/2 sparc: merge LEON2 and LEON3 linker scripts
Quoted 7 lines · Masahiro Yamada
There is only one line diff between LEON2 and LEON3 linker scripts:
-
arch/sparc/cpu/leon2/start.o(.text)
+arch/sparc/cpu/leon3/start.o(.text)They can be written in the same way:
Quoted 8 lines
*/start.o (.text)So,
board/gaisler/grsim_leon2/u-boot.lds
andarch/sparc/cpu/leon3/u-boot.lds
can be merged intoarch/sparc/cpu/u-boot.lds.Signed-off-by Masahiro Yamada <[email protected]>Cc Daniel Hellstrom <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140722/c07e570f/attachment.pgp>