diff options
Diffstat (limited to 'src/format/elf/elf.c')
-rw-r--r-- | src/format/elf/elf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/format/elf/elf.c b/src/format/elf/elf.c index b659dd7..cc84335 100644 --- a/src/format/elf/elf.c +++ b/src/format/elf/elf.c @@ -57,7 +57,7 @@ static void g_elf_format_class_init(GElfFormatClass *); static void g_elf_format_init(GElfFormat *); /* Indique le type d'architecture visée par le format. */ -static FormatTargetMachine g_elf_format_get_target_machine(const GElfFormat *); +static const char *g_elf_format_get_target_machine(const GElfFormat *); /* Etend la définition des portions au sein d'un binaire. */ static void g_elf_format_refine_portions(const GElfFormat *, GBinPortion *); @@ -239,27 +239,27 @@ GBinFormat *g_elf_format_new(const bin_t *content, off_t length) * * ******************************************************************************/ -static FormatTargetMachine g_elf_format_get_target_machine(const GElfFormat *format) +static const char *g_elf_format_get_target_machine(const GElfFormat *format) { - FormatTargetMachine result; /* Identifiant à retourner */ + const char *result; /* Identifiant à retourner */ switch (ELF_HDR(format, format->header, e_machine)) { case EM_386: - result = FTM_386; + result = "i386"; break; case EM_MIPS: - result = FTM_MIPS; + result = "mips"; break; case EM_ARM: - result = FTM_ARM; + result = "armv7"; break; case EM_NONE: default: - result = FTM_NONE; + result = NULL; break; } |