ColdFire: Fix alignment issue after CONFIG_IDENT_STRING in start.S
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>
Fri, 28 Mar 2008 13:47:45 +0000 (08:47 -0500)
committerJohn Rigby <jrigby@freescale.com>
Mon, 31 Mar 2008 21:10:32 +0000 (15:10 -0600)
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 <Tsi-Chung.Liew@freescale.com>
Acked-by: John Rigby <jrigby@freescale.com>
cpu/mcf5227x/start.S
cpu/mcf523x/start.S
cpu/mcf52x2/start.S
cpu/mcf532x/start.S
cpu/mcf5445x/start.S
cpu/mcf547x_8x/start.S

index 0e2db1261fe7023acbc33cdbd306bd4adb0b902a..1b47c9775df99f5d46837eaa3cfa71886babd483 100644 (file)
@@ -354,3 +354,4 @@ version_string:
        .ascii U_BOOT_VERSION
        .ascii " (", __DATE__, " - ", __TIME__, ")"
        .ascii CONFIG_IDENT_STRING, "\0"
+       .align 4
index 2bd603db66902c22e29d10abeae6083b75189b7d..ad04c0984a8fdacbd6ad331731732d646b66a6f5 100644 (file)
@@ -338,3 +338,4 @@ version_string:
        .ascii U_BOOT_VERSION
        .ascii " (", __DATE__, " - ", __TIME__, ")"
        .ascii CONFIG_IDENT_STRING, "\0"
+       .align 4
index 9e496a4578b9916fb6c249fd70d5cff95e3a52f7..2bc0df39cadccbcc13f51d8a00a1de98b67afe56 100644 (file)
@@ -476,3 +476,4 @@ version_string:
        .ascii U_BOOT_VERSION
        .ascii " (", __DATE__, " - ", __TIME__, ")"
        .ascii CONFIG_IDENT_STRING, "\0"
+       .align 4
index 61be2eac695b122d81782849e198bc8fc8cd1d37..a524f70783088a35173cb564803f5b280b3a961c 100644 (file)
@@ -333,3 +333,4 @@ version_string:
        .ascii U_BOOT_VERSION
        .ascii " (", __DATE__, " - ", __TIME__, ")"
        .ascii CONFIG_IDENT_STRING, "\0"
+       .align 4
index d64c5af0db8771c9ded63545822fc75998267204..0c5194acdb03801e1d72c365ae21aef231111b4f 100644 (file)
@@ -379,3 +379,4 @@ version_string:
        .ascii U_BOOT_VERSION
        .ascii " (", __DATE__, " - ", __TIME__, ")"
        .ascii CONFIG_IDENT_STRING, "\0"
+       .align 4
index 442665f2506e55708b1aa78facb348b8bc35a816..c12d7a0fcbb24605e422b30c460e3153a975aee3 100644 (file)
@@ -359,3 +359,4 @@ version_string:
        .ascii U_BOOT_VERSION
        .ascii " (", __DATE__, " - ", __TIME__, ")"
        .ascii CONFIG_IDENT_STRING, "\0"
+       .align 4