summaryrefslogtreecommitdiff
path: root/plugins/readelf/section.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-04-30 19:21:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-04-30 19:21:29 (GMT)
commit33880cfe5e5de8b81e8a825878b3bbe8ef736f3f (patch)
tree9dcbe3e9e9903e447eeac916be689cd2d39614de /plugins/readelf/section.c
parentb16071a35adaf95d5e67b0dd984e9ba9d7ba28f9 (diff)
Parsed Dex format fields using the new generic parser.
Diffstat (limited to 'plugins/readelf/section.c')
-rw-r--r--plugins/readelf/section.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/readelf/section.c b/plugins/readelf/section.c
index e689aac..6161892 100644
--- a/plugins/readelf/section.c
+++ b/plugins/readelf/section.c
@@ -370,21 +370,21 @@ static bool annotate_elf_section_header(GElfFormat *format, SourceEndian endian,
bformat = G_BIN_FORMAT(format);
- result = parse_field_definitions(&name_field, 1, bformat, pos);
+ result = parse_field_definitions(&name_field, 1, bformat, pos, NULL);
if (result)
- result = parse_field_definitions(_elf_sh_type, ARRAY_SIZE(_elf_sh_type), bformat, pos);
+ result = parse_field_definitions(PARSING_DEFS(_elf_sh_type), bformat, pos, NULL);
if (format->is_32b)
{
if (result)
{
flags_field.size = MDS_32_BITS;
- result = parse_field_definitions(&flags_field, 1, bformat, pos);
+ result = parse_field_definitions(&flags_field, 1, bformat, pos, NULL);
}
if (result)
- result = parse_field_definitions(_elf_shdr_32b, ARRAY_SIZE(_elf_shdr_32b), bformat, pos);
+ result = parse_field_definitions(PARSING_DEFS(_elf_shdr_32b), bformat, pos, NULL);
}
else
@@ -392,11 +392,11 @@ static bool annotate_elf_section_header(GElfFormat *format, SourceEndian endian,
if (result)
{
flags_field.size = MDS_64_BITS;
- result = parse_field_definitions(&flags_field, 1, bformat, pos);
+ result = parse_field_definitions(&flags_field, 1, bformat, pos, NULL);
}
if (result)
- result = parse_field_definitions(_elf_shdr_64b, ARRAY_SIZE(_elf_shdr_64b), bformat, pos);
+ result = parse_field_definitions(PARSING_DEFS(_elf_shdr_64b), bformat, pos, NULL);
}