[U-Boot] uboot.lds issue

Chander M. Kashyap chander.kashyap at gmail.com
Thu Mar 24 08:12:07 CET 2011


Hi. I am getting data abort while using original u-boot.lds file.
If i allign bss to 4 bytes rather than using " .bss __rel_dyn_start
(OVERLAY) : {".
With existing code i am getting odd address leading to data abort.
PFA the patch.

Is this a right approach to fix the data abort?

regards,
Chander


 arch/arm/cpu/armv7/u-boot.lds |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/cpu/armv7/u-boot.lds b/arch/arm/cpu/armv7/u-boot.lds
index 5725c30..2a1888e 100644
--- a/arch/arm/cpu/armv7/u-boot.lds
+++ b/arch/arm/cpu/armv7/u-boot.lds
@@ -66,7 +66,8 @@ SECTIONS
                *(.dynsym)
        }

-       .bss __rel_dyn_start (OVERLAY) : {
+       . = ALIGN(4);
+       .bss : {
                __bss_start = .;
                *(.bss)
                 . = ALIGN(4);
--


-- 
thanks and regards,
Chander M. Kashyap
Contact Number: +919740798700
------- TENSION LENE KA NAHI, DENE KE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ARMV7-u-boot.lds-bss-address-align-to-4-bytes.patch
Type: application/octet-stream
Size: 731 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110324/ea5695f8/attachment.obj 


More information about the U-Boot mailing list