------- Comment #3 from lauro dot venancio at gmail dot com 2007-12-03 23:42 ------- I think I'm facing a related problem. GCC is emitting unaligned array elements.
struct ccstm { int32_t val; const char descr[]; }; static const struct ccstm canon_d30custom[] = { { 1, "Long exposure noise reduction" }, { 2, "Shutter/AE lock buttons" }, { 3, "Mirror lockup" } }; produces this assembly for arm-linux-gnueabi: .align 2 canon_d30custom: .word 1 .ascii "Long exposure noise reduction\000" .word 2 .ascii "Shutter/AE lock buttons\000" .word 3 .ascii "Mirror lockup\000" Note that the second and the third array element are unaligned. -- lauro dot venancio at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lauro dot venancio at gmail | |dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28865