Loader script updates for OpenRISC
Stefan Kristiansson
maintainercover Loader script updates for OpenRISC
This set of patches does:
Fix a bug in the openrisc-generic u-boot.lds linker script that would cause an error due to that no memory region was specified for u_boot_lists.
And then move the above mentioned file into arch/openrisc/cpu/ to unify the linker script for all openrisc boards (we only have one board).
Stefan Kristiansson (2):
openrisc: specify a memory region for u_boot_lists
openrisc: move board linker script(s) to a common in cpu/
arch/openrisc/config.mk | 2 ++
{board/openrisc/openrisc-generic => arch/openrisc/cpu}/u-boot.lds | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
rename {board/openrisc/openrisc-generic => arch/openrisc/cpu}/u-boot.lds (98%)Signature · 1 line
1.8.1.2
Stefan Kristiansson
maintainerPATCH 1/2 openrisc: specify a memory region for u_boot_lists
Since there are two memory areas defined, vectors and ram, the linker will error when neither of them are specified for a section.
--- board/openrisc/openrisc-generic/u-boot.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/openrisc/openrisc-generic/u-boot.lds +1 -1
@@ -30,7 +30,7 @@ SECTIONS . = ALIGN(4); .u_boot_list : { KEEP(*(SORT(.u_boot_list*))); - } + } > ram .rodata : { *(.rodata);
Signature · 1 line
1.8.1.2
Stefan Kristiansson
maintainerPATCH 2/2 openrisc: move board linker script(s) to a common in cpu/
In reply to Stefan KristianssonUnifies the openrisc boards linker scripts into a common one.
---
arch/openrisc/config.mk | 2 ++
{board/openrisc/openrisc-generic => arch/openrisc/cpu}/u-boot.lds | 0
2 files changed, 2 insertions(+)
rename {board/openrisc/openrisc-generic => arch/openrisc/cpu}/u-boot.lds (100%)arch/openrisc/config.mk +2 -0
@@ -25,3 +25,5 @@ CROSS_COMPILE ?= or32-elf- PLATFORM_CPPFLAGS += -DCONFIG_OPENRISC -D__OR1K__ -ffixed-r10 CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000 + +LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds
arch/openrisc/cpu/u-boot.lds renamed from board/openrisc/openrisc-generic/u-boot.lds +0 -0
Signature · 1 line
1.8.1.2
cover Loader script updates for OpenRISC
In reply to Stefan KristianssonQuoted 6 lines · Stefan Kristiansson
This set of patches does:
Fix a bug in the openrisc-generic
u-boot.ldslinker script that would cause an error due to that no memory region was specified foru_boot_lists.
Quoted 7 lines
And then move the above mentioned file into
arch/openrisc/cpu/to unify the linker script for all openrisc boards (we only have one board).Stefan Kristiansson (2):
openrisc: specify a memory region foru_boot_lists
openrisc: move board linker script(s) to a common in cpu/
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/20130510/7f105ba7/attachment.pgp>