summaryrefslogtreecommitdiff
path: root/arch/arm/lib/sections.c
diff options
context:
space:
mode:
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-06-11 14:17:33 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-06-21 23:05:05 +0200
commitd026dec8751378473b4f12eb87717c8059472b3e (patch)
tree57b335731bbd1d1e445ad351ca43bfe49322da99 /arch/arm/lib/sections.c
parentdf84502edffd1da48588a212b402602f032ed53d (diff)
downloadu-boot-imx-d026dec8751378473b4f12eb87717c8059472b3e.zip
u-boot-imx-d026dec8751378473b4f12eb87717c8059472b3e.tar.gz
u-boot-imx-d026dec8751378473b4f12eb87717c8059472b3e.tar.bz2
arm: make __image_copy_{start, end} compiler-generated
This change is only done where needed: some linker scripts may contain __image_copy_{start,end} yet remain unchanged. Also, __image_copy_end needs its own section; putting it in relocation sections changes their flags and makes relocation break. Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net> Tested-by: Lubomir Popov <lpopov@mm-sol.com> Tested-by: Jeroen Hofstee <jeroen@myspectrum.nl> Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Diffstat (limited to 'arch/arm/lib/sections.c')
-rw-r--r--arch/arm/lib/sections.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/lib/sections.c b/arch/arm/lib/sections.c
index e52fec9..03e846f 100644
--- a/arch/arm/lib/sections.c
+++ b/arch/arm/lib/sections.c
@@ -37,3 +37,5 @@
char __bss_start[0] __attribute__((section(".__bss_start")));
char __bss_end[0] __attribute__((section(".__bss_end")));
+char __image_copy_start[0] __attribute__((section(".__image_copy_start")));
+char __image_copy_end[0] __attribute__((section(".__image_copy_end")));