Patchwork [U-Boot] nds32: fix data section of linker script

login
register
mail settings
Submitter Macpaul Lin
Date Nov. 9, 2011, 8:29 a.m.
Message ID <1320827374-11097-1-git-send-email-macpaul@andestech.com>
Download mbox | patch
Permalink /patch/124488/
State Accepted
Delegated to: Macpaul Lin
Headers show

Comments

Macpaul Lin - Nov. 9, 2011, 8:29 a.m.
Make linker script handles .data.rel sections.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Tested-by: Macpaul Lin <macpaul@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
---
 arch/nds32/cpu/n1213/u-boot.lds |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Macpaul Lin - Nov. 9, 2011, 8:32 a.m.
Hi Macpaul,

2011/11/9 Macpaul Lin <macpaul@andestech.com>:
> Make linker script handles .data.rel sections.
>
> Signed-off-by: Macpaul Lin <macpaul@andestech.com>
> Tested-by: Macpaul Lin <macpaul@gmail.com>
> Cc: Mike Frysinger <vapier@gentoo.org>

Applied to u-boot-nds32/master, thanks.

Best regards,
Macpaul Lin

Patch

diff --git a/arch/nds32/cpu/n1213/u-boot.lds b/arch/nds32/cpu/n1213/u-boot.lds
index 45221ee..1903420 100644
--- a/arch/nds32/cpu/n1213/u-boot.lds
+++ b/arch/nds32/cpu/n1213/u-boot.lds
@@ -41,7 +41,7 @@  SECTIONS
 	.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
 
 	. = ALIGN(4);
-	.data : { *(.data) }
+	.data : { *(.data*) }
 
 	. = ALIGN(4);