https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91078

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
I can confirm that on a x86_64 machine with -fsanitize=alignment:

$ gcc main.o -flto
../../gcc/lto/lto-common.c:2202:36: runtime error: reference binding to
misaligned address 0x7f997df9e0a7 for type 'const struct lto_section', which
requires 4 byte alignment
0x7f997df9e0a7: note: pointer points here
 00 1b c0 02 09  00 00 00 03 00 00 00 28  b5 2f fd 60 77 00 d5 08  00 e6 d1 3d
37 20 01 09  00 bf 53
             ^ 
../../gcc/lto/lto-common.c:2202:33: runtime error: load of misaligned address
0x7f997df9e0a7 for type 'const struct lto_section', which requires 4 byte
alignment
0x7f997df9e0a7: note: pointer points here
 00 1b c0 02 09  00 00 00 03 00 00 00 28  b5 2f fd 60 77 00 d5 08  00 e6 d1 3d
37 20 01 09  00 bf 53
             ^

Reply via email to