summaryrefslogtreecommitdiff
path: root/plugins/readelf/header.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-03-29 17:24:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-03-29 17:24:22 (GMT)
commit52e036040b5e0ad8acde3d467ac8d9ca43ed414c (patch)
tree9f869999534857786fc8e0870772d8e5cabef2fb /plugins/readelf/header.c
parent057cee1c3c109639af8f30e39e00f4884a353f31 (diff)
Used real virtual addresses when describing ELF items.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@496 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/readelf/header.c')
-rw-r--r--plugins/readelf/header.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/readelf/header.c b/plugins/readelf/header.c
index 5fbd769..d4dd706 100644
--- a/plugins/readelf/header.c
+++ b/plugins/readelf/header.c
@@ -60,7 +60,8 @@ bool annotate_elf_header(GElfFormat *format)
header = g_elf_format_get_header(format);
endian = g_elf_format_get_endianness(format);
- init_vmpa(&pos, 0, 0x3333);
+ if (!g_exe_format_translate_offset_into_vmpa(G_EXE_FORMAT(format), 0, &pos))
+ return false;
/* ELFMAG (0) */