summaryrefslogtreecommitdiff
path: root/plugins/readelf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-21 12:08:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-21 12:08:29 (GMT)
commit7e5b1add6fdeb74b2356acf8ccf7009f45cfa85e (patch)
treeb7373554017e97fcbe24db79d9818272764e858d /plugins/readelf
parent5dd935b27a765177960bdfe4d2fcb296cbbd41da (diff)
Changed the hierarchy of format objects.
Diffstat (limited to 'plugins/readelf')
-rw-r--r--plugins/readelf/strtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/readelf/strtab.c b/plugins/readelf/strtab.c
index 19b44bf..262be56 100644
--- a/plugins/readelf/strtab.c
+++ b/plugins/readelf/strtab.c
@@ -118,7 +118,7 @@ static void parse_elf_string_table(GElfFormat *format, GPreloadInfo *info, const
{
irange = g_arch_instruction_get_range(instr);
- symbol = g_string_symbol_new_read_only(SET_GUESS, base, irange);
+ symbol = g_string_symbol_new_read_only(SET_GUESS, G_KNOWN_FORMAT(base), irange);
g_object_ref(G_OBJECT(symbol));
@@ -167,7 +167,7 @@ void show_elf_section_string_table(GElfFormat *format, GPreloadInfo *info, GtkSt
mrange_t range; /* Espace à parcourir */
bool found; /* Détection d'une section */
- content = g_binary_format_get_content(G_BIN_FORMAT(format));
+ content = g_known_format_get_content(G_KNOWN_FORMAT(format));
found = find_elf_section_range_by_name(format, ".interp", &range);