diff options
Diffstat (limited to 'plugins/readelf/program.c')
-rw-r--r-- | plugins/readelf/program.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/readelf/program.c b/plugins/readelf/program.c index 6912828..ae10369 100644 --- a/plugins/readelf/program.c +++ b/plugins/readelf/program.c @@ -339,7 +339,7 @@ bool annotate_elf_program_header_table(GElfFormat *format) bool result; /* Bilan à retourner */ const elf_header *header; /* En-tête principale */ SourceEndian endian; /* Boutisme utilisé */ - off_t offset; /* Tête de lecture du bbinaire */ + phys_t offset; /* Tête de lecture du bbinaire */ vmpa2t pos; /* Localisation des symboles */ uint16_t e_phnum; /* Nombre d'éléments 'Program' */ uint16_t i; /* Boucle de parcours */ @@ -351,7 +351,8 @@ bool annotate_elf_program_header_table(GElfFormat *format) offset = ELF_HDR(format, *header, e_phoff); - init_vmpa(&pos, offset, 0x5500); + if (!g_exe_format_translate_offset_into_vmpa(G_EXE_FORMAT(format), offset, &pos)) + return false; e_phnum = ELF_HDR(format, *header, e_phnum); |