[coreboot] [Coreboot] Misalignment with GCC 4.9.1

ron minnich rminnich at gmail.com
Tue Oct 14 08:47:30 CEST 2014


Ah, peter, thanks for asking this question. Yes, it's very good to
avoid gcc-isms. We have had many, and probably have some left, but
it's nice to avoid them.

ron

On Mon, Oct 13, 2014 at 6:18 PM, Peter Stuge <peter at stuge.se> wrote:
> Lin, Ryan wrote:
>> If we add aligned(4) to the define as the following :
>>
>> #define BOOT_STATE_INIT_ATTR  __attribute__ ((used, aligned(4), section (".bs_init)))
>>
>> We can get 4-byte alignment for .bs_init.
>>
>> What is your thoughts on this?
>
> Is that a GCC extension?
>
> The coreboot codebase also supports other compilers.
>
>
> //Peter
>
> --
> coreboot mailing list: coreboot at coreboot.org
> http://www.coreboot.org/mailman/listinfo/coreboot



More information about the coreboot mailing list