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

Joakim Tjernlund joakim.tjernlund at transmode.se
Tue Oct 2 21:13:39 CEST 2012



>   *********************************************************************/
>  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



More information about the U-Boot mailing list