[patch] Skip offsets when reading resolution files
Rafael Espindola
espindola@google.com
Mon Nov 16 19:45:00 GMT 2009
Currently lto1 gets confused when reading resolution files that
contains lines like
foo.a@123
in them. The problem is that the expected filename is only foo.a. The
attached patch fixes the problem by remembering and checking the
offset.
2009-11-16 Rafael Avila de Espindola <espindola@google.com>
* lto-elf.c (lto_file_init): Add offset argument.
(lto_elf_file_open): Record the offset.
* lto.c (lto_resolution_read): Change file_name into a lto_file
argument. Check offsets.
(lto_file_read): Update call to lto_resolution_read.
* lto.h (lto_file_struct): Add the offset field.
Cheers,
--
Rafael Ávila de Espíndola
More information about the Gcc-patches
mailing list