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-----

Attachment: 0001-ARMV7-u-boot.lds-bss-address-align-to-4-bytes.patch
Description: Binary data

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to