This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Skip offsets when reading resolution files
- From: Rafael Espindola <espindola at google dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Diego Novillo <dnovillo at google dot com>
- Date: Mon, 16 Nov 2009 14:39:58 -0500
- Subject: [patch] Skip offsets when reading resolution files
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