From 9c17d5a8f3d1a088540aabe76e178192d45505a4 Mon Sep 17 00:00:00 2001 From: "Koine Yuusuke(koinec)" Date: Mon, 2 Nov 2015 04:44:11 +0900 Subject: [PATCH] * WorkBackup: 2015/11/02(Mon) AM 04:43 --- libgoblin/drd64_libgoblin_type.h | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/libgoblin/drd64_libgoblin_type.h b/libgoblin/drd64_libgoblin_type.h index 458fd6c..bb5f657 100644 --- a/libgoblin/drd64_libgoblin_type.h +++ b/libgoblin/drd64_libgoblin_type.h @@ -63,12 +63,7 @@ Comment: #define LIBGOBLIN_BINFO_PHASE_BINREAD 0x02 #define LIBGOBLIN_BINFO_PHASE_ANALYZED 0x03 - typedef struct { - /* BinaryInfo Struct ID */ - int i_id; - Byte b_phase; - /* Binary-File Info. */ int i_fd; char str_filepath[DRD64_MAX_PATH]; @@ -77,20 +72,38 @@ typedef struct { DWord dw_size; Byte *pb_binary; + /* Binary-Format Depending Info. (ELF)*/ + void *p_elf; +} LibGoblin_BinaryFile; + + +typedef struct { + /* BinaryInfo Struct ID */ + int i_id; + Byte b_phase; + /* BinaryInfo Common Info. */ Byte b_type; Byte b_endian; Byte b_bits; - /* Binary-Format Depending Info. (ELF)*/ - void *p_format; /* Debug-Format Depending Info. (DWarf) */ void *p_debug; - - /* Section Table */ - int i_num_sectbl; - //LibGoblin_SectionTable *p_sectbl; + LibGoblin_BinaryFile t_bfile[3]; + + /* Exec. File ===========================================*/ + /* Binary-File Info. */ + int i_fd; + char str_filepath[DRD64_MAX_PATH]; + + /* Binary-File Memory Image Access Info. */ + DWord dw_size; + Byte *pb_binary; + + /* Binary-Format Depending Info. (ELF)*/ + void *p_format; + } LibGoblin_BinaryInfo; -- 2.11.0