From 532fc81565104f64b33b3ac94dfcf0762209f751 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 24 Nov 2014 21:05:24 +0000 Subject: Disabled old and unsupported architectures. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@425 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 7 +++++++ src/arch/Makefile.am | 15 ++++++++++----- src/arch/processor.c | 6 +++--- src/format/elf/helper_x86.c | 3 +++ 4 files changed, 23 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2314027..d29ce85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 14-11-24 Cyrille Bagard + * src/arch/Makefile.am: + * src/arch/processor.c: + * src/format/elf/helper_x86.c: + Disable old and unsupported architectures. + +14-11-24 Cyrille Bagard + * src/analysis/binary.c: Load empty collections for all binaries. diff --git a/src/arch/Makefile.am b/src/arch/Makefile.am index 7dd51b9..1c63016 100644 --- a/src/arch/Makefile.am +++ b/src/arch/Makefile.am @@ -19,12 +19,16 @@ libarch_la_SOURCES = \ translate.h \ vmpa.h vmpa.c +# libarch_la_LIBADD = \ +# arm/libarcharm.la \ +# dalvik/libarchdalvik.la \ +# jvm/libarchjvm.la \ +# mips/libarchmips.la \ +# x86/libarchx86.la + libarch_la_LIBADD = \ arm/libarcharm.la \ - dalvik/libarchdalvik.la \ - jvm/libarchjvm.la \ - mips/libarchmips.la \ - x86/libarchx86.la + dalvik/libarchdalvik.la libarch_la_LDFLAGS = @@ -34,4 +38,5 @@ AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) -SUBDIRS = arm dalvik jvm mips x86 +#SUBDIRS = arm dalvik jvm mips x86 +SUBDIRS = arm dalvik diff --git a/src/arch/processor.c b/src/arch/processor.c index f7c8d85..2e678f6 100644 --- a/src/arch/processor.c +++ b/src/arch/processor.c @@ -333,9 +333,9 @@ bool init_all_processors(void) { _processors_list[APT_ARM] = g_armv7_processor_new(); _processors_list[APT_DALVIK] = g_dalvik_processor_new(); - _processors_list[APT_JVM] = g_jvm_processor_new(); - _processors_list[APT_MIPS] = g_mips_processor_new(); - _processors_list[APT_386] = g_x86_processor_new(); + //_processors_list[APT_JVM] = g_jvm_processor_new(); + //_processors_list[APT_MIPS] = g_mips_processor_new(); + //_processors_list[APT_386] = g_x86_processor_new(); return true; diff --git a/src/format/elf/helper_x86.c b/src/format/elf/helper_x86.c index af733a2..708a7e1 100644 --- a/src/format/elf/helper_x86.c +++ b/src/format/elf/helper_x86.c @@ -37,6 +37,9 @@ #include "../../arch/x86/instruction.h" +// Désactivation +#define g_x86_instruction_get_opcode(i) 0 + /* symbols.c : Récupère la désignation d'un symbole donné. */ extern const char *get_elf_symbol_name(GElfFormat *, const elf_shdr *, const elf_shdr *, off_t); -- cgit v0.11.2-87-g4458