From 9b46432fc65ce0f0826b32e4f15c15b33ccb8d42 Mon Sep 17 00:00:00 2001 From: TsiChung Liew Date: Fri, 28 Mar 2008 08:47:45 -0500 Subject: ColdFire: Fix alignment issue after CONFIG_IDENT_STRING in start.S When the version_string function in start.S is not 4-byte align, it will cause the compiler generates "unaligned opcodes detected in executable segment". This issue affects all ColdFire CPUs. By adding .align 4 after CONFIG_IDENT_STRING, it will pad 0's if it is not aligned. Signed-off-by: TsiChung Liew Acked-by: John Rigby --- cpu/mcf52x2/start.S | 1 + 1 file changed, 1 insertion(+) (limited to 'cpu/mcf52x2') diff --git a/cpu/mcf52x2/start.S b/cpu/mcf52x2/start.S index 9e496a457..2bc0df39c 100644 --- a/cpu/mcf52x2/start.S +++ b/cpu/mcf52x2/start.S @@ -476,3 +476,4 @@ version_string: .ascii U_BOOT_VERSION .ascii " (", __DATE__, " - ", __TIME__, ")" .ascii CONFIG_IDENT_STRING, "\0" + .align 4 -- cgit v1.2.3