------- Comment #3 from rguenth at gcc dot gnu dot org 2009-09-29 12:09 ------- Hm. Even lto_read_file_options causes unaligned accesses in some cases. It looks like the ELF sections in the wpa files are no aligned:
Section Headers: [Nr] Name Type Address Offset Size EntSize Flags Link Info Align [ 0] NULL 0000000000000000 00000000 0000000000000000 0000000000000000 0 0 0 [ 1] .gnu.lto_main PROGBITS 0000000000000000 00000040 00000000000002c8 0000000000000000 0 0 1 [ 2] .gnu.lto_myprintf PROGBITS 0000000000000000 00000308 0000000000000322 0000000000000000 0 0 1 [ 3] .gnu.lto_.cgraph PROGBITS 0000000000000000 0000062a 00000000000000c6 0000000000000000 0 0 1 ... properly aligning the data in lto_elf_append_data is needed, but only for the first data block in a section. I have a hack^Wpatch. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-09-29 12:09:04 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40754