[U-Boot] [RFC] ARM: prevent misaligned array inits

Joakim Tjernlund
2012-10-02T19:13:39Z

> *********************************************************************/
> void display_board_info(u32 btype)
> {
> - char cpu_2420[] = "2420"; /* cpu type */
> - char cpu_2422[] = "2422";
> - char cpu_2423[] = "2423";
> - char db_men[] = "Menelaus"; /* board type */
> - char db_ip[] = "IP";
> - char mem_sdr[] = "mSDR"; /* memory type */
> - char mem_ddr[] = "mDDR";
> - char t_tst[] = "TST"; /* security level */
> - char t_emu[] = "EMU";
> - char t_hs[] = "HS";
> - char t_gp[] = "GP";
> - char unk[] = "?";
> + char *cpu_2420 = "2420"; /* cpu type */
> + char *cpu_2422 = "2422";
> + char *cpu_2423 = "2423";
> + char *db_men = "Menelaus"; /* board type */
> + char *db_ip = "IP";
> + char *mem_sdr = "mSDR"; /* memory type */
> + char *mem_ddr = "mDDR";
> + char *t_tst = "TST"; /* security level */
> + char *t_emu = "EMU";
> + char *t_hs = "HS";
> + char *t_gp = "GP";
> + char *unk = "?";

hmm, on ppc I think this will cause relocation entries which will build size.

Jocke