Patchwork [U-Boot,1/2] openrisc: specify a memory region for u_boot_lists

login
register
mail settings
Submitter Stefan Kristiansson
Date May 1, 2013, 7:32 p.m.
Message ID <1367436766-32382-2-git-send-email-stefan.kristiansson@saunalahti.fi>
Download mbox | patch
Permalink /patch/240804/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Stefan Kristiansson - May 1, 2013, 7:32 p.m.
Since there are two memory areas defined, vectors and ram,
the linker will error when neither of them are specified for a
section.

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
---
 board/openrisc/openrisc-generic/u-boot.lds | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/board/openrisc/openrisc-generic/u-boot.lds b/board/openrisc/openrisc-generic/u-boot.lds
index 9024f30..d9bb7b7 100644
--- a/board/openrisc/openrisc-generic/u-boot.lds
+++ b/board/openrisc/openrisc-generic/u-boot.lds
@@ -30,7 +30,7 @@  SECTIONS
 	 . = ALIGN(4);
 	 .u_boot_list : {
 		KEEP(*(SORT(.u_boot_list*)));
-	 }
+	 } > ram
 
 	.rodata : {
 		*(.rodata);