u-boot-brain/arch/arm/cpu
Manfred Schlaegl cdde7de036 ARM: fixed relocation using proper alignment
Using u-boot-2017.05 on i.MX6UL we ran into following problem:
Initially U-Boot could be started normally.
If we added one random command in configuration, the newly generated
image hung at startup (last output was DRAM:  256 MiB).

We tracked this down to a data abort within relocation (relocated_code).

relocated_code in arch/arm/lib/relocate.S copies 8 bytes per loop
iteration until the source pointer is equal to __image_copy_end.
In a good case __image_copy_end was aligned to 8 bytes, so the loop
stopped as suggested, but in an errornous case __image_copy_end was
not aligned to 8 bytes, so the loop ran out of bounds and caused a
data abort exception.

This patches solves the issue by aligning __image_copy_end to 8 byte
using the linker script related to arm.

I don't know if it's the correct way to solve this, so some review would
be very appreciated.
2017-06-12 08:36:18 -04:00
..
arm11 ARM: Move SYS_CACHELINE_SIZE over to Kconfig 2016-08-26 17:04:46 -04:00
arm720t arm: arm720t: Support CONFIG_SKIP_LOWLEVEL_INIT_ONLY 2017-06-09 13:39:31 -06:00
arm920t common: ep93xx: Move arch-specific declarations out of common 2017-06-05 12:31:22 -04:00
arm926ejs arch/arm/cpu/arm926ejs/omap: Remove 2017-05-15 10:39:55 -04:00
arm946es arm: Allow skipping of low-level init with I-cache on 2016-06-12 23:49:38 +02:00
arm1136 treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
arm1176 arm: add save_boot_params for ARM1176 2016-11-21 14:07:31 -05:00
armv7 armv7: Mark the default lowlevel_init function as weak 2017-06-05 11:02:23 -04:00
armv7m armv7m: Fix larger builds 2017-06-05 14:13:14 -04:00
armv8 arm64: Add NOLOAD attribute NOLOAD to .bss sections 2017-06-05 14:13:12 -04:00
pxa arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD 2017-03-18 20:28:01 -04:00
sa1100 Remove various unused interrupt related code 2017-04-06 20:42:18 -04:00
Makefile Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
u-boot-spl.lds spl: arm: Make sure to include all of the u_boot_list entries 2016-03-16 15:27:55 -04:00
u-boot.lds ARM: fixed relocation using proper alignment 2017-06-12 08:36:18 -04:00