u-boot/arch
Peng Fan d47cb0b61a arm: discard relocation entries for secure text
The code such as PSCI in section named secure is bundled with
u-boot image, and when bootm, the code will be copied to their
runtime address same to compliation/linking address -
CONFIG_ARMV7_SECURE_BASE.

When compile the PSCI code and link it into the u-boot image,
there will be relocation entries in .rel.dyn section for PSCI.
Actually, we do not needs these relocation entries.

If still keep the relocation entries in .rel.dyn section,
r0 at line 103 and 106 in arch/arm/lib/relocate.S may be an invalid
address which may not support read/write for one SoC.
102         /* relative fix: increase location by offset */
103         add     r0, r0, r4
104         ldr     r1, [r0]
105         add     r1, r1, r4
106         str     r1, [r0]

So discard them to avoid touching the relocation entry in
arch/arm/lib/relocate.S.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: York Sun <yorksun@freescale.com>
Cc: Hans De Goede <hdegoede@redhat.com>
Cc: Ian Campbell <ijc@hellion.org.uk>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@konsulko.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
2015-11-12 17:31:02 +01:00
..
arc Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
arm arm: discard relocation entries for secure text 2015-11-12 17:31:02 +01:00
avr32 avr32: Use the generic bitops headers 2015-11-05 10:52:31 -05:00
blackfin Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
m68k Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
microblaze Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
mips Merge branch 'master' of git://git.denx.de/u-boot-mips 2015-11-06 09:17:17 -05:00
nds32 nds32: Use the generic bitops headers 2015-11-05 10:52:21 -05:00
nios2 nios2: add 10m50 devboard support 2015-11-12 08:26:59 +08:00
openrisc openrisc: Use the generic bitops headers 2015-11-05 10:52:19 -05:00
powerpc powerpc: Finish updating u-boot*lds scripts for newer binutils 2015-11-10 09:20:29 -05:00
sandbox Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
sh sh: Use the generic bitops headers 2015-11-05 10:52:09 -05:00
sparc Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
x86 Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig arm, powerpc: select SYS_GENERIC_BOARD 2015-10-24 13:50:38 -04:00