On Thu, Jul 4, 2019 at 9:01 AM Martin Liška wrote:
>
> Hi.
>
> The patch fixes wrong assignment from a char * to lto_section_header
> that is seen on strict alignment targets.
>
> I verified it fixes the problem with -fsanitize=undefined:
>
> gcc main.o -flto
> ../../gcc/lto/lto-common.c:2202:36:
Hi Martin,
> The patch fixes wrong assignment from a char * to lto_section_header
> that is seen on strict alignment targets.
>
> I verified it fixes the problem with -fsanitize=undefined:
>
> gcc main.o -flto
> ../../gcc/lto/lto-common.c:2202:36: runtime error: reference binding to
> misaligned
Hi.
The patch fixes wrong assignment from a char * to lto_section_header
that is seen on strict alignment targets.
I verified it fixes the problem with -fsanitize=undefined:
gcc main.o -flto
../../gcc/lto/lto-common.c:2202:36: runtime error: reference binding to
misaligned address 0x7f64dac090a