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:34 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-06-21 23:05:29 +0200
commit47bd65ef057fb71b02b32741d5cfcaf03e2f0918 (patch)
treeb7313f7c7dda622ae418450fda27b0eda95ac480 /arch/arm/lib/sections.c
parentd026dec8751378473b4f12eb87717c8059472b3e (diff)
downloadu-boot-imx-47bd65ef057fb71b02b32741d5cfcaf03e2f0918.zip
u-boot-imx-47bd65ef057fb71b02b32741d5cfcaf03e2f0918.tar.gz
u-boot-imx-47bd65ef057fb71b02b32741d5cfcaf03e2f0918.tar.bz2
arm: make __rel_dyn_{start, end} compiler-generated
This change is only done where needed: some linker scripts may contain relocation symbols yet remain unchanged. __rel_dyn_start and __rel_dyn_end each requires its own output section; putting them in relocation sections changes their flags and breaks relocation. 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 03e846f..5921dd8 100644
--- a/arch/arm/lib/sections.c
+++ b/arch/arm/lib/sections.c
@@ -39,3 +39,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")));
+char __rel_dyn_start[0] __attribute__((section(".__rel_dyn_start")));
+char __rel_dyn_end[0] __attribute__((section(".__rel_dyn_end")));