summaryrefslogtreecommitdiff
path: root/lto-plugin
diff options
context:
space:
mode:
authorespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-19 15:30:04 +0000
committerespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-19 15:30:04 +0000
commit8189766950a1fe0ce81d80fd63a73fce5d85d68c (patch)
tree2bceb2caf367c96e78ef2f30f853dfb57daaa53c /lto-plugin
parent3808c1b8f13faa146aa233f4d9218cc0dbc11e15 (diff)
downloadgcc-8189766950a1fe0ce81d80fd63a73fce5d85d68c.tar.gz
2009-11-19 Rafael Avila de Espindola <espindola@google.com>
PR bootstrap/42096 * lto-plugin.c (claim_file_handler): Print offsets in hex. 2009-11-19 Rafael Avila de Espindola <espindola@google.com> PR bootstrap/42096 * lto-elf.c (lto_elf_file_open): Use lto_parse_hex. * lto.c (lto_parse_hex): New. (lto_resolution_read): Use lto_parse_hex. * lto.h (lto_parse_hex): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154330 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'lto-plugin')
-rw-r--r--lto-plugin/ChangeLog5
-rw-r--r--lto-plugin/lto-plugin.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog
index d95cf05d9d0..d6e939419af 100644
--- a/lto-plugin/ChangeLog
+++ b/lto-plugin/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-19 Rafael Avila de Espindola <espindola@google.com>
+
+ PR bootstrap/42096
+ * lto-plugin.c (claim_file_handler): Print offsets in hex.
+
2009-11-12 Rafael Avila de Espindola <espindola@google.com>
* lto-plugin.c (write_resolution): Assume resolution_file is set.
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 8cbafbc46cd..4a8a0ff5b7d 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -551,7 +551,7 @@ claim_file_handler (const struct ld_plugin_input_file *file, int *claimed)
Elf *archive;
off_t offset;
/* We pass the offset of the actual file, not the archive header. */
- int t = asprintf (&objname, "%s@%" PRId64, file->name,
+ int t = asprintf (&objname, "%s@0x%" PRIx64, file->name,
(int64_t) file->offset);
check (t >= 0, LDPL_FATAL, "asprintf failed");
lto_file.name = objname;