Expose section type for coff, elf and macho formats ##bin

This commit is contained in:
pancake 2022-11-11 16:12:59 +01:00 committed by pancake
parent 3ee8e4a4ef
commit bf82974ad3
37 changed files with 132075 additions and 131837 deletions

View File

@ -33,7 +33,7 @@ R_IPI bool r_coff_supported_arch(const ut8 *buf) {
R_IPI char *r_coff_symbol_name(RBinCoffObj *obj, void *ptr) {
char n[256] = {0};
int len = 0, offset = 0;
int len = 0;
union {
char name[8];
struct {
@ -47,7 +47,7 @@ R_IPI char *r_coff_symbol_name(RBinCoffObj *obj, void *ptr) {
if (p->zero) {
return r_str_ndup (p->name, 8);
}
offset = obj->hdr.f_symptr + obj->hdr.f_nsyms * sizeof (struct coff_symbol) + p->offset;
ut64 offset = obj->hdr.f_symptr + (obj->hdr.f_nsyms * sizeof (struct coff_symbol) + p->offset);
if (offset > obj->size) {
return NULL;
}

View File

@ -46,6 +46,10 @@
#define COFF_FLAGS_TI_F_BIG 0x0200
#define COFF_FLAGS_TI_F_LITTLE 0x0100
#define COFF_STYP_TEXT 0x20
#define COFF_STYP_DATA 0x40
#define COFF_STYP_BSS 0x80
#define COFF_SCN_TYPE_NO_PAD 0x00000008
#define COFF_SCN_CNT_CODE 0x00000020
#define COFF_SCN_CNT_INIT_DATA 0x00000040

View File

@ -349,12 +349,12 @@ static int init_phdr(ELFOBJ *bin) {
}
static int init_shdr(ELFOBJ *bin) {
r_return_val_if_fail (bin && !bin->shdr, false);
ut32 shdr_size;
ut8 shdr[sizeof (Elf_(Shdr))] = {0};
size_t i, j, len;
r_return_val_if_fail (bin && !bin->shdr, false);
if (!UT32_MUL (&shdr_size, bin->ehdr.e_shnum, sizeof (Elf_(Shdr)))) {
return false;
}

View File

@ -34,7 +34,6 @@
#define R_BIN_ELF_XWORD_MAX UT64_MAX
#endif
typedef struct r_bin_elf_section_t {
ut64 offset;
ut64 rva;

View File

@ -2282,6 +2282,71 @@ static bool is_data_section(RBinSection *sect) {
return false;
}
static const char *macho_section_type_tostring(int flags) {
switch (flags & UT8_MAX) {
case S_REGULAR:
return "REGULAR";
case S_ZEROFILL:
return "ZEROFILL";
case S_CSTRING_LITERALS:
return "CSTRINGS";
case S_4BYTE_LITERALS:
return "4BYTE";
case S_8BYTE_LITERALS:
return "8BYTE";
case S_16BYTE_LITERALS:
return "16BYTE";
case S_SYMBOL_STUBS:
return "SYMBOL_STUBS";
case S_LITERAL_POINTERS:
return "POINTERS";
case S_NON_LAZY_SYMBOL_POINTERS:
return "NONLAZY_POINTERS";
case S_THREAD_LOCAL_REGULAR:
return "TLS_REGULAR";
case S_THREAD_LOCAL_ZEROFILL:
return "TLS_ZEROFILL";
case S_THREAD_LOCAL_VARIABLES:
return "TLS_VARIABLES";
case S_THREAD_LOCAL_VARIABLE_POINTERS:
return "TLS_POINTERS";
case S_THREAD_LOCAL_INIT_FUNCTION_POINTERS:
return "TLS_INIT_FUNCTIONS";
case S_GB_ZEROFILL:
return "GB_ZEROFILL";
case S_COALESCED:
return "COALESCED";
case S_DTRACE_DOF:
return "DTRACE_DOF";
case S_INTERPOSING: // 0x0du,
return "INTERPOSING";
case S_LAZY_SYMBOL_POINTERS: // 0x0du,
return "LAZY_SYMBOL_POINTERS";
case S_MOD_INIT_FUNC_POINTERS:
return "MOD_INIT_FUNC_POINTERS";
case S_MOD_TERM_FUNC_POINTERS:
return "MOD_TERM_FUNC_POINTERS";
case S_LAZY_DYLIB_SYMBOL_POINTERS:
return "LAZY_DYLIB_SYMBOL_POINTERS";
#if 0
S_ATTR_PURE_INSTRUCTIONS = 0x80000000u,
S_ATTR_NO_TOC = 0x40000000u,
S_ATTR_STRIP_STATIC_SYMS = 0x20000000u,
S_ATTR_NO_DEAD_STRIP = 0x10000000u,
S_ATTR_LIVE_SUPPORT = 0x08000000u,
S_ATTR_SELF_MODIFYING_CODE = 0x04000000u,
S_ATTR_DEBUG = 0x02000000u,
S_ATTR_SOME_INSTRUCTIONS = 0x00000400u,
S_ATTR_EXT_RELOC = 0x00000200u,
S_ATTR_LOC_RELOC = 0x00000100u,
INDIRECT_SYMBOL_LOCAL = 0x80000000u,
INDIRECT_SYMBOL_ABS = 0x40000000u
#endif
}
eprintf ("Unk %x\n", flags);
return "";
}
RList *MACH0_(get_segments)(RBinFile *bf) {
struct MACH0_(obj_t) *macho = bf->o->bin_obj;
@ -2329,10 +2394,9 @@ RList *MACH0_(get_segments)(RBinFile *bf) {
s->vsize = (ut64)macho->sects[i].size;
s->is_segment = false;
s->size = (macho->sects[i].flags == S_ZEROFILL) ? 0 : (ut64)macho->sects[i].size;
// XXX flags
s->type = macho_section_type_tostring (macho->sects[i].flags);
s->paddr = (ut64)macho->sects[i].offset;
int segment_index = 0;
//s->perm =prot2perm (macho->segs[j].initprot);
for (j = 0; j < macho->nsegs; j++) {
if (s->vaddr >= macho->segs[j].vmaddr &&
s->vaddr < (macho->segs[j].vmaddr + macho->segs[j].vmsize)) {

View File

@ -263,8 +263,7 @@ struct MACH0_(obj_t) *MACH0_(mach0_new)(const char *file, struct MACH0_(opts_t)
struct MACH0_(obj_t) *MACH0_(new_buf)(RBuffer *buf, struct MACH0_(opts_t) *options);
void *MACH0_(mach0_free)(struct MACH0_(obj_t) *bin);
struct section_t *MACH0_(get_sections)(struct MACH0_(obj_t) *bin);
//RList *MACH0_(get_segments)(struct MACH0_(obj_t) *bin);
RList *MACH0_(get_segments)(RBinFile *bf); // struct MACH0_(obj_t) *bin);
RList *MACH0_(get_segments)(RBinFile *bf);
const struct symbol_t *MACH0_(get_symbols)(struct MACH0_(obj_t) *bin);
const RList *MACH0_(get_symbols_list)(struct MACH0_(obj_t) *bin);
void MACH0_(pull_symbols)(struct MACH0_(obj_t) *mo, RBinSymbolCallback cb, void *user);

View File

@ -165,6 +165,42 @@ static RList *entries(RBinFile *bf) {
return ret;
}
// XXX the string must be heap allocated because these are bitfields
static const char *section_type_tostring(int i) {
if (i & COFF_STYP_TEXT) {
return "TEXT";
}
if (i & COFF_STYP_DATA) {
return "DATA";
}
if (i & COFF_STYP_DATA) {
return "BSS";
}
return "MAP";
#if 0
r_cons_printf ("---> %x\n", i);
if (i & COFF_FLAGS_TI_F_EXEC) {
return "EXEC";
}
if (i & COFF_FLAGS_TI_F_RELFLG) {
return "RELFLG";
}
if (i & COFF_FLAGS_TI_F_LNNO) {
return "LNNO";
}
if (i & COFF_FLAGS_TI_F_LSYMS) {
return "LSYMS";
}
if (i & COFF_FLAGS_TI_F_BIG) {
return "BIG";
}
if (i & COFF_FLAGS_TI_F_LITTLE) {
return "LITTLE";
}
#endif
return "MAP";
}
static RList *sections(RBinFile *bf) {
char *tmp = NULL;
size_t i;
@ -197,6 +233,7 @@ static RList *sections(RBinFile *bf) {
ptr->size = obj->scn_hdrs[i].s_size;
ptr->vsize = obj->scn_hdrs[i].s_size;
ptr->paddr = obj->scn_hdrs[i].s_scnptr;
ptr->type = section_type_tostring (obj->scn_hdrs[i].s_flags);
if (obj->scn_va) {
ptr->vaddr = obj->scn_va[i];
}

View File

@ -202,8 +202,6 @@ static void dtproceed(RBinFile *bf, ut64 preinit_addr, ut64 preinit_size, int sy
ut64 _baddr = baddr (bf);
ut64 to = from + preinit_size;
for (at = from; at < to ; at += R_BIN_ELF_WORDSIZE) {
//ut64 paddr = Elf_(r_bin_elf_v2p) (obj, at);
// ut64 vaddr = Elf_(r_bin_elf_p2v) (obj, at);
ut64 addr = 0;
if (R_BIN_ELF_WORDSIZE == 8) {
addr = r_buf_read_ble64_at (bf->buf, at, big_endian);
@ -236,8 +234,6 @@ static bool parse_pt_dynamic(RBinFile *bf, RBinSection *ptr) {
ELFOBJ *obj = R_UNWRAP3 (bf, o, bin_obj);
int big_endian = Elf_(r_bin_elf_is_big_endian) (obj);
Elf_(Dyn) entry;
// get elf segment
// fill dt dynamic here
ut64 paddr = ptr->paddr;
ut64 paddr_end = paddr + ptr->size;
ut64 at = paddr;
@ -262,37 +258,101 @@ static bool parse_pt_dynamic(RBinFile *bf, RBinSection *ptr) {
case DT_INIT_ARRAY:
R_LOG_DEBUG ("init array");
init_addr = entry.d_un.d_val;
if (init_size != UT64_MAX) {
dtproceed (bf, init_addr, init_size, R_BIN_ENTRY_TYPE_INIT);
init_addr = UT64_MAX;
init_size = UT64_MAX;
}
break;
case DT_INIT_ARRAYSZ:
init_size = entry.d_un.d_val;
dtproceed (bf, init_addr, init_size, R_BIN_ENTRY_TYPE_INIT);
R_LOG_DEBUG ("init array size");
if (init_addr != UT64_MAX) {
dtproceed (bf, init_addr, init_size, R_BIN_ENTRY_TYPE_INIT);
init_addr = UT64_MAX;
init_size = UT64_MAX;
}
break;
case DT_FINI_ARRAY:
R_LOG_DEBUG ("fini array");
fini_addr = entry.d_un.d_val;
if (fini_size != UT64_MAX) {
dtproceed (bf, fini_addr, fini_size, R_BIN_ENTRY_TYPE_FINI);
fini_addr = UT64_MAX;
fini_size = UT64_MAX;
}
break;
case DT_FINI_ARRAYSZ:
fini_size = entry.d_un.d_val;
R_LOG_DEBUG ("fini array size");
dtproceed (bf, fini_addr, fini_size, R_BIN_ENTRY_TYPE_FINI);
if (fini_addr != UT64_MAX) {
dtproceed (bf, fini_addr, fini_size, R_BIN_ENTRY_TYPE_FINI);
fini_addr = UT64_MAX;
fini_size = UT64_MAX;
}
break;
case DT_PREINIT_ARRAY:
R_LOG_DEBUG ("preinit array");
preinit_addr = entry.d_un.d_val;
if (preinit_size != UT64_MAX) {
dtproceed (bf, preinit_addr, preinit_size, R_BIN_ENTRY_TYPE_PREINIT);
preinit_addr = UT64_MAX;
preinit_size = UT64_MAX;
}
break;
case DT_PREINIT_ARRAYSZ:
R_LOG_DEBUG ("preinit array size");
preinit_size = entry.d_un.d_val;
dtproceed (bf, preinit_addr, preinit_size, R_BIN_ENTRY_TYPE_PREINIT);
if (preinit_addr != UT64_MAX) {
dtproceed (bf, preinit_addr, preinit_size, R_BIN_ENTRY_TYPE_PREINIT);
preinit_addr = UT64_MAX;
preinit_size = UT64_MAX;
}
break;
default:
R_LOG_DEBUG ("add dt.dyn.entry tag=%d value=0x%08"PFMT64x, entry.d_tag, (ut64)entry.d_un.d_val);
break;
// TODO: Also add DT_INIT_ARRAY and D
}
// eprintf ("add dt.dyn.entry tag=%d value=0x%08x\n", entry.d_tag, entry.d_un.d_val);
}
return true;
}
static const char *elf_section_type_tostring(int shtype) {
switch (shtype) {
case SHT_NULL: return "NULL";
case SHT_DYNAMIC: return "DYNAMIC";
case SHT_GNU_versym: return "GNU_VERSYM";
case SHT_GNU_verneed: return "GNU_VERNEED";
case SHT_GNU_verdef: return "GNU_VERDEF";
case SHT_GNU_ATTRIBUTES: return "GNU_ATTR";
case SHT_GNU_LIBLIST: return "GNU_LIBLIST";
case SHT_CHECKSUM: return "SHT_CHECKSUM";
case SHT_LOSUNW: return "SHT_LOSUNW";
case SHT_GNU_HASH: return "GNU_HASH";
case SHT_SYMTAB: return "SYMTAB";
case SHT_PROGBITS: return "PROGBITS";
case SHT_NOTE: return "NOTE";
case SHT_STRTAB: return "STRTAB";
case SHT_RELA: return "RELA";
case SHT_HASH: return "HASH";
case SHT_NOBITS: return "NOBITS";
case SHT_REL: return "REL";
case SHT_SHLIB: return "SHLIB";
case SHT_DYNSYM: return "DYNSYM";
case SHT_LOPROC: return "LOPROC";
case SHT_HIPROC: return "HIPROC";
case SHT_LOUSER: return "LOUSER";
case SHT_HIUSER: return "HIUSER";
case SHT_PREINIT_ARRAY: return "PREINIT_ARRAY";
case SHT_GROUP: return "GROUP";
case SHT_SYMTAB_SHNDX: return "SYMTAB_SHNDX";
case SHT_NUM: return "NUM";
case SHT_INIT_ARRAY: return "INIT_ARRAY";
case SHT_FINI_ARRAY: return "FINI_ARRAY";
}
return "";
}
static RList* sections(RBinFile *bf) {
ELFOBJ *obj = (bf && bf->o)? bf->o->bin_obj : NULL;
struct r_bin_elf_section_t *section = NULL;
@ -327,9 +387,28 @@ static RList* sections(RBinFile *bf) {
ptr->vsize = section[i].size;
ptr->paddr = section[i].offset;
ptr->vaddr = section[i].rva;
ptr->type = elf_section_type_tostring (section[i].type);
ptr->add = !obj->phdr; // Load sections if there is no PHDR
ptr->perm = 0;
ptr->perm = elf_flags_to_section_perms (section[i].flags);
#if 0
TODO: ptr->flags = elf_flags_tostring (section[i].flags);
#define SHF_WRITE (1 << 0) /* Writable */
#define SHF_ALLOC (1 << 1) /* Occupies memory during execution */
#define SHF_EXECINSTR (1 << 2) /* Executable */
#define SHF_MERGE (1 << 4) /* Might be merged */
#define SHF_STRINGS (1 << 5) /* Contains nul-terminated strings */
#define SHF_INFO_LINK (1 << 6) /* `sh_info' contains SHT index */
#define SHF_LINK_ORDER (1 << 7) /* Preserve order after combining */
#define SHF_OS_NONCONFORMING (1 << 8) /* Non-standard OS specific handling
required */
#define SHF_GROUP (1 << 9) /* Section is member of a group. */
#define SHF_TLS (1 << 10) /* Section hold thread-local data. */
#define SHF_COMPRESSED (1 << 11) /* Section with compressed data. */
#define SHF_MASKOS 0x0ff00000 /* OS-specific. */
#define SHF_MASKPROC 0xf0000000 /* Processor-specific */
#define SHF_ORDERED (1 << 30) /* Special ordering requirement (Solaris) */
#define SHF_EXCLUDE (1U << 31) /* Section is excluded unless */
#endif
r_list_append (ret, ptr);
}
}
@ -352,13 +431,16 @@ static RList* sections(RBinFile *bf) {
ptr->vsize = phdr[i].p_memsz;
ptr->paddr = phdr[i].p_offset;
ptr->vaddr = phdr[i].p_vaddr;
ptr->perm = phdr[i].p_flags;
ptr->perm = phdr[i].p_flags; // perm are rwx like x=1, w=2, r=4, aka no need to convert from r2's R_PERM
ptr->is_segment = true;
switch (phdr[i].p_type) {
case PT_DYNAMIC:
ptr->name = strdup ("DYNAMIC");
parse_pt_dynamic (bf, ptr);
break;
case PT_LOOS:
ptr->name = r_str_newf ("LOOS");
break;
case PT_LOAD:
ptr->name = r_str_newf ("LOAD%d", n++);
ptr->perm |= R_PERM_R;
@ -374,6 +456,9 @@ static RList* sections(RBinFile *bf) {
case PT_GNU_RELRO:
ptr->name = strdup ("GNU_RELRO");
break;
case PT_GNU_PROPERTY:
ptr->name = strdup ("GNU_PROPERTY");
break;
case PT_GNU_EH_FRAME:
ptr->name = strdup ("GNU_EH_FRAME");
break;
@ -386,6 +471,21 @@ static RList* sections(RBinFile *bf) {
case PT_NOTE:
ptr->name = strdup ("NOTE");
break;
case PT_LOPROC:
ptr->name = strdup ("LOPROC");
break;
case PT_SUNWBSS:
ptr->name = strdup ("SUNWBSS");
break;
case PT_HISUNW:
ptr->name = strdup ("HISUNW");
break;
case PT_SUNWSTACK:
ptr->name = strdup ("SUNWSTACK");
break;
case PT_HIPROC:
ptr->name = strdup ("HIPROC");
break;
case PT_OPENBSD_RANDOMIZE:
ptr->name = strdup ("OPENBSD_RANDOMIZE");
break;

View File

@ -134,8 +134,8 @@ static RList* sections(RBinFile *bf) {
if (!(ptr = R_NEW0 (RBinSection))) {
break;
}
if (sections[i].name[0]) {
ptr->name = strdup ((char*)sections[i].name);
if (R_STR_ISNOTEMPTY (sections[i].name)) {
ptr->name = strdup ((const char*)sections[i].name);
} else {
ptr->name = strdup ("");
}

View File

@ -1489,7 +1489,9 @@ static int bin_entry(RCore *r, PJ *pj, int mode, ut64 laddr, int va, bool inifin
pj_kn (pj, "hvaddr", hvaddr);
}
pj_kn (pj, hpaddr_key, hpaddr);
pj_ks (pj, "type", type);
if (R_STR_ISNOTEMPTY (type)) {
pj_ks (pj, "type", type);
}
pj_end (pj);
} else if (IS_MODE_RAD (mode)) {
char *name = NULL;
@ -2821,14 +2823,13 @@ static int bin_sections(RCore *r, PJ *pj, int mode, ut64 laddr, int va, ut64 at,
char *str = NULL;
RBinSection *section;
RBinInfo *info = NULL;
RList *sections;
RListIter *iter;
RTable *table = r_core_table (r, "sections");
r_return_val_if_fail (table, false);
int i = 0;
int fd = -1;
bool printHere = false;
sections = r_bin_get_sections (r->bin);
RList *sections = r_bin_get_sections (r->bin);
#if LOAD_BSS_MALLOC
const bool inDebugger = r_config_get_b (r->config, "cfg.debug");
#endif
@ -2900,11 +2901,11 @@ static int bin_sections(RCore *r, PJ *pj, int mode, ut64 laddr, int va, ut64 at,
}
if (IS_MODE_NORMAL (mode)) {
if (hashtypes) {
r_table_set_columnsf (table, "dXxXxsss",
"nth", "paddr", "size", "vaddr", "vsize", "perm", hashtypes, "name");
r_table_set_columnsf (table, "dXxXxssss",
"nth", "paddr", "size", "vaddr", "vsize", "perm", hashtypes, "type", "name");
} else {
r_table_set_columnsf (table, "dXxXxss",
"nth", "paddr", "size", "vaddr", "vsize", "perm", "name");
r_table_set_columnsf (table, "dXxXxsss",
"nth", "paddr", "size", "vaddr", "vsize", "perm", "type", "name");
}
// r_table_align (table, 0, R_TABLE_ALIGN_CENTER);
r_table_align (table, 2, R_TABLE_ALIGN_RIGHT);
@ -3000,7 +3001,7 @@ static int bin_sections(RCore *r, PJ *pj, int mode, ut64 laddr, int va, ut64 at,
}
}
#endif
if (section->format) {
if (R_STR_ISNOTEMPTY (section->format)) {
// This is damn slow if section vsize is HUGE
if (section->vsize < 1024 * 1024 * 2) {
r_core_cmdf (r, "%s @ 0x%" PFMT64x, section->format, section->vaddr);
@ -3083,6 +3084,9 @@ static int bin_sections(RCore *r, PJ *pj, int mode, ut64 laddr, int va, ut64 at,
pj_ks (pj, "name", section->name);
pj_kN (pj, "size", section->size);
pj_kN (pj, "vsize", section->vsize);
if (R_STR_ISNOTEMPTY (section->type)) {
pj_ks (pj, "type", section->type);
}
pj_ks (pj, "perm", perms);
if (hashtypes && (int)section->size > 0) {
int datalen = section->size;
@ -3139,16 +3143,20 @@ static int bin_sections(RCore *r, PJ *pj, int mode, ut64 laddr, int va, ut64 at,
: section->name;
// seems like asm.bits is a bitmask that seems to be always 32,64
// const char *asmbits = r_str_sysbits (bits);
const char *stype = (section->type)? section->type: "";
if (R_STR_ISEMPTY (stype)) {
stype = print_segments? "MAP": "----";
}
if (hashtypes) {
r_table_add_rowf (table, "dXxXxssss", i,
(ut64)section->paddr, (ut64)section->size,
(ut64)addr, (ut64)section->vsize,
perms, r_str_get (hashstr), stype, section_name);
} else {
r_table_add_rowf (table, "dXxXxsss", i,
(ut64)section->paddr, (ut64)section->size,
(ut64)addr, (ut64)section->vsize,
perms, r_str_get (hashstr), section_name);
} else {
r_table_add_rowf (table, "dXxXxss", i,
(ut64)section->paddr, (ut64)section->size,
(ut64)addr, (ut64)section->vsize,
perms, section_name);
perms, stype, section_name);
}
free (hashstr);
}

View File

@ -3780,7 +3780,6 @@ R_API int r_core_config_init(RCore *core) {
SETCB ("bin.useldr", "true", &cb_useldr, "use loader plugins when loading files");
SETCB ("bin.str.purge", "", &cb_strpurge, "purge strings (e bin.str.purge=? provides more detail)");
SETPREF ("bin.str.real", "false", "set the realname in rbin.strings for better disasm (EXPERIMENTAL)");
SETBPREF ("bin.str.debase64", "false", "try to debase64 the strings");
SETCB ("bin.str.nofp", "false", &cb_nofp, "set to true to reduce the false positive strings (EXPERIMENTAL)");
SETCB ("bin.at", "false", &cb_binat, "RBin.cur depends on RCore.offset");
SETBPREF ("bin.libs", "false", "try to load libraries after loading main binary");
@ -3808,7 +3807,7 @@ R_API int r_core_config_init(RCore *core) {
SETCB ("bin.prefix", "", &cb_binprefix, "prefix all symbols/sections/relocs with a specific string");
SETCB ("bin.str.raw", "false", &cb_rawstr, "load strings from raw binaries");
SETCB ("bin.strings", "true", &cb_binstrings, "load strings from rbin on startup");
SETCB ("bin.debase64", "false", &cb_debase64, "try to debase64 all strings");
SETCB ("bin.str.debase64", "false", &cb_debase64, "try to debase64 all strings");
SETBPREF ("bin.classes", "true", "load classes from rbin on startup");
SETCB ("bin.verbose", "false", &cb_binverbose, "show RBin warnings when loading binaries");

View File

@ -496,7 +496,7 @@ typedef struct r_bin_section_t {
ut64 vaddr;
ut64 paddr;
ut32 perm;
// per section platform info
const char *type;
const char *arch;
char *format;
int bits;

View File

@ -898,16 +898,16 @@ EOF
EXPECT=<<EOF
Current section
nth paddr size vaddr vsize perm name
------------------------------------------------
0 0x00000188 0x24 0x08048188 0x24 -r-- .note.gnu.build-id
nth paddr size vaddr vsize perm type name
-----------------------------------------------------
0 0x00000188 0x24 0x08048188 0x24 -r-- NOTE .note.gnu.build-id
Current section
nth paddr size vaddr vsize perm name
--------------------------------------
nth paddr size vaddr vsize perm type name
-------------------------------------------
{"name":".plt","size":240,"vsize":240,"perm":"-r-x","paddr":1888,"vaddr":134514528}
{"name":".plt","size":240,"vsize":240,"type":"PROGBITS","perm":"-r-x","paddr":1888,"vaddr":134514528}
EOF
RUN
@ -923,6 +923,7 @@ EXPECT=<<EOF
"name": "",
"size": 0,
"vsize": 0,
"type": "NULL",
"perm": "----",
"paddr": 0,
"vaddr": 0
@ -931,6 +932,7 @@ EXPECT=<<EOF
"name": ".interp",
"size": 19,
"vsize": 19,
"type": "PROGBITS",
"perm": "-r--",
"entropy": "3.68188080",
"paddr": 340,
@ -940,6 +942,7 @@ EXPECT=<<EOF
"name": ".note.ABI-tag",
"size": 32,
"vsize": 32,
"type": "NOTE",
"perm": "-r--",
"entropy": "1.74868984",
"paddr": 360,
@ -949,6 +952,7 @@ EXPECT=<<EOF
"name": ".note.gnu.build-id",
"size": 36,
"vsize": 36,
"type": "NOTE",
"perm": "-r--",
"entropy": "4.13605609",
"paddr": 392,
@ -958,6 +962,7 @@ EXPECT=<<EOF
"name": ".gnu.hash",
"size": 176,
"vsize": 176,
"type": "GNU_HASH",
"perm": "-r--",
"entropy": "4.74342302",
"paddr": 428,
@ -967,6 +972,7 @@ EXPECT=<<EOF
"name": ".dynsym",
"size": 592,
"vsize": 592,
"type": "DYNSYM",
"perm": "-r--",
"entropy": "2.53170115",
"paddr": 604,
@ -976,6 +982,7 @@ EXPECT=<<EOF
"name": ".dynstr",
"size": 384,
"vsize": 384,
"type": "STRTAB",
"perm": "-r--",
"entropy": "4.59829027",
"paddr": 1196,
@ -985,6 +992,7 @@ EXPECT=<<EOF
"name": ".gnu.version",
"size": 74,
"vsize": 74,
"type": "GNU_VERSYM",
"perm": "-r--",
"entropy": "1.55329753",
"paddr": 1580,
@ -994,6 +1002,7 @@ EXPECT=<<EOF
"name": ".gnu.version_r",
"size": 64,
"vsize": 64,
"type": "GNU_VERNEED",
"perm": "-r--",
"entropy": "2.33399879",
"paddr": 1656,
@ -1003,6 +1012,7 @@ EXPECT=<<EOF
"name": ".rel.dyn",
"size": 16,
"vsize": 16,
"type": "REL",
"perm": "-r--",
"entropy": "3.25000000",
"paddr": 1720,
@ -1012,6 +1022,7 @@ EXPECT=<<EOF
"name": ".rel.plt",
"size": 112,
"vsize": 112,
"type": "REL",
"perm": "-r--",
"entropy": "3.52414971",
"paddr": 1736,
@ -1021,6 +1032,7 @@ EXPECT=<<EOF
"name": ".init",
"size": 35,
"vsize": 35,
"type": "PROGBITS",
"perm": "-r-x",
"entropy": "4.12467560",
"paddr": 1848,
@ -1030,6 +1042,7 @@ EXPECT=<<EOF
"name": ".plt",
"size": 240,
"vsize": 240,
"type": "PROGBITS",
"perm": "-r-x",
"entropy": "3.68026477",
"paddr": 1888,
@ -1039,6 +1052,7 @@ EXPECT=<<EOF
"name": ".text",
"size": 1170,
"vsize": 1170,
"type": "PROGBITS",
"perm": "-r-x",
"entropy": "5.89126869",
"paddr": 2128,
@ -1048,6 +1062,7 @@ EXPECT=<<EOF
"name": ".fini",
"size": 20,
"vsize": 20,
"type": "PROGBITS",
"perm": "-r-x",
"entropy": "3.72192809",
"paddr": 3300,
@ -1057,6 +1072,7 @@ EXPECT=<<EOF
"name": ".rodata",
"size": 249,
"vsize": 249,
"type": "PROGBITS",
"perm": "-r--",
"entropy": "4.65845607",
"paddr": 3320,
@ -1066,6 +1082,7 @@ EXPECT=<<EOF
"name": ".eh_frame_hdr",
"size": 84,
"vsize": 84,
"type": "PROGBITS",
"perm": "-r--",
"entropy": "3.49291576",
"paddr": 3572,
@ -1075,6 +1092,7 @@ EXPECT=<<EOF
"name": ".eh_frame",
"size": 336,
"vsize": 336,
"type": "PROGBITS",
"perm": "-r--",
"entropy": "4.46780720",
"paddr": 3656,
@ -1084,6 +1102,7 @@ EXPECT=<<EOF
"name": ".init_array",
"size": 4,
"vsize": 4,
"type": "INIT_ARRAY",
"perm": "-rw-",
"entropy": "2.00000000",
"paddr": 7944,
@ -1093,6 +1112,7 @@ EXPECT=<<EOF
"name": ".fini_array",
"size": 4,
"vsize": 4,
"type": "FINI_ARRAY",
"perm": "-rw-",
"entropy": "2.00000000",
"paddr": 7948,
@ -1102,6 +1122,7 @@ EXPECT=<<EOF
"name": ".jcr",
"size": 4,
"vsize": 4,
"type": "PROGBITS",
"perm": "-rw-",
"entropy": "0.00000000",
"paddr": 7952,
@ -1111,6 +1132,7 @@ EXPECT=<<EOF
"name": ".dynamic",
"size": 232,
"vsize": 232,
"type": "DYNAMIC",
"perm": "-rw-",
"entropy": "2.87462433",
"paddr": 7956,
@ -1120,6 +1142,7 @@ EXPECT=<<EOF
"name": ".got",
"size": 4,
"vsize": 4,
"type": "PROGBITS",
"perm": "-rw-",
"entropy": "0.00000000",
"paddr": 8188,
@ -1129,6 +1152,7 @@ EXPECT=<<EOF
"name": ".got.plt",
"size": 68,
"vsize": 68,
"type": "PROGBITS",
"perm": "-rw-",
"entropy": "3.42061456",
"paddr": 8192,
@ -1138,6 +1162,7 @@ EXPECT=<<EOF
"name": ".data",
"size": 8,
"vsize": 8,
"type": "PROGBITS",
"perm": "-rw-",
"entropy": "0.00000000",
"paddr": 8260,
@ -1147,6 +1172,7 @@ EXPECT=<<EOF
"name": ".bss",
"size": 0,
"vsize": 8,
"type": "NOBITS",
"perm": "-rw-",
"paddr": 8268,
"vaddr": 134520928
@ -1155,6 +1181,7 @@ EXPECT=<<EOF
"name": ".comment",
"size": 36,
"vsize": 36,
"type": "PROGBITS",
"perm": "----",
"entropy": "4.04868811",
"paddr": 8268,
@ -1164,6 +1191,7 @@ EXPECT=<<EOF
"name": ".shstrtab",
"size": 246,
"vsize": 246,
"type": "STRTAB",
"perm": "----",
"entropy": "4.28967882",
"paddr": 8304,

View File

@ -268,8 +268,8 @@ nth paddr vaddr bind type size lib name
fs symbols
[Sections]
nth paddr size vaddr vsize perm name
--------------------------------------
nth paddr size vaddr vsize perm type name
-------------------------------------------
fs sections
EOF
@ -2884,38 +2884,38 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
-------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ----
1 0x00000134 0x13 0x08048134 0x13 -r-- .interp
2 0x00000148 0x20 0x08048148 0x20 -r-- .note.ABI-tag
3 0x00000168 0x24 0x08048168 0x24 -r-- .note.gnu.build-id
4 0x0000018c 0x20 0x0804818c 0x20 -r-- .gnu.hash
5 0x000001ac 0x50 0x080481ac 0x50 -r-- .dynsym
6 0x000001fc 0x4a 0x080481fc 0x4a -r-- .dynstr
7 0x00000246 0xa 0x08048246 0xa -r-- .gnu.version
8 0x00000250 0x20 0x08048250 0x20 -r-- .gnu.version_r
9 0x00000270 0x8 0x08048270 0x8 -r-- .rel.dyn
10 0x00000278 0x18 0x08048278 0x18 -r-- .rel.plt
11 0x00000290 0x23 0x08048290 0x23 -r-x .init
12 0x000002c0 0x40 0x080482c0 0x40 -r-x .plt
13 0x00000300 0x194 0x08048300 0x194 -r-x .text
14 0x00000494 0x14 0x08048494 0x14 -r-x .fini
15 0x000004a8 0x15 0x080484a8 0x15 -r-- .rodata
16 0x000004c0 0x2c 0x080484c0 0x2c -r-- .eh_frame_hdr
17 0x000004ec 0xb0 0x080484ec 0xb0 -r-- .eh_frame
18 0x0000059c 0x4 0x0804959c 0x4 -rw- .init_array
19 0x000005a0 0x4 0x080495a0 0x4 -rw- .fini_array
20 0x000005a4 0x4 0x080495a4 0x4 -rw- .jcr
21 0x000005a8 0xe8 0x080495a8 0xe8 -rw- .dynamic
22 0x00000690 0x4 0x08049690 0x4 -rw- .got
23 0x00000694 0x18 0x08049694 0x18 -rw- .got.plt
24 0x000006ac 0x8 0x080496ac 0x8 -rw- .data
25 0x000006b4 0x0 0x080496b4 0x4 -rw- .bss
26 0x000006b4 0x11 0x00000000 0x11 ---- .comment
27 0x000006c5 0x106 0x00000000 0x106 ---- .shstrtab
28 0x00000c7c 0x450 0x00000000 0x450 ---- .symtab
29 0x000010cc 0x257 0x00000000 0x257 ---- .strtab
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ---- NULL
1 0x00000134 0x13 0x08048134 0x13 -r-- PROGBITS .interp
2 0x00000148 0x20 0x08048148 0x20 -r-- NOTE .note.ABI-tag
3 0x00000168 0x24 0x08048168 0x24 -r-- NOTE .note.gnu.build-id
4 0x0000018c 0x20 0x0804818c 0x20 -r-- GNU_HASH .gnu.hash
5 0x000001ac 0x50 0x080481ac 0x50 -r-- DYNSYM .dynsym
6 0x000001fc 0x4a 0x080481fc 0x4a -r-- STRTAB .dynstr
7 0x00000246 0xa 0x08048246 0xa -r-- GNU_VERSYM .gnu.version
8 0x00000250 0x20 0x08048250 0x20 -r-- GNU_VERNEED .gnu.version_r
9 0x00000270 0x8 0x08048270 0x8 -r-- REL .rel.dyn
10 0x00000278 0x18 0x08048278 0x18 -r-- REL .rel.plt
11 0x00000290 0x23 0x08048290 0x23 -r-x PROGBITS .init
12 0x000002c0 0x40 0x080482c0 0x40 -r-x PROGBITS .plt
13 0x00000300 0x194 0x08048300 0x194 -r-x PROGBITS .text
14 0x00000494 0x14 0x08048494 0x14 -r-x PROGBITS .fini
15 0x000004a8 0x15 0x080484a8 0x15 -r-- PROGBITS .rodata
16 0x000004c0 0x2c 0x080484c0 0x2c -r-- PROGBITS .eh_frame_hdr
17 0x000004ec 0xb0 0x080484ec 0xb0 -r-- PROGBITS .eh_frame
18 0x0000059c 0x4 0x0804959c 0x4 -rw- INIT_ARRAY .init_array
19 0x000005a0 0x4 0x080495a0 0x4 -rw- FINI_ARRAY .fini_array
20 0x000005a4 0x4 0x080495a4 0x4 -rw- PROGBITS .jcr
21 0x000005a8 0xe8 0x080495a8 0xe8 -rw- DYNAMIC .dynamic
22 0x00000690 0x4 0x08049690 0x4 -rw- PROGBITS .got
23 0x00000694 0x18 0x08049694 0x18 -rw- PROGBITS .got.plt
24 0x000006ac 0x8 0x080496ac 0x8 -rw- PROGBITS .data
25 0x000006b4 0x0 0x080496b4 0x4 -rw- NOBITS .bss
26 0x000006b4 0x11 0x00000000 0x11 ---- PROGBITS .comment
27 0x000006c5 0x106 0x00000000 0x106 ---- STRTAB .shstrtab
28 0x00000c7c 0x450 0x00000000 0x450 ---- SYMTAB .symtab
29 0x000010cc 0x257 0x00000000 0x257 ---- STRTAB .strtab
EOF
RUN
@ -2926,17 +2926,17 @@ CMDS=iSS
EXPECT=<<EOF
[Segments]
nth paddr size vaddr vsize perm name
-------------------------------------------------
0 0x00000034 0x100 0x08048034 0x100 -r-x PHDR
1 0x00000134 0x13 0x08048134 0x13 -r-- INTERP
2 0x00000000 0x59c 0x08048000 0x59c -r-x LOAD0
3 0x0000059c 0x118 0x0804959c 0x11c -rw- LOAD1
4 0x000005a8 0xe8 0x080495a8 0xe8 -rw- DYNAMIC
5 0x00000148 0x44 0x08048148 0x44 -r-- NOTE
6 0x000004c0 0x2c 0x080484c0 0x2c -r-- GNU_EH_FRAME
7 0x00000000 0x0 0x00000000 0x0 -rw- GNU_STACK
8 0x00000000 0x34 0x08048000 0x34 -rw- ehdr
nth paddr size vaddr vsize perm type name
------------------------------------------------------
0 0x00000034 0x100 0x08048034 0x100 -r-x MAP PHDR
1 0x00000134 0x13 0x08048134 0x13 -r-- MAP INTERP
2 0x00000000 0x59c 0x08048000 0x59c -r-x MAP LOAD0
3 0x0000059c 0x118 0x0804959c 0x11c -rw- MAP LOAD1
4 0x000005a8 0xe8 0x080495a8 0xe8 -rw- MAP DYNAMIC
5 0x00000148 0x44 0x08048148 0x44 -r-- MAP NOTE
6 0x000004c0 0x2c 0x080484c0 0x2c -r-- MAP GNU_EH_FRAME
7 0x00000000 0x0 0x00000000 0x0 -rw- MAP GNU_STACK
8 0x00000000 0x34 0x08048000 0x34 -rw- MAP ehdr
EOF
RUN
@ -2945,7 +2945,7 @@ NAME=iSj
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=iSj
EXPECT=<<EOF
[{"name":"","size":0,"vsize":0,"perm":"----","paddr":0,"vaddr":0},{"name":".interp","size":19,"vsize":19,"perm":"-r--","paddr":308,"vaddr":134512948},{"name":".note.ABI-tag","size":32,"vsize":32,"perm":"-r--","paddr":328,"vaddr":134512968},{"name":".note.gnu.build-id","size":36,"vsize":36,"perm":"-r--","paddr":360,"vaddr":134513000},{"name":".gnu.hash","size":32,"vsize":32,"perm":"-r--","paddr":396,"vaddr":134513036},{"name":".dynsym","size":80,"vsize":80,"perm":"-r--","paddr":428,"vaddr":134513068},{"name":".dynstr","size":74,"vsize":74,"perm":"-r--","paddr":508,"vaddr":134513148},{"name":".gnu.version","size":10,"vsize":10,"perm":"-r--","paddr":582,"vaddr":134513222},{"name":".gnu.version_r","size":32,"vsize":32,"perm":"-r--","paddr":592,"vaddr":134513232},{"name":".rel.dyn","size":8,"vsize":8,"perm":"-r--","paddr":624,"vaddr":134513264},{"name":".rel.plt","size":24,"vsize":24,"perm":"-r--","paddr":632,"vaddr":134513272},{"name":".init","size":35,"vsize":35,"perm":"-r-x","paddr":656,"vaddr":134513296},{"name":".plt","size":64,"vsize":64,"perm":"-r-x","paddr":704,"vaddr":134513344},{"name":".text","size":404,"vsize":404,"perm":"-r-x","paddr":768,"vaddr":134513408},{"name":".fini","size":20,"vsize":20,"perm":"-r-x","paddr":1172,"vaddr":134513812},{"name":".rodata","size":21,"vsize":21,"perm":"-r--","paddr":1192,"vaddr":134513832},{"name":".eh_frame_hdr","size":44,"vsize":44,"perm":"-r--","paddr":1216,"vaddr":134513856},{"name":".eh_frame","size":176,"vsize":176,"perm":"-r--","paddr":1260,"vaddr":134513900},{"name":".init_array","size":4,"vsize":4,"perm":"-rw-","paddr":1436,"vaddr":134518172},{"name":".fini_array","size":4,"vsize":4,"perm":"-rw-","paddr":1440,"vaddr":134518176},{"name":".jcr","size":4,"vsize":4,"perm":"-rw-","paddr":1444,"vaddr":134518180},{"name":".dynamic","size":232,"vsize":232,"perm":"-rw-","paddr":1448,"vaddr":134518184},{"name":".got","size":4,"vsize":4,"perm":"-rw-","paddr":1680,"vaddr":134518416},{"name":".got.plt","size":24,"vsize":24,"perm":"-rw-","paddr":1684,"vaddr":134518420},{"name":".data","size":8,"vsize":8,"perm":"-rw-","paddr":1708,"vaddr":134518444},{"name":".bss","size":0,"vsize":4,"perm":"-rw-","paddr":1716,"vaddr":134518452},{"name":".comment","size":17,"vsize":17,"perm":"----","paddr":1716,"vaddr":0},{"name":".shstrtab","size":262,"vsize":262,"perm":"----","paddr":1733,"vaddr":0},{"name":".symtab","size":1104,"vsize":1104,"perm":"----","paddr":3196,"vaddr":0},{"name":".strtab","size":599,"vsize":599,"perm":"----","paddr":4300,"vaddr":0}]
[{"name":"","size":0,"vsize":0,"type":"NULL","perm":"----","paddr":0,"vaddr":0},{"name":".interp","size":19,"vsize":19,"type":"PROGBITS","perm":"-r--","paddr":308,"vaddr":134512948},{"name":".note.ABI-tag","size":32,"vsize":32,"type":"NOTE","perm":"-r--","paddr":328,"vaddr":134512968},{"name":".note.gnu.build-id","size":36,"vsize":36,"type":"NOTE","perm":"-r--","paddr":360,"vaddr":134513000},{"name":".gnu.hash","size":32,"vsize":32,"type":"GNU_HASH","perm":"-r--","paddr":396,"vaddr":134513036},{"name":".dynsym","size":80,"vsize":80,"type":"DYNSYM","perm":"-r--","paddr":428,"vaddr":134513068},{"name":".dynstr","size":74,"vsize":74,"type":"STRTAB","perm":"-r--","paddr":508,"vaddr":134513148},{"name":".gnu.version","size":10,"vsize":10,"type":"GNU_VERSYM","perm":"-r--","paddr":582,"vaddr":134513222},{"name":".gnu.version_r","size":32,"vsize":32,"type":"GNU_VERNEED","perm":"-r--","paddr":592,"vaddr":134513232},{"name":".rel.dyn","size":8,"vsize":8,"type":"REL","perm":"-r--","paddr":624,"vaddr":134513264},{"name":".rel.plt","size":24,"vsize":24,"type":"REL","perm":"-r--","paddr":632,"vaddr":134513272},{"name":".init","size":35,"vsize":35,"type":"PROGBITS","perm":"-r-x","paddr":656,"vaddr":134513296},{"name":".plt","size":64,"vsize":64,"type":"PROGBITS","perm":"-r-x","paddr":704,"vaddr":134513344},{"name":".text","size":404,"vsize":404,"type":"PROGBITS","perm":"-r-x","paddr":768,"vaddr":134513408},{"name":".fini","size":20,"vsize":20,"type":"PROGBITS","perm":"-r-x","paddr":1172,"vaddr":134513812},{"name":".rodata","size":21,"vsize":21,"type":"PROGBITS","perm":"-r--","paddr":1192,"vaddr":134513832},{"name":".eh_frame_hdr","size":44,"vsize":44,"type":"PROGBITS","perm":"-r--","paddr":1216,"vaddr":134513856},{"name":".eh_frame","size":176,"vsize":176,"type":"PROGBITS","perm":"-r--","paddr":1260,"vaddr":134513900},{"name":".init_array","size":4,"vsize":4,"type":"INIT_ARRAY","perm":"-rw-","paddr":1436,"vaddr":134518172},{"name":".fini_array","size":4,"vsize":4,"type":"FINI_ARRAY","perm":"-rw-","paddr":1440,"vaddr":134518176},{"name":".jcr","size":4,"vsize":4,"type":"PROGBITS","perm":"-rw-","paddr":1444,"vaddr":134518180},{"name":".dynamic","size":232,"vsize":232,"type":"DYNAMIC","perm":"-rw-","paddr":1448,"vaddr":134518184},{"name":".got","size":4,"vsize":4,"type":"PROGBITS","perm":"-rw-","paddr":1680,"vaddr":134518416},{"name":".got.plt","size":24,"vsize":24,"type":"PROGBITS","perm":"-rw-","paddr":1684,"vaddr":134518420},{"name":".data","size":8,"vsize":8,"type":"PROGBITS","perm":"-rw-","paddr":1708,"vaddr":134518444},{"name":".bss","size":0,"vsize":4,"type":"NOBITS","perm":"-rw-","paddr":1716,"vaddr":134518452},{"name":".comment","size":17,"vsize":17,"type":"PROGBITS","perm":"----","paddr":1716,"vaddr":0},{"name":".shstrtab","size":262,"vsize":262,"type":"STRTAB","perm":"----","paddr":1733,"vaddr":0},{"name":".symtab","size":1104,"vsize":1104,"type":"SYMTAB","perm":"----","paddr":3196,"vaddr":0},{"name":".strtab","size":599,"vsize":599,"type":"STRTAB","perm":"----","paddr":4300,"vaddr":0}]
EOF
RUN
@ -3323,38 +3323,38 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
-------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ----
1 0x00000200 0x1a 0x00400200 0x1a -r-- .interp
2 0x0000021c 0x20 0x0040021c 0x20 -r-- .note.ABI-tag
3 0x0000023c 0x24 0x0040023c 0x24 -r-- .note.gnu.build-id
4 0x00000260 0x1c 0x00400260 0x1c -r-- .gnu.hash
5 0x00000280 0x60 0x00400280 0x60 -r-- .dynsym
6 0x000002e0 0x3d 0x004002e0 0x3d -r-- .dynstr
7 0x0000031e 0x8 0x0040031e 0x8 -r-- .gnu.version
8 0x00000328 0x20 0x00400328 0x20 -r-- .gnu.version_r
9 0x00000348 0x18 0x00400348 0x18 -r-- .rela.dyn
10 0x00000360 0x48 0x00400360 0x48 -r-- .rela.plt
11 0x000003a8 0x1a 0x004003a8 0x1a -r-x .init
12 0x000003d0 0x40 0x004003d0 0x40 -r-x .plt
13 0x00000410 0x1a4 0x00400410 0x1a4 -r-x .text
14 0x000005b4 0x9 0x004005b4 0x9 -r-x .fini
15 0x000005c0 0x10 0x004005c0 0x10 -r-- .rodata
16 0x000005d0 0x34 0x004005d0 0x34 -r-- .eh_frame_hdr
17 0x00000608 0xd4 0x00400608 0xd4 -r-- .eh_frame
18 0x000006e0 0x8 0x006006e0 0x8 -rw- .init_array
19 0x000006e8 0x8 0x006006e8 0x8 -rw- .fini_array
20 0x000006f0 0x8 0x006006f0 0x8 -rw- .jcr
21 0x000006f8 0x1d0 0x006006f8 0x1d0 -rw- .dynamic
22 0x000008c8 0x8 0x006008c8 0x8 -rw- .got
23 0x000008d0 0x30 0x006008d0 0x30 -rw- .got.plt
24 0x00000900 0x10 0x00600900 0x10 -rw- .data
25 0x00000910 0x0 0x00600910 0x8 -rw- .bss
26 0x00000910 0x11 0x00000000 0x11 ---- .comment
27 0x00000921 0x108 0x00000000 0x108 ---- .shstrtab
28 0x000011b0 0x648 0x00000000 0x648 ---- .symtab
29 0x000017f8 0x23e 0x00000000 0x23e ---- .strtab
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ---- NULL
1 0x00000200 0x1a 0x00400200 0x1a -r-- PROGBITS .interp
2 0x0000021c 0x20 0x0040021c 0x20 -r-- NOTE .note.ABI-tag
3 0x0000023c 0x24 0x0040023c 0x24 -r-- NOTE .note.gnu.build-id
4 0x00000260 0x1c 0x00400260 0x1c -r-- GNU_HASH .gnu.hash
5 0x00000280 0x60 0x00400280 0x60 -r-- DYNSYM .dynsym
6 0x000002e0 0x3d 0x004002e0 0x3d -r-- STRTAB .dynstr
7 0x0000031e 0x8 0x0040031e 0x8 -r-- GNU_VERSYM .gnu.version
8 0x00000328 0x20 0x00400328 0x20 -r-- GNU_VERNEED .gnu.version_r
9 0x00000348 0x18 0x00400348 0x18 -r-- RELA .rela.dyn
10 0x00000360 0x48 0x00400360 0x48 -r-- RELA .rela.plt
11 0x000003a8 0x1a 0x004003a8 0x1a -r-x PROGBITS .init
12 0x000003d0 0x40 0x004003d0 0x40 -r-x PROGBITS .plt
13 0x00000410 0x1a4 0x00400410 0x1a4 -r-x PROGBITS .text
14 0x000005b4 0x9 0x004005b4 0x9 -r-x PROGBITS .fini
15 0x000005c0 0x10 0x004005c0 0x10 -r-- PROGBITS .rodata
16 0x000005d0 0x34 0x004005d0 0x34 -r-- PROGBITS .eh_frame_hdr
17 0x00000608 0xd4 0x00400608 0xd4 -r-- PROGBITS .eh_frame
18 0x000006e0 0x8 0x006006e0 0x8 -rw- INIT_ARRAY .init_array
19 0x000006e8 0x8 0x006006e8 0x8 -rw- FINI_ARRAY .fini_array
20 0x000006f0 0x8 0x006006f0 0x8 -rw- PROGBITS .jcr
21 0x000006f8 0x1d0 0x006006f8 0x1d0 -rw- DYNAMIC .dynamic
22 0x000008c8 0x8 0x006008c8 0x8 -rw- PROGBITS .got
23 0x000008d0 0x30 0x006008d0 0x30 -rw- PROGBITS .got.plt
24 0x00000900 0x10 0x00600900 0x10 -rw- PROGBITS .data
25 0x00000910 0x0 0x00600910 0x8 -rw- NOBITS .bss
26 0x00000910 0x11 0x00000000 0x11 ---- PROGBITS .comment
27 0x00000921 0x108 0x00000000 0x108 ---- STRTAB .shstrtab
28 0x000011b0 0x648 0x00000000 0x648 ---- SYMTAB .symtab
29 0x000017f8 0x23e 0x00000000 0x23e ---- STRTAB .strtab
EOF
RUN
@ -3365,17 +3365,17 @@ CMDS=iSS
EXPECT=<<EOF
[Segments]
nth paddr size vaddr vsize perm name
-------------------------------------------------
0 0x00000040 0x1c0 0x00400040 0x1c0 -r-x PHDR
1 0x00000200 0x1a 0x00400200 0x1a -r-- INTERP
2 0x00000000 0x6dc 0x00400000 0x6dc -r-x LOAD0
3 0x000006e0 0x230 0x006006e0 0x238 -rw- LOAD1
4 0x000006f8 0x1d0 0x006006f8 0x1d0 -rw- DYNAMIC
5 0x0000021c 0x44 0x0040021c 0x44 -r-- NOTE
6 0x000005d0 0x34 0x004005d0 0x34 -r-- GNU_EH_FRAME
7 0x00000000 0x0 0x00000000 0x0 -rw- GNU_STACK
8 0x00000000 0x40 0x00400000 0x40 -rw- ehdr
nth paddr size vaddr vsize perm type name
------------------------------------------------------
0 0x00000040 0x1c0 0x00400040 0x1c0 -r-x MAP PHDR
1 0x00000200 0x1a 0x00400200 0x1a -r-- MAP INTERP
2 0x00000000 0x6dc 0x00400000 0x6dc -r-x MAP LOAD0
3 0x000006e0 0x230 0x006006e0 0x238 -rw- MAP LOAD1
4 0x000006f8 0x1d0 0x006006f8 0x1d0 -rw- MAP DYNAMIC
5 0x0000021c 0x44 0x0040021c 0x44 -r-- MAP NOTE
6 0x000005d0 0x34 0x004005d0 0x34 -r-- MAP GNU_EH_FRAME
7 0x00000000 0x0 0x00000000 0x0 -rw- MAP GNU_STACK
8 0x00000000 0x40 0x00400000 0x40 -rw- MAP ehdr
EOF
RUN
@ -3626,52 +3626,52 @@ CMDS=iS entropy; iSS entropy
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm entropy name
------------------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ----
1 0x00000154 0x13 0x08048154 0x13 -r-- 3.68188080 .interp
2 0x00000168 0x20 0x08048168 0x20 -r-- 1.74868984 .note.ABI-tag
3 0x00000188 0x38 0x08048188 0x38 -r-- 1.23442903 .hash
4 0x000001c0 0x20 0x080481c0 0x20 -r-- 1.99254169 .gnu.hash
5 0x000001e0 0x90 0x080481e0 0x90 -r-- 1.56755604 .dynsym
6 0x00000270 0x5f 0x08048270 0x5f -r-- 4.38707564 .dynstr
7 0x000002d0 0x12 0x080482d0 0x12 -r-- 1.19417373 .gnu.version
8 0x000002e4 0x20 0x080482e4 0x20 -r-- 1.66055053 .gnu.version_r
9 0x00000304 0x8 0x08048304 0x8 -r-- 2.75000000 .rel.dyn
10 0x0000030c 0x30 0x0804830c 0x30 -r-- 2.94082791 .rel.plt
11 0x0000033c 0x17 0x0804833c 0x17 -r-x 3.46241535 .init
12 0x00000354 0x70 0x08048354 0x70 -r-x 3.51876869 .plt
13 0x000003d0 0x274 0x080483d0 0x274 -r-x 5.76534324 .text
14 0x00000644 0x1a 0x08048644 0x1a -r-x 3.79621760 .fini
15 0x00000660 0x55 0x08048660 0x55 -r-- 4.59175306 .rodata
16 0x000006b8 0x4 0x080486b8 0x4 -r-- 0.00000000 .eh_frame
17 0x00000f0c 0x8 0x08049f0c 0x8 -rw- 1.00000000 .ctors
18 0x00000f14 0x8 0x08049f14 0x8 -rw- 1.00000000 .dtors
19 0x00000f1c 0x4 0x08049f1c 0x4 -rw- 0.00000000 .jcr
20 0x00000f20 0xd0 0x08049f20 0xd0 -rw- 2.82161069 .dynamic
21 0x00000ff0 0x4 0x08049ff0 0x4 -rw- 0.00000000 .got
22 0x00000ff4 0x24 0x08049ff4 0x24 -rw- 2.98068211 .got.plt
23 0x00001018 0xc 0x0804a018 0xc -rw- 1.58496250 .data
24 0x00001024 0x0 0x0804a024 0x4 -rw- .bss
25 0x00001024 0x1b9 0x00000000 0x1b9 ---- 4.50015849 .comment
26 0x000011dd 0xdb 0x00000000 0xdb ---- 4.21638420 .shstrtab
27 0x00001740 0x460 0x00000000 0x460 ---- 3.06854806 .symtab
28 0x00001ba0 0x248 0x00000000 0x248 ---- 4.85613827 .strtab
nth paddr size vaddr vsize perm entropy type name
------------------------------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ---- NULL
1 0x00000154 0x13 0x08048154 0x13 -r-- 3.68188080 PROGBITS .interp
2 0x00000168 0x20 0x08048168 0x20 -r-- 1.74868984 NOTE .note.ABI-tag
3 0x00000188 0x38 0x08048188 0x38 -r-- 1.23442903 HASH .hash
4 0x000001c0 0x20 0x080481c0 0x20 -r-- 1.99254169 GNU_HASH .gnu.hash
5 0x000001e0 0x90 0x080481e0 0x90 -r-- 1.56755604 DYNSYM .dynsym
6 0x00000270 0x5f 0x08048270 0x5f -r-- 4.38707564 STRTAB .dynstr
7 0x000002d0 0x12 0x080482d0 0x12 -r-- 1.19417373 GNU_VERSYM .gnu.version
8 0x000002e4 0x20 0x080482e4 0x20 -r-- 1.66055053 GNU_VERNEED .gnu.version_r
9 0x00000304 0x8 0x08048304 0x8 -r-- 2.75000000 REL .rel.dyn
10 0x0000030c 0x30 0x0804830c 0x30 -r-- 2.94082791 REL .rel.plt
11 0x0000033c 0x17 0x0804833c 0x17 -r-x 3.46241535 PROGBITS .init
12 0x00000354 0x70 0x08048354 0x70 -r-x 3.51876869 PROGBITS .plt
13 0x000003d0 0x274 0x080483d0 0x274 -r-x 5.76534324 PROGBITS .text
14 0x00000644 0x1a 0x08048644 0x1a -r-x 3.79621760 PROGBITS .fini
15 0x00000660 0x55 0x08048660 0x55 -r-- 4.59175306 PROGBITS .rodata
16 0x000006b8 0x4 0x080486b8 0x4 -r-- 0.00000000 PROGBITS .eh_frame
17 0x00000f0c 0x8 0x08049f0c 0x8 -rw- 1.00000000 PROGBITS .ctors
18 0x00000f14 0x8 0x08049f14 0x8 -rw- 1.00000000 PROGBITS .dtors
19 0x00000f1c 0x4 0x08049f1c 0x4 -rw- 0.00000000 PROGBITS .jcr
20 0x00000f20 0xd0 0x08049f20 0xd0 -rw- 2.82161069 DYNAMIC .dynamic
21 0x00000ff0 0x4 0x08049ff0 0x4 -rw- 0.00000000 PROGBITS .got
22 0x00000ff4 0x24 0x08049ff4 0x24 -rw- 2.98068211 PROGBITS .got.plt
23 0x00001018 0xc 0x0804a018 0xc -rw- 1.58496250 PROGBITS .data
24 0x00001024 0x0 0x0804a024 0x4 -rw- NOBITS .bss
25 0x00001024 0x1b9 0x00000000 0x1b9 ---- 4.50015849 PROGBITS .comment
26 0x000011dd 0xdb 0x00000000 0xdb ---- 4.21638420 STRTAB .shstrtab
27 0x00001740 0x460 0x00000000 0x460 ---- 3.06854806 SYMTAB .symtab
28 0x00001ba0 0x248 0x00000000 0x248 ---- 4.85613827 STRTAB .strtab
[Segments]
nth paddr size vaddr vsize perm entropy name
------------------------------------------------------------
0 0x00000034 0x120 0x08048034 0x120 -r-x 2.77947373 PHDR
1 0x00000154 0x13 0x08048154 0x13 -r-- 3.68188080 INTERP
2 0x00000000 0x6bc 0x08048000 0x6bc -r-x 5.13144413 LOAD0
3 0x00000f0c 0x118 0x08049f0c 0x11c -rw- 2.96573278 LOAD1
4 0x00000f20 0xd0 0x08049f20 0xd0 -rw- 2.82161069 DYNAMIC
5 0x00000168 0x20 0x08048168 0x20 -r-- 1.74868984 NOTE
6 0x00000000 0x0 0x00000000 0x0 -rw- GNU_STACK
7 0x00000f0c 0xf4 0x08049f0c 0xf4 -r-- 2.71815661 GNU_RELRO
8 0x00000000 0x0 0x00000000 0x0 ---- NONE
9 0x00000000 0x34 0x08048000 0x34 -rw- 2.79887339 ehdr
nth paddr size vaddr vsize perm entropy type name
-----------------------------------------------------------------
0 0x00000034 0x120 0x08048034 0x120 -r-x 2.77947373 MAP PHDR
1 0x00000154 0x13 0x08048154 0x13 -r-- 3.68188080 MAP INTERP
2 0x00000000 0x6bc 0x08048000 0x6bc -r-x 5.13144413 MAP LOAD0
3 0x00000f0c 0x118 0x08049f0c 0x11c -rw- 2.96573278 MAP LOAD1
4 0x00000f20 0xd0 0x08049f20 0xd0 -rw- 2.82161069 MAP DYNAMIC
5 0x00000168 0x20 0x08048168 0x20 -r-- 1.74868984 MAP NOTE
6 0x00000000 0x0 0x00000000 0x0 -rw- MAP GNU_STACK
7 0x00000f0c 0xf4 0x08049f0c 0xf4 -r-- 2.71815661 MAP GNU_RELRO
8 0x00000000 0x0 0x00000000 0x0 ---- MAP NONE
9 0x00000000 0x34 0x08048000 0x34 -rw- 2.79887339 MAP ehdr
EOF
RUN

View File

@ -8,74 +8,74 @@ EOF
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
-------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ----
1 0x00000200 0x1c 0x00400200 0x1c -r-- .interp
2 0x0000021c 0x20 0x0040021c 0x20 -r-- .note.ABI-tag
3 0x0000023c 0x24 0x0040023c 0x24 -r-- .note.gnu.build-id
4 0x00000260 0x3c 0x00400260 0x3c -r-- .hash
5 0x000002a0 0x28 0x004002a0 0x28 -r-- .gnu.hash
6 0x000002c8 0xf0 0x004002c8 0xf0 -r-- .dynsym
7 0x000003b8 0x65 0x004003b8 0x65 -r-- .dynstr
8 0x0000041e 0x14 0x0040041e 0x14 -r-- .gnu.version
9 0x00000438 0x20 0x00400438 0x20 -r-- .gnu.version_r
10 0x00000458 0x48 0x00400458 0x48 -r-- .rela.dyn
11 0x000004a0 0x90 0x004004a0 0x90 -r-- .rela.plt
12 0x00000530 0x18 0x00400530 0x18 -r-x .init
13 0x00000548 0x70 0x00400548 0x70 -r-x .plt
14 0x000005c0 0x248 0x004005c0 0x248 -r-x .text
15 0x00000808 0xe 0x00400808 0xe -r-x .fini
16 0x00000818 0x3a 0x00400818 0x3a -r-- .rodata
17 0x00000854 0x24 0x00400854 0x24 -r-- .eh_frame_hdr
18 0x00000878 0x7c 0x00400878 0x7c -r-- .eh_frame
19 0x000008f8 0x10 0x006008f8 0x10 -rw- .ctors
20 0x00000908 0x10 0x00600908 0x10 -rw- .dtors
21 0x00000918 0x8 0x00600918 0x8 -rw- .jcr
22 0x00000920 0x1a0 0x00600920 0x1a0 -rw- .dynamic
23 0x00000ac0 0x8 0x00600ac0 0x8 -rw- .got
24 0x00000ac8 0x48 0x00600ac8 0x48 -rw- .got.plt
25 0x00000b10 0x10 0x00600b10 0x10 -rw- .data
26 0x00000b20 0x0 0x00600b20 0x28 -rw- .bss
27 0x00000b20 0x1c 0x00000000 0x1c ---- .comment
28 0x00000b3c 0xfe 0x00000000 0xfe ---- .shstrtab
29 0x00001400 0x6a8 0x00000000 0x6a8 ---- .symtab
30 0x00001aa8 0x269 0x00000000 0x269 ---- .strtab
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ---- NULL
1 0x00000200 0x1c 0x00400200 0x1c -r-- PROGBITS .interp
2 0x0000021c 0x20 0x0040021c 0x20 -r-- NOTE .note.ABI-tag
3 0x0000023c 0x24 0x0040023c 0x24 -r-- NOTE .note.gnu.build-id
4 0x00000260 0x3c 0x00400260 0x3c -r-- HASH .hash
5 0x000002a0 0x28 0x004002a0 0x28 -r-- GNU_HASH .gnu.hash
6 0x000002c8 0xf0 0x004002c8 0xf0 -r-- DYNSYM .dynsym
7 0x000003b8 0x65 0x004003b8 0x65 -r-- STRTAB .dynstr
8 0x0000041e 0x14 0x0040041e 0x14 -r-- GNU_VERSYM .gnu.version
9 0x00000438 0x20 0x00400438 0x20 -r-- GNU_VERNEED .gnu.version_r
10 0x00000458 0x48 0x00400458 0x48 -r-- RELA .rela.dyn
11 0x000004a0 0x90 0x004004a0 0x90 -r-- RELA .rela.plt
12 0x00000530 0x18 0x00400530 0x18 -r-x PROGBITS .init
13 0x00000548 0x70 0x00400548 0x70 -r-x PROGBITS .plt
14 0x000005c0 0x248 0x004005c0 0x248 -r-x PROGBITS .text
15 0x00000808 0xe 0x00400808 0xe -r-x PROGBITS .fini
16 0x00000818 0x3a 0x00400818 0x3a -r-- PROGBITS .rodata
17 0x00000854 0x24 0x00400854 0x24 -r-- PROGBITS .eh_frame_hdr
18 0x00000878 0x7c 0x00400878 0x7c -r-- PROGBITS .eh_frame
19 0x000008f8 0x10 0x006008f8 0x10 -rw- PROGBITS .ctors
20 0x00000908 0x10 0x00600908 0x10 -rw- PROGBITS .dtors
21 0x00000918 0x8 0x00600918 0x8 -rw- PROGBITS .jcr
22 0x00000920 0x1a0 0x00600920 0x1a0 -rw- DYNAMIC .dynamic
23 0x00000ac0 0x8 0x00600ac0 0x8 -rw- PROGBITS .got
24 0x00000ac8 0x48 0x00600ac8 0x48 -rw- PROGBITS .got.plt
25 0x00000b10 0x10 0x00600b10 0x10 -rw- PROGBITS .data
26 0x00000b20 0x0 0x00600b20 0x28 -rw- NOBITS .bss
27 0x00000b20 0x1c 0x00000000 0x1c ---- PROGBITS .comment
28 0x00000b3c 0xfe 0x00000000 0xfe ---- STRTAB .shstrtab
29 0x00001400 0x6a8 0x00000000 0x6a8 ---- SYMTAB .symtab
30 0x00001aa8 0x269 0x00000000 0x269 ---- STRTAB .strtab
--
30 0x00001aa8 0x269 0x00000000 0x269 ---- .strtab
29 0x00001400 0x6a8 0x00000000 0x6a8 ---- .symtab
28 0x00000b3c 0xfe 0x00000000 0xfe ---- .shstrtab
27 0x00000b20 0x1c 0x00000000 0x1c ---- .comment
26 0x00000b20 0x0 0x00600b20 0x28 -rw- .bss
25 0x00000b10 0x10 0x00600b10 0x10 -rw- .data
24 0x00000ac8 0x48 0x00600ac8 0x48 -rw- .got.plt
23 0x00000ac0 0x8 0x00600ac0 0x8 -rw- .got
22 0x00000920 0x1a0 0x00600920 0x1a0 -rw- .dynamic
21 0x00000918 0x8 0x00600918 0x8 -rw- .jcr
20 0x00000908 0x10 0x00600908 0x10 -rw- .dtors
19 0x000008f8 0x10 0x006008f8 0x10 -rw- .ctors
18 0x00000878 0x7c 0x00400878 0x7c -r-- .eh_frame
17 0x00000854 0x24 0x00400854 0x24 -r-- .eh_frame_hdr
16 0x00000818 0x3a 0x00400818 0x3a -r-- .rodata
15 0x00000808 0xe 0x00400808 0xe -r-x .fini
14 0x000005c0 0x248 0x004005c0 0x248 -r-x .text
13 0x00000548 0x70 0x00400548 0x70 -r-x .plt
12 0x00000530 0x18 0x00400530 0x18 -r-x .init
11 0x000004a0 0x90 0x004004a0 0x90 -r-- .rela.plt
10 0x00000458 0x48 0x00400458 0x48 -r-- .rela.dyn
9 0x00000438 0x20 0x00400438 0x20 -r-- .gnu.version_r
8 0x0000041e 0x14 0x0040041e 0x14 -r-- .gnu.version
7 0x000003b8 0x65 0x004003b8 0x65 -r-- .dynstr
6 0x000002c8 0xf0 0x004002c8 0xf0 -r-- .dynsym
5 0x000002a0 0x28 0x004002a0 0x28 -r-- .gnu.hash
4 0x00000260 0x3c 0x00400260 0x3c -r-- .hash
3 0x0000023c 0x24 0x0040023c 0x24 -r-- .note.gnu.build-id
2 0x0000021c 0x20 0x0040021c 0x20 -r-- .note.ABI-tag
1 0x00000200 0x1c 0x00400200 0x1c -r-- .interp
0 0x00000000 0x0 0x00000000 0x0 ----
-------------------------------------------------
nth paddr size vaddr vsize perm name
30 0x00001aa8 0x269 0x00000000 0x269 ---- STRTAB .strtab
29 0x00001400 0x6a8 0x00000000 0x6a8 ---- SYMTAB .symtab
28 0x00000b3c 0xfe 0x00000000 0xfe ---- STRTAB .shstrtab
27 0x00000b20 0x1c 0x00000000 0x1c ---- PROGBITS .comment
26 0x00000b20 0x0 0x00600b20 0x28 -rw- NOBITS .bss
25 0x00000b10 0x10 0x00600b10 0x10 -rw- PROGBITS .data
24 0x00000ac8 0x48 0x00600ac8 0x48 -rw- PROGBITS .got.plt
23 0x00000ac0 0x8 0x00600ac0 0x8 -rw- PROGBITS .got
22 0x00000920 0x1a0 0x00600920 0x1a0 -rw- DYNAMIC .dynamic
21 0x00000918 0x8 0x00600918 0x8 -rw- PROGBITS .jcr
20 0x00000908 0x10 0x00600908 0x10 -rw- PROGBITS .dtors
19 0x000008f8 0x10 0x006008f8 0x10 -rw- PROGBITS .ctors
18 0x00000878 0x7c 0x00400878 0x7c -r-- PROGBITS .eh_frame
17 0x00000854 0x24 0x00400854 0x24 -r-- PROGBITS .eh_frame_hdr
16 0x00000818 0x3a 0x00400818 0x3a -r-- PROGBITS .rodata
15 0x00000808 0xe 0x00400808 0xe -r-x PROGBITS .fini
14 0x000005c0 0x248 0x004005c0 0x248 -r-x PROGBITS .text
13 0x00000548 0x70 0x00400548 0x70 -r-x PROGBITS .plt
12 0x00000530 0x18 0x00400530 0x18 -r-x PROGBITS .init
11 0x000004a0 0x90 0x004004a0 0x90 -r-- RELA .rela.plt
10 0x00000458 0x48 0x00400458 0x48 -r-- RELA .rela.dyn
9 0x00000438 0x20 0x00400438 0x20 -r-- GNU_VERNEED .gnu.version_r
8 0x0000041e 0x14 0x0040041e 0x14 -r-- GNU_VERSYM .gnu.version
7 0x000003b8 0x65 0x004003b8 0x65 -r-- STRTAB .dynstr
6 0x000002c8 0xf0 0x004002c8 0xf0 -r-- DYNSYM .dynsym
5 0x000002a0 0x28 0x004002a0 0x28 -r-- GNU_HASH .gnu.hash
4 0x00000260 0x3c 0x00400260 0x3c -r-- HASH .hash
3 0x0000023c 0x24 0x0040023c 0x24 -r-- NOTE .note.gnu.build-id
2 0x0000021c 0x20 0x0040021c 0x20 -r-- NOTE .note.ABI-tag
1 0x00000200 0x1c 0x00400200 0x1c -r-- PROGBITS .interp
0 0x00000000 0x0 0x00000000 0x0 ---- NULL
-------------------------------------------------------------
nth paddr size vaddr vsize perm type name
[Sections]
EOF
RUN

View File

@ -399,8 +399,8 @@ s segment.LOAD1
?vi $SS
EOF
EXPECT=<<EOF
3 0x00000ed4 0x14c 0x08049ed4 0x150 -rw- LOAD1
18 0x00000ed4 0x8 0x08049ed4 0x8 -rw- .preinit_array
3 0x00000ed4 0x14c 0x08049ed4 0x150 -rw- MAP LOAD1
18 0x00000ed4 0x8 0x08049ed4 0x8 -rw- PREINIT_ARRAY .preinit_array
336
8

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@ NAME=ar file sections
FILE=ar://bins/ar/libgdbr.a//responses.o
CMDS=iS~:5
EXPECT=<<EOF
1 0x00000040 0x147e 0x08000040 0x147e -r-x .text
1 0x00000040 0x147e 0x08000040 0x147e -r-x PROGBITS .text
EOF
RUN

View File

@ -51,19 +51,19 @@ nth vaddr bind type lib name
[Sections]
nth paddr size vaddr vsize perm name
---------------------------------------------------
0 0x000001cc 0x2f 0x00000000 0x2f ---- .drectve-0
1 0x000001fb 0x8670 0x00000030 0x8670 -r-- .debug$S-1
2 0x0000ad73 0x70 0x000086a0 0x70 -r-- .debug$T-2
3 0x0000ade3 0x625 0x00008710 0x625 -rw- .data-3
4 0x0000b408 0x54 0x00008d40 0x54 -r-- .rdata-4
5 0x00000000 0x8 0x00008da0 0x8 -rw- .bss-5
6 0x0000b45c 0x2895 0x00008db0 0x2895 -r-x .text$mn-6
7 0x0000e967 0x8 0x0000b650 0x8 -r-- .rdata-7
8 0x0000e96f 0x4 0x0000b660 0x4 -r-- .rdata-8
9 0x0000e973 0x8 0x0000b670 0x8 -r-- .rdata-9
10 0x0000e97b 0x4 0x0000b680 0x4 -r-- .rdata-10
nth paddr size vaddr vsize perm type name
--------------------------------------------------------
0 0x000001cc 0x2f 0x00000000 0x2f ---- MAP .drectve-0
1 0x000001fb 0x8670 0x00000030 0x8670 -r-- DATA .debug$S-1
2 0x0000ad73 0x70 0x000086a0 0x70 -r-- DATA .debug$T-2
3 0x0000ade3 0x625 0x00008710 0x625 -rw- DATA .data-3
4 0x0000b408 0x54 0x00008d40 0x54 -r-- DATA .rdata-4
5 0x00000000 0x8 0x00008da0 0x8 -rw- MAP .bss-5
6 0x0000b45c 0x2895 0x00008db0 0x2895 -r-x TEXT .text$mn-6
7 0x0000e967 0x8 0x0000b650 0x8 -r-- DATA .rdata-7
8 0x0000e96f 0x4 0x0000b660 0x4 -r-- DATA .rdata-8
9 0x0000e973 0x8 0x0000b670 0x8 -r-- DATA .rdata-9
10 0x0000e97b 0x4 0x0000b680 0x4 -r-- DATA .rdata-10
EOF
RUN

View File

@ -67,8 +67,8 @@ NAME=ELF: corkami elf-relro - sections
FILE=bins/elf/analysis/elf-relro
CMDS=iS~rel
EXPECT=<<EOF
9 0x0000027c 0x8 0x0804827c 0x8 -r-- .rel.dyn
10 0x00000284 0x10 0x08048284 0x10 -r-- .rel.plt
9 0x0000027c 0x8 0x0804827c 0x8 -r-- REL .rel.dyn
10 0x00000284 0x10 0x08048284 0x10 -r-- REL .rel.plt
EOF
RUN

View File

@ -48,7 +48,7 @@ NAME=x86 - init_array detection2
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=iS~init_array
EXPECT=<<EOF
18 0x0000059c 0x4 0x0804959c 0x4 -rw- .init_array
18 0x0000059c 0x4 0x0804959c 0x4 -rw- INIT_ARRAY .init_array
EOF
RUN

View File

@ -4,58 +4,58 @@ CMDS=iS;iSS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
-------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ----
1 0x00000200 0x1c 0x00404500 0x1c -r-- .interp
2 0x0000021c 0x20 0x0040021c 0x20 -r-- .note.ABI-tag
3 0x0000023c 0x24 0x0040023c 0x24 -r-- .note.gnu.build-id
4 0x00000260 0x1c 0x00400260 0x1c -r-- .gnu.hash
5 0x00000280 0x60 0x00400280 0x60 -r-- .dynsym
6 0x000002e0 0x3d 0x004002e0 0x3d -r-- .dynstr
7 0x0000031e 0x8 0x0040031e 0x8 -r-- .gnu.version
8 0x00000328 0x20 0x00400328 0x20 -r-- .gnu.version_r
9 0x00000348 0x18 0x00400348 0x18 -r-- .rela.dyn
10 0x00000360 0x48 0x00400360 0x48 -r-- .rela.plt
11 0x000003a8 0x1a 0x004003a8 0x1a -r-x .init
12 0x000003d0 0x40 0x004003d0 0x40 -r-x .plt
13 0x00000410 0x1a2 0x00410570 0x1a2 -r-x .text
14 0x000005b4 0x9 0x004005b4 0x9 -r-x .fini
15 0x000005c0 0x10 0x004005c0 0x10 -r-- .rodata
16 0x000005d0 0x34 0x004005d0 0x34 -r-- .eh_frame_hdr
17 0x00000608 0xd4 0x00400608 0xd4 -r-- .eh_frame
18 0x000006e0 0x8 0x006006e0 0x8 -rw- .init_array
19 0x000006e8 0x8 0x006006e8 0x8 -rw- .fini_array
20 0x000006f0 0x8 0x006006f0 0x8 -rw- .jcr
21 0x000006f8 0x1d0 0x006006f8 0x1d0 -rw- .dynamic
22 0x000008c8 0x8 0x006008c8 0x8 -rw- .got
23 0x000008d0 0x30 0x006008d0 0x30 -rw- .got.plt
24 0x00000900 0x10 0x00600900 0x10 -rw- .data
25 0x00000910 0x0 0x00600910 0x8 -rw- .bss
26 0x00000910 0x22 0x00000000 0x22 ---- .comment
27 0x00000940 0xd0 0x00000000 0xd0 ---- .debug_aranges
28 0x00000a10 0x188 0x00000000 0x188 ---- .debug_info
29 0x00000b98 0x76 0x00000000 0x76 ---- .debug_abbrev
30 0x00000c0e 0x149 0x00000000 0x149 ---- .debug_line
31 0x00000d57 0x8a 0x00000000 0x8a ---- .debug_str
32 0x00000df0 0x80 0x00000000 0x80 ---- .debug_ranges
33 0x00000e70 0x156 0x00000000 0x156 ---- .shstrtab
34 0x000018c8 0x6d8 0x00000000 0x6d8 ---- .symtab
35 0x00001fa0 0x23a 0x00000000 0x23a ---- .strtab
nth paddr size vaddr vsize perm type name
-------------------------------------------------------------
0 0x00000000 0x0 0x00000000 0x0 ---- NULL
1 0x00000200 0x1c 0x00404500 0x1c -r-- PROGBITS .interp
2 0x0000021c 0x20 0x0040021c 0x20 -r-- NOTE .note.ABI-tag
3 0x0000023c 0x24 0x0040023c 0x24 -r-- NOTE .note.gnu.build-id
4 0x00000260 0x1c 0x00400260 0x1c -r-- GNU_HASH .gnu.hash
5 0x00000280 0x60 0x00400280 0x60 -r-- DYNSYM .dynsym
6 0x000002e0 0x3d 0x004002e0 0x3d -r-- STRTAB .dynstr
7 0x0000031e 0x8 0x0040031e 0x8 -r-- GNU_VERSYM .gnu.version
8 0x00000328 0x20 0x00400328 0x20 -r-- GNU_VERNEED .gnu.version_r
9 0x00000348 0x18 0x00400348 0x18 -r-- RELA .rela.dyn
10 0x00000360 0x48 0x00400360 0x48 -r-- RELA .rela.plt
11 0x000003a8 0x1a 0x004003a8 0x1a -r-x PROGBITS .init
12 0x000003d0 0x40 0x004003d0 0x40 -r-x PROGBITS .plt
13 0x00000410 0x1a2 0x00410570 0x1a2 -r-x PROGBITS .text
14 0x000005b4 0x9 0x004005b4 0x9 -r-x PROGBITS .fini
15 0x000005c0 0x10 0x004005c0 0x10 -r-- PROGBITS .rodata
16 0x000005d0 0x34 0x004005d0 0x34 -r-- PROGBITS .eh_frame_hdr
17 0x00000608 0xd4 0x00400608 0xd4 -r-- PROGBITS .eh_frame
18 0x000006e0 0x8 0x006006e0 0x8 -rw- INIT_ARRAY .init_array
19 0x000006e8 0x8 0x006006e8 0x8 -rw- FINI_ARRAY .fini_array
20 0x000006f0 0x8 0x006006f0 0x8 -rw- PROGBITS .jcr
21 0x000006f8 0x1d0 0x006006f8 0x1d0 -rw- DYNAMIC .dynamic
22 0x000008c8 0x8 0x006008c8 0x8 -rw- PROGBITS .got
23 0x000008d0 0x30 0x006008d0 0x30 -rw- PROGBITS .got.plt
24 0x00000900 0x10 0x00600900 0x10 -rw- PROGBITS .data
25 0x00000910 0x0 0x00600910 0x8 -rw- NOBITS .bss
26 0x00000910 0x22 0x00000000 0x22 ---- PROGBITS .comment
27 0x00000940 0xd0 0x00000000 0xd0 ---- PROGBITS .debug_aranges
28 0x00000a10 0x188 0x00000000 0x188 ---- PROGBITS .debug_info
29 0x00000b98 0x76 0x00000000 0x76 ---- PROGBITS .debug_abbrev
30 0x00000c0e 0x149 0x00000000 0x149 ---- PROGBITS .debug_line
31 0x00000d57 0x8a 0x00000000 0x8a ---- PROGBITS .debug_str
32 0x00000df0 0x80 0x00000000 0x80 ---- PROGBITS .debug_ranges
33 0x00000e70 0x156 0x00000000 0x156 ---- STRTAB .shstrtab
34 0x000018c8 0x6d8 0x00000000 0x6d8 ---- SYMTAB .symtab
35 0x00001fa0 0x23a 0x00000000 0x23a ---- STRTAB .strtab
[Segments]
nth paddr size vaddr vsize perm name
-------------------------------------------------
0 0x00000040 0x1c0 0x00400040 0x1c0 -r-x PHDR
1 0x00000200 0x1c 0x00400200 0x1c -r-- INTERP
2 0x00000000 0x6dc 0x00400000 0x6dc -r-x LOAD0
3 0x000006e0 0x230 0x006006e0 0x238 -rw- LOAD1
4 0x000006f8 0x1d0 0x006006f8 0x1d0 -rw- DYNAMIC
5 0x0000021c 0x44 0x0040021c 0x44 -r-- NOTE
6 0x000005d0 0x34 0x004005d0 0x34 -r-- GNU_EH_FRAME
7 0x00000000 0x0 0x00000000 0x0 -rw- GNU_STACK
8 0x00000000 0x40 0x00400000 0x40 -rw- ehdr
nth paddr size vaddr vsize perm type name
------------------------------------------------------
0 0x00000040 0x1c0 0x00400040 0x1c0 -r-x MAP PHDR
1 0x00000200 0x1c 0x00400200 0x1c -r-- MAP INTERP
2 0x00000000 0x6dc 0x00400000 0x6dc -r-x MAP LOAD0
3 0x000006e0 0x230 0x006006e0 0x238 -rw- MAP LOAD1
4 0x000006f8 0x1d0 0x006006f8 0x1d0 -rw- MAP DYNAMIC
5 0x0000021c 0x44 0x0040021c 0x44 -r-- MAP NOTE
6 0x000005d0 0x34 0x004005d0 0x34 -r-- MAP GNU_EH_FRAME
7 0x00000000 0x0 0x00000000 0x0 -rw- MAP GNU_STACK
8 0x00000000 0x40 0x00400000 0x40 -rw- MAP ehdr
EOF
RUN

View File

@ -20,69 +20,69 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
---------------------------------------------------
0 0x0000d200 0x1000 0x00010000 0x1000 -r-x obj.1.page.0
1 0x0000e200 0x1000 0x00011000 0x1000 -r-x obj.1.page.1
2 0x0000f200 0x1000 0x00012000 0x1000 -r-x obj.1.page.2
3 0x00010200 0x1000 0x00013000 0x1000 -r-x obj.1.page.3
4 0x00011200 0x1000 0x00014000 0x1000 -r-x obj.1.page.4
5 0x00012200 0x1000 0x00015000 0x1000 -r-x obj.1.page.5
6 0x00013200 0x1000 0x00016000 0x1000 -r-x obj.1.page.6
7 0x00014200 0x1000 0x00017000 0x1000 -r-x obj.1.page.7
8 0x00015200 0x1000 0x00018000 0x1000 -r-x obj.1.page.8
9 0x00016200 0x1000 0x00019000 0x1000 -r-x obj.1.page.9
10 0x00017200 0x1000 0x0001a000 0x1000 -r-x obj.1.page.10
11 0x00018200 0x1000 0x0001b000 0x1000 -r-x obj.1.page.11
12 0x00019200 0x1000 0x0001c000 0x1000 -r-x obj.1.page.12
13 0x0001a200 0x1000 0x0001d000 0x1000 -r-x obj.1.page.13
14 0x0001b200 0x1000 0x0001e000 0x1000 -r-x obj.1.page.14
15 0x0001c200 0x1000 0x0001f000 0x1000 -r-x obj.1.page.15
16 0x0001d200 0x1000 0x00020000 0x1000 -r-x obj.1.page.16
17 0x0001e200 0x1000 0x00021000 0x1000 -r-x obj.1.page.17
18 0x0001f200 0x1000 0x00022000 0x1000 -r-x obj.1.page.18
19 0x00020200 0x1000 0x00023000 0x1000 -r-x obj.1.page.19
20 0x00021200 0x1000 0x00024000 0x1000 -r-x obj.1.page.20
21 0x00022200 0x1000 0x00025000 0x1000 -r-x obj.1.page.21
22 0x00023200 0x1000 0x00026000 0x1000 -r-x obj.1.page.22
23 0x00024200 0x1000 0x00027000 0x1000 -r-x obj.1.page.23
24 0x00025200 0x1000 0x00028000 0x1000 -r-x obj.1.page.24
25 0x00026200 0x1000 0x00029000 0x1000 -r-x obj.1.page.25
26 0x00027200 0x1000 0x0002a000 0x1000 -r-x obj.1.page.26
27 0x00028200 0x1000 0x0002b000 0x1000 -r-x obj.1.page.27
28 0x00029200 0x1000 0x0002c000 0x1000 -r-x obj.1.page.28
29 0x0002a200 0x1000 0x0002d000 0x1000 -r-x obj.1.page.29
30 0x0002b200 0x1000 0x0002e000 0x1000 -r-x obj.1.page.30
31 0x0002c200 0x1000 0x0002f000 0x1000 -r-x obj.1.page.31
32 0x0002d200 0x1000 0x00030000 0x1000 -r-x obj.1.page.32
33 0x0002e200 0x1000 0x00031000 0x1000 -r-x obj.1.page.33
34 0x0002f200 0x1000 0x00032000 0x1000 -r-x obj.1.page.34
35 0x00030200 0x1000 0x00033000 0x1000 -r-x obj.1.page.35
36 0x00031200 0x1000 0x00034000 0x1000 -r-x obj.1.page.36
37 0x00032200 0x1000 0x00035000 0x1000 -r-x obj.1.page.37
38 0x00033200 0x1000 0x00036000 0x1000 -r-x obj.1.page.38
39 0x00034200 0x1000 0x00037000 0x1000 -r-x obj.1.page.39
40 0x00035200 0x1000 0x00038000 0x1000 -r-x obj.1.page.40
41 0x00036200 0x1000 0x00039000 0x1000 -r-x obj.1.page.41
42 0x00037200 0x1000 0x0003a000 0x1000 -r-x obj.1.page.42
43 0x00038200 0x1000 0x0003b000 0x1000 -r-x obj.1.page.43
44 0x00039200 0x1000 0x0003c000 0x1000 -r-x obj.1.page.44
45 0x0003a200 0x1000 0x00040000 0x1000 -rw- obj.2.page.0
46 0x0003b200 0x1000 0x00041000 0x1000 -rw- obj.2.page.1
47 0x0003c200 0x1000 0x00042000 0x1000 -rw- obj.2.page.2
48 0x0003d200 0x1000 0x00043000 0x1000 -rw- obj.2.page.3
49 0x0003e200 0x1000 0x00044000 0x1000 -rw- obj.2.page.4
50 0x0003f200 0x1000 0x00045000 0x1000 -rw- obj.2.page.5
51 0x00040200 0x1000 0x00046000 0x1000 -rw- obj.2.page.6
52 0x00041200 0x1000 0x00047000 0x1000 -rw- obj.2.page.7
53 0x00042200 0x1000 0x00048000 0x1000 -rw- obj.2.page.8
54 0x00043200 0x1000 0x00049000 0x1000 -rw- obj.2.page.9
55 0x00044200 0x1000 0x0004a000 0x1000 -rw- obj.2.page.10
56 0x00045200 0x1000 0x0004b000 0x1000 -rw- obj.2.page.11
57 0x00046200 0x1000 0x0004c000 0x1000 -rw- obj.2.page.12
58 0x00047200 0x1000 0x0004d000 0x1000 -rw- obj.2.page.13
59 0x00048200 0x1000 0x0004e000 0x1000 -rw- obj.2.page.14
60 0x00049200 0xd8c 0x0004f000 0x1000 -rw- obj.2.page.15
nth paddr size vaddr vsize perm type name
--------------------------------------------------------
0 0x0000d200 0x1000 0x00010000 0x1000 -r-x ---- obj.1.page.0
1 0x0000e200 0x1000 0x00011000 0x1000 -r-x ---- obj.1.page.1
2 0x0000f200 0x1000 0x00012000 0x1000 -r-x ---- obj.1.page.2
3 0x00010200 0x1000 0x00013000 0x1000 -r-x ---- obj.1.page.3
4 0x00011200 0x1000 0x00014000 0x1000 -r-x ---- obj.1.page.4
5 0x00012200 0x1000 0x00015000 0x1000 -r-x ---- obj.1.page.5
6 0x00013200 0x1000 0x00016000 0x1000 -r-x ---- obj.1.page.6
7 0x00014200 0x1000 0x00017000 0x1000 -r-x ---- obj.1.page.7
8 0x00015200 0x1000 0x00018000 0x1000 -r-x ---- obj.1.page.8
9 0x00016200 0x1000 0x00019000 0x1000 -r-x ---- obj.1.page.9
10 0x00017200 0x1000 0x0001a000 0x1000 -r-x ---- obj.1.page.10
11 0x00018200 0x1000 0x0001b000 0x1000 -r-x ---- obj.1.page.11
12 0x00019200 0x1000 0x0001c000 0x1000 -r-x ---- obj.1.page.12
13 0x0001a200 0x1000 0x0001d000 0x1000 -r-x ---- obj.1.page.13
14 0x0001b200 0x1000 0x0001e000 0x1000 -r-x ---- obj.1.page.14
15 0x0001c200 0x1000 0x0001f000 0x1000 -r-x ---- obj.1.page.15
16 0x0001d200 0x1000 0x00020000 0x1000 -r-x ---- obj.1.page.16
17 0x0001e200 0x1000 0x00021000 0x1000 -r-x ---- obj.1.page.17
18 0x0001f200 0x1000 0x00022000 0x1000 -r-x ---- obj.1.page.18
19 0x00020200 0x1000 0x00023000 0x1000 -r-x ---- obj.1.page.19
20 0x00021200 0x1000 0x00024000 0x1000 -r-x ---- obj.1.page.20
21 0x00022200 0x1000 0x00025000 0x1000 -r-x ---- obj.1.page.21
22 0x00023200 0x1000 0x00026000 0x1000 -r-x ---- obj.1.page.22
23 0x00024200 0x1000 0x00027000 0x1000 -r-x ---- obj.1.page.23
24 0x00025200 0x1000 0x00028000 0x1000 -r-x ---- obj.1.page.24
25 0x00026200 0x1000 0x00029000 0x1000 -r-x ---- obj.1.page.25
26 0x00027200 0x1000 0x0002a000 0x1000 -r-x ---- obj.1.page.26
27 0x00028200 0x1000 0x0002b000 0x1000 -r-x ---- obj.1.page.27
28 0x00029200 0x1000 0x0002c000 0x1000 -r-x ---- obj.1.page.28
29 0x0002a200 0x1000 0x0002d000 0x1000 -r-x ---- obj.1.page.29
30 0x0002b200 0x1000 0x0002e000 0x1000 -r-x ---- obj.1.page.30
31 0x0002c200 0x1000 0x0002f000 0x1000 -r-x ---- obj.1.page.31
32 0x0002d200 0x1000 0x00030000 0x1000 -r-x ---- obj.1.page.32
33 0x0002e200 0x1000 0x00031000 0x1000 -r-x ---- obj.1.page.33
34 0x0002f200 0x1000 0x00032000 0x1000 -r-x ---- obj.1.page.34
35 0x00030200 0x1000 0x00033000 0x1000 -r-x ---- obj.1.page.35
36 0x00031200 0x1000 0x00034000 0x1000 -r-x ---- obj.1.page.36
37 0x00032200 0x1000 0x00035000 0x1000 -r-x ---- obj.1.page.37
38 0x00033200 0x1000 0x00036000 0x1000 -r-x ---- obj.1.page.38
39 0x00034200 0x1000 0x00037000 0x1000 -r-x ---- obj.1.page.39
40 0x00035200 0x1000 0x00038000 0x1000 -r-x ---- obj.1.page.40
41 0x00036200 0x1000 0x00039000 0x1000 -r-x ---- obj.1.page.41
42 0x00037200 0x1000 0x0003a000 0x1000 -r-x ---- obj.1.page.42
43 0x00038200 0x1000 0x0003b000 0x1000 -r-x ---- obj.1.page.43
44 0x00039200 0x1000 0x0003c000 0x1000 -r-x ---- obj.1.page.44
45 0x0003a200 0x1000 0x00040000 0x1000 -rw- ---- obj.2.page.0
46 0x0003b200 0x1000 0x00041000 0x1000 -rw- ---- obj.2.page.1
47 0x0003c200 0x1000 0x00042000 0x1000 -rw- ---- obj.2.page.2
48 0x0003d200 0x1000 0x00043000 0x1000 -rw- ---- obj.2.page.3
49 0x0003e200 0x1000 0x00044000 0x1000 -rw- ---- obj.2.page.4
50 0x0003f200 0x1000 0x00045000 0x1000 -rw- ---- obj.2.page.5
51 0x00040200 0x1000 0x00046000 0x1000 -rw- ---- obj.2.page.6
52 0x00041200 0x1000 0x00047000 0x1000 -rw- ---- obj.2.page.7
53 0x00042200 0x1000 0x00048000 0x1000 -rw- ---- obj.2.page.8
54 0x00043200 0x1000 0x00049000 0x1000 -rw- ---- obj.2.page.9
55 0x00044200 0x1000 0x0004a000 0x1000 -rw- ---- obj.2.page.10
56 0x00045200 0x1000 0x0004b000 0x1000 -rw- ---- obj.2.page.11
57 0x00046200 0x1000 0x0004c000 0x1000 -rw- ---- obj.2.page.12
58 0x00047200 0x1000 0x0004d000 0x1000 -rw- ---- obj.2.page.13
59 0x00048200 0x1000 0x0004e000 0x1000 -rw- ---- obj.2.page.14
60 0x00049200 0xd8c 0x0004f000 0x1000 -rw- ---- obj.2.page.15
EOF
RUN
@ -248,26 +248,26 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
------------------------------------------------------
0 0x00001000 0x1000 0x00010000 0x1000 -r-x obj.1.page.0
1 0x00002000 0x1000 0x00011000 0x1000 -r-x obj.1.page.1
2 0x00003000 0x1000 0x00012000 0x1000 -r-x obj.1.page.2
3 0x00004000 0x1000 0x00013000 0x1000 -r-x obj.1.page.3
4 0x00005000 0x1000 0x00014000 0x1000 -r-x obj.1.page.4
5 0x00006000 0x1000 0x00015000 0x1000 -r-x obj.1.page.5
6 0x00007000 0x1000 0x00016000 0x1000 -r-x obj.1.page.6
7 0x00008000 0x1000 0x00017000 0x1000 -r-x obj.1.page.7
8 0x00009000 0x1000 0x00018000 0x1000 -r-x obj.1.page.8
9 0x0000a000 0x1000 0x00019000 0x1000 -r-x obj.1.page.9
10 0x0000b000 0x1000 0x0001a000 0x1000 -r-x obj.1.page.10
11 0x0000c000 0x1000 0x0001b000 0x1000 -r-x obj.1.page.11
12 0x0000d000 0x1000 0x0001c000 0x1000 -r-x obj.1.page.12
13 0x0000e000 0x1000 0x0001d000 0x1000 -r-x obj.1.page.13
14 0x0000f000 0x1000 0x0001e000 0x1000 -r-x obj.1.page.14
15 0x00010000 0x1000 0x00020000 0x1000 -rw- obj.2.page.0
16 0x00000000 0x0 0x00030000 0x2000000 -rw- obj.3
17 0x00000000 0x0 0x02030000 0x800000 -rw- obj.4
nth paddr size vaddr vsize perm type name
-----------------------------------------------------------
0 0x00001000 0x1000 0x00010000 0x1000 -r-x ---- obj.1.page.0
1 0x00002000 0x1000 0x00011000 0x1000 -r-x ---- obj.1.page.1
2 0x00003000 0x1000 0x00012000 0x1000 -r-x ---- obj.1.page.2
3 0x00004000 0x1000 0x00013000 0x1000 -r-x ---- obj.1.page.3
4 0x00005000 0x1000 0x00014000 0x1000 -r-x ---- obj.1.page.4
5 0x00006000 0x1000 0x00015000 0x1000 -r-x ---- obj.1.page.5
6 0x00007000 0x1000 0x00016000 0x1000 -r-x ---- obj.1.page.6
7 0x00008000 0x1000 0x00017000 0x1000 -r-x ---- obj.1.page.7
8 0x00009000 0x1000 0x00018000 0x1000 -r-x ---- obj.1.page.8
9 0x0000a000 0x1000 0x00019000 0x1000 -r-x ---- obj.1.page.9
10 0x0000b000 0x1000 0x0001a000 0x1000 -r-x ---- obj.1.page.10
11 0x0000c000 0x1000 0x0001b000 0x1000 -r-x ---- obj.1.page.11
12 0x0000d000 0x1000 0x0001c000 0x1000 -r-x ---- obj.1.page.12
13 0x0000e000 0x1000 0x0001d000 0x1000 -r-x ---- obj.1.page.13
14 0x0000f000 0x1000 0x0001e000 0x1000 -r-x ---- obj.1.page.14
15 0x00010000 0x1000 0x00020000 0x1000 -rw- ---- obj.2.page.0
16 0x00000000 0x0 0x00030000 0x2000000 -rw- ---- obj.3
17 0x00000000 0x0 0x02030000 0x800000 -rw- ---- obj.4
EOF
RUN
@ -343,19 +343,19 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
---------------------------------------------------
0 0x00001600 0x1000 0x00010000 0x1000 -r-x obj.1.page.0
1 0x00002600 0x1000 0x00011000 0x1000 -r-x obj.1.page.1
2 0x00003600 0x1000 0x00012000 0x1000 -r-x obj.1.page.2
3 0x00004600 0x1000 0x00013000 0x1000 -r-x obj.1.page.3
4 0x00005600 0x1000 0x00014000 0x1000 -r-x obj.1.page.4
5 0x00006600 0x1000 0x00015000 0x1000 -r-x obj.1.page.5
6 0x00007600 0x1000 0x00016000 0x1000 -r-x obj.1.page.6
7 0x00008600 0xe00 0x00017000 0x1000 -r-x obj.1.page.7
8 0x00009400 0x200 0x00020000 0x1000 -r-x obj.2.page.0
9 0x00009600 0x200 0x00030000 0x1000 -r-x obj.3.page.0
10 0x00001400 0x200 0x00040000 0x1000 -rw- obj.4.page.0
nth paddr size vaddr vsize perm type name
--------------------------------------------------------
0 0x00001600 0x1000 0x00010000 0x1000 -r-x ---- obj.1.page.0
1 0x00002600 0x1000 0x00011000 0x1000 -r-x ---- obj.1.page.1
2 0x00003600 0x1000 0x00012000 0x1000 -r-x ---- obj.1.page.2
3 0x00004600 0x1000 0x00013000 0x1000 -r-x ---- obj.1.page.3
4 0x00005600 0x1000 0x00014000 0x1000 -r-x ---- obj.1.page.4
5 0x00006600 0x1000 0x00015000 0x1000 -r-x ---- obj.1.page.5
6 0x00007600 0x1000 0x00016000 0x1000 -r-x ---- obj.1.page.6
7 0x00008600 0xe00 0x00017000 0x1000 -r-x ---- obj.1.page.7
8 0x00009400 0x200 0x00020000 0x1000 -r-x ---- obj.2.page.0
9 0x00009600 0x200 0x00030000 0x1000 -r-x ---- obj.3.page.0
10 0x00001400 0x200 0x00040000 0x1000 -rw- ---- obj.4.page.0
EOF
RUN

View File

@ -43,7 +43,7 @@ NAME=: sections
FILE=bins/mdmp/calc.dmp
CMDS=iS~calc
EXPECT=<<EOF
9 0x00000000 0xe3000 0xfffe0000 0xe3000 ---- C:\Windows\System32\calc.exe
9 0x00000000 0xe3000 0xfffe0000 0xe3000 ---- ---- C:\Windows\System32\calc.exe
EOF
RUN

View File

@ -8,10 +8,10 @@ EOF
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
------------------------------------------------
0 0x00000200 0x0 0x00000000 0x0 -rwx seg_000
1 0x00000200 0x1 0x00000000 0x1 -rwx seg_001
nth paddr size vaddr vsize perm type name
-----------------------------------------------------
0 0x00000200 0x0 0x00000000 0x0 -rwx ---- seg_000
1 0x00000200 0x1 0x00000000 0x1 -rwx ---- seg_001
;-- mz.dos_header:
;-- section.seg_000:

View File

@ -33,10 +33,10 @@ CMDS=iSS
EXPECT=<<EOF
[Segments]
nth paddr size vaddr vsize perm name
---------------------------------------------------
0 0x00000a00 0x54ee 0x00000a00 0x54ee ---x MOVEABLE.2560
1 0x00007600 0x3ec4 0x00007600 0x3ec4 -rwx MOVEABLE.30208
nth paddr size vaddr vsize perm type name
--------------------------------------------------------
0 0x00000a00 0x54ee 0x00000a00 0x54ee ---x MAP MOVEABLE.2560
1 0x00007600 0x3ec4 0x00007600 0x3ec4 -rwx MAP MOVEABLE.30208
EOF
RUN

View File

@ -14,13 +14,13 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
-------------------------------------------------------
0 0x00000000 0x80 0x00000000 0x80 -r-- header
1 0x0021d000 0x0 0x0021d000 0x0 -r-- sig0
2 0x00000000 0x1b4000 0x00000000 0x1b4000 -r-x text
3 0x001b4000 0x5a000 0x001b4000 0x5a000 -r-- ro
4 0x0020e000 0xf000 0x0020e000 0xf000 -rw- data
nth paddr size vaddr vsize perm type name
------------------------------------------------------------
0 0x00000000 0x80 0x00000000 0x80 -r-- ---- header
1 0x0021d000 0x0 0x0021d000 0x0 -r-- ---- sig0
2 0x00000000 0x1b4000 0x00000000 0x1b4000 -r-x ---- text
3 0x001b4000 0x5a000 0x001b4000 0x5a000 -r-- ---- ro
4 0x0020e000 0xf000 0x0020e000 0xf000 -rw- ---- data
EOF
RUN

View File

@ -14,12 +14,12 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
-----------------------------------------------------
0 0x00000000 0x100 0x00000000 0x100 -r-- header
1 0x00000100 0x20e18 0x08000000 0x20e18 -r-x text
2 0x0001718f 0xdb0c 0x08021000 0xdb0c -r-- ro
3 0x0001f856 0x4218 0x0802f000 0x4218 -rw- data
nth paddr size vaddr vsize perm type name
----------------------------------------------------------
0 0x00000000 0x100 0x00000000 0x100 -r-- ---- header
1 0x00000100 0x20e18 0x08000000 0x20e18 -r-x ---- text
2 0x0001718f 0xdb0c 0x08021000 0xdb0c -r-- ---- ro
3 0x0001f856 0x4218 0x0802f000 0x4218 -rw- ---- data
EOF
RUN

View File

@ -32,10 +32,10 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
------------------------------------------------
0 0x00000073 0x13 0x00001000 0x13 -rwx text_1
1 0x00000095 0xe 0x00001013 0xe -rwx data_1
nth paddr size vaddr vsize perm type name
-----------------------------------------------------
0 0x00000073 0x13 0x00001000 0x13 -rwx ---- text_1
1 0x00000095 0xe 0x00001013 0xe -rwx ---- data_1
EOF
RUN
@ -93,10 +93,10 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
------------------------------------------------
0 0x00000074 0x1d 0x00001000 0x1d -rwx .text_1
1 0x000000a3 0xe 0x0000101d 0xe -rwx .data_1
nth paddr size vaddr vsize perm type name
-----------------------------------------------------
0 0x00000074 0x1d 0x00001000 0x1d -rwx ---- .text_1
1 0x000000a3 0xe 0x0000101d 0xe -rwx ---- .data_1
EOF
RUN

View File

@ -37,104 +37,104 @@ CMDS=!rabin2 -pS bins/pe/96emptysections.exe
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
--------------------------------------------------
0 0x00001200 0x200 0x00001200 0x1000 -rwx sect_0
1 0x00000000 0x0 0x00000000 0x1000 ---- sect_1
2 0x00000000 0x0 0x00000000 0x1000 ---- sect_2
3 0x00000000 0x0 0x00000000 0x1000 ---- sect_3
4 0x00000000 0x0 0x00000000 0x1000 ---- sect_4
5 0x00000000 0x0 0x00000000 0x1000 ---- sect_5
6 0x00000000 0x0 0x00000000 0x1000 ---- sect_6
7 0x00000000 0x0 0x00000000 0x1000 ---- sect_7
8 0x00000000 0x0 0x00000000 0x1000 ---- sect_8
9 0x00000000 0x0 0x00000000 0x1000 ---- sect_9
10 0x00000000 0x0 0x00000000 0x1000 ---- sect_10
11 0x00000000 0x0 0x00000000 0x1000 ---- sect_11
12 0x00000000 0x0 0x00000000 0x1000 ---- sect_12
13 0x00000000 0x0 0x00000000 0x1000 ---- sect_13
14 0x00000000 0x0 0x00000000 0x1000 ---- sect_14
15 0x00000000 0x0 0x00000000 0x1000 ---- sect_15
16 0x00000000 0x0 0x00000000 0x1000 ---- sect_16
17 0x00000000 0x0 0x00000000 0x1000 ---- sect_17
18 0x00000000 0x0 0x00000000 0x1000 ---- sect_18
19 0x00000000 0x0 0x00000000 0x1000 ---- sect_19
20 0x00000000 0x0 0x00000000 0x1000 ---- sect_20
21 0x00000000 0x0 0x00000000 0x1000 ---- sect_21
22 0x00000000 0x0 0x00000000 0x1000 ---- sect_22
23 0x00000000 0x0 0x00000000 0x1000 ---- sect_23
24 0x00000000 0x0 0x00000000 0x1000 ---- sect_24
25 0x00000000 0x0 0x00000000 0x1000 ---- sect_25
26 0x00000000 0x0 0x00000000 0x1000 ---- sect_26
27 0x00000000 0x0 0x00000000 0x1000 ---- sect_27
28 0x00000000 0x0 0x00000000 0x1000 ---- sect_28
29 0x00000000 0x0 0x00000000 0x1000 ---- sect_29
30 0x00000000 0x0 0x00000000 0x1000 ---- sect_30
31 0x00000000 0x0 0x00000000 0x1000 ---- sect_31
32 0x00000000 0x0 0x00000000 0x1000 ---- sect_32
33 0x00000000 0x0 0x00000000 0x1000 ---- sect_33
34 0x00000000 0x0 0x00000000 0x1000 ---- sect_34
35 0x00000000 0x0 0x00000000 0x1000 ---- sect_35
36 0x00000000 0x0 0x00000000 0x1000 ---- sect_36
37 0x00000000 0x0 0x00000000 0x1000 ---- sect_37
38 0x00000000 0x0 0x00000000 0x1000 ---- sect_38
39 0x00000000 0x0 0x00000000 0x1000 ---- sect_39
40 0x00000000 0x0 0x00000000 0x1000 ---- sect_40
41 0x00000000 0x0 0x00000000 0x1000 ---- sect_41
42 0x00000000 0x0 0x00000000 0x1000 ---- sect_42
43 0x00000000 0x0 0x00000000 0x1000 ---- sect_43
44 0x00000000 0x0 0x00000000 0x1000 ---- sect_44
45 0x00000000 0x0 0x00000000 0x1000 ---- sect_45
46 0x00000000 0x0 0x00000000 0x1000 ---- sect_46
47 0x00000000 0x0 0x00000000 0x1000 ---- sect_47
48 0x00000000 0x0 0x00000000 0x1000 ---- sect_48
49 0x00000000 0x0 0x00000000 0x1000 ---- sect_49
50 0x00000000 0x0 0x00000000 0x1000 ---- sect_50
51 0x00000000 0x0 0x00000000 0x1000 ---- sect_51
52 0x00000000 0x0 0x00000000 0x1000 ---- sect_52
53 0x00000000 0x0 0x00000000 0x1000 ---- sect_53
54 0x00000000 0x0 0x00000000 0x1000 ---- sect_54
55 0x00000000 0x0 0x00000000 0x1000 ---- sect_55
56 0x00000000 0x0 0x00000000 0x1000 ---- sect_56
57 0x00000000 0x0 0x00000000 0x1000 ---- sect_57
58 0x00000000 0x0 0x00000000 0x1000 ---- sect_58
59 0x00000000 0x0 0x00000000 0x1000 ---- sect_59
60 0x00000000 0x0 0x00000000 0x1000 ---- sect_60
61 0x00000000 0x0 0x00000000 0x1000 ---- sect_61
62 0x00000000 0x0 0x00000000 0x1000 ---- sect_62
63 0x00000000 0x0 0x00000000 0x1000 ---- sect_63
64 0x00000000 0x0 0x00000000 0x1000 ---- sect_64
65 0x00000000 0x0 0x00000000 0x1000 ---- sect_65
66 0x00000000 0x0 0x00000000 0x1000 ---- sect_66
67 0x00000000 0x0 0x00000000 0x1000 ---- sect_67
68 0x00000000 0x0 0x00000000 0x1000 ---- sect_68
69 0x00000000 0x0 0x00000000 0x1000 ---- sect_69
70 0x00000000 0x0 0x00000000 0x1000 ---- sect_70
71 0x00000000 0x0 0x00000000 0x1000 ---- sect_71
72 0x00000000 0x0 0x00000000 0x1000 ---- sect_72
73 0x00000000 0x0 0x00000000 0x1000 ---- sect_73
74 0x00000000 0x0 0x00000000 0x1000 ---- sect_74
75 0x00000000 0x0 0x00000000 0x1000 ---- sect_75
76 0x00000000 0x0 0x00000000 0x1000 ---- sect_76
77 0x00000000 0x0 0x00000000 0x1000 ---- sect_77
78 0x00000000 0x0 0x00000000 0x1000 ---- sect_78
79 0x00000000 0x0 0x00000000 0x1000 ---- sect_79
80 0x00000000 0x0 0x00000000 0x1000 ---- sect_80
81 0x00000000 0x0 0x00000000 0x1000 ---- sect_81
82 0x00000000 0x0 0x00000000 0x1000 ---- sect_82
83 0x00000000 0x0 0x00000000 0x1000 ---- sect_83
84 0x00000000 0x0 0x00000000 0x1000 ---- sect_84
85 0x00000000 0x0 0x00000000 0x1000 ---- sect_85
86 0x00000000 0x0 0x00000000 0x1000 ---- sect_86
87 0x00000000 0x0 0x00000000 0x1000 ---- sect_87
88 0x00000000 0x0 0x00000000 0x1000 ---- sect_88
89 0x00000000 0x0 0x00000000 0x1000 ---- sect_89
90 0x00000000 0x0 0x00000000 0x1000 ---- sect_90
91 0x00000000 0x0 0x00000000 0x1000 ---- sect_91
92 0x00000000 0x0 0x00000000 0x1000 ---- sect_92
93 0x00000000 0x0 0x00000000 0x1000 ---- sect_93
94 0x00000000 0x0 0x00000000 0x1000 ---- sect_94
95 0x00000000 0x0 0x00000000 0x1000 ---- sect_95
nth paddr size vaddr vsize perm type name
-------------------------------------------------------
0 0x00001200 0x200 0x00001200 0x1000 -rwx ---- sect_0
1 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_1
2 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_2
3 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_3
4 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_4
5 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_5
6 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_6
7 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_7
8 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_8
9 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_9
10 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_10
11 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_11
12 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_12
13 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_13
14 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_14
15 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_15
16 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_16
17 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_17
18 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_18
19 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_19
20 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_20
21 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_21
22 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_22
23 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_23
24 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_24
25 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_25
26 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_26
27 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_27
28 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_28
29 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_29
30 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_30
31 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_31
32 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_32
33 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_33
34 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_34
35 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_35
36 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_36
37 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_37
38 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_38
39 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_39
40 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_40
41 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_41
42 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_42
43 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_43
44 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_44
45 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_45
46 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_46
47 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_47
48 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_48
49 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_49
50 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_50
51 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_51
52 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_52
53 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_53
54 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_54
55 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_55
56 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_56
57 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_57
58 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_58
59 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_59
60 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_60
61 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_61
62 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_62
63 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_63
64 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_64
65 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_65
66 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_66
67 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_67
68 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_68
69 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_69
70 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_70
71 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_71
72 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_72
73 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_73
74 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_74
75 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_75
76 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_76
77 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_77
78 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_78
79 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_79
80 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_80
81 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_81
82 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_82
83 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_83
84 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_84
85 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_85
86 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_86
87 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_87
88 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_88
89 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_89
90 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_90
91 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_91
92 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_92
93 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_93
94 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_94
95 0x00000000 0x0 0x00000000 0x1000 ---- ---- sect_95
EOF
RUN

View File

@ -29,104 +29,104 @@ CMDS=!rabin2 -S bins/pe/96workingsections.exe
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
--------------------------------------------------
0 0x00001200 0x200 0x00402000 0x1000 -rwx sect_0
1 0x00001400 0x200 0x00403000 0x1000 -rwx sect_1
2 0x00001600 0x200 0x00404000 0x1000 -rwx sect_2
3 0x00001800 0x200 0x00405000 0x1000 -rwx sect_3
4 0x00001a00 0x200 0x00406000 0x1000 -rwx sect_4
5 0x00001c00 0x200 0x00407000 0x1000 -rwx sect_5
6 0x00001e00 0x200 0x00408000 0x1000 -rwx sect_6
7 0x00002000 0x200 0x00409000 0x1000 -rwx sect_7
8 0x00002200 0x200 0x0040a000 0x1000 -rwx sect_8
9 0x00002400 0x200 0x0040b000 0x1000 -rwx sect_9
10 0x00002600 0x200 0x0040c000 0x1000 -rwx sect_10
11 0x00002800 0x200 0x0040d000 0x1000 -rwx sect_11
12 0x00002a00 0x200 0x0040e000 0x1000 -rwx sect_12
13 0x00002c00 0x200 0x0040f000 0x1000 -rwx sect_13
14 0x00002e00 0x200 0x00410000 0x1000 -rwx sect_14
15 0x00003000 0x200 0x00411000 0x1000 -rwx sect_15
16 0x00003200 0x200 0x00412000 0x1000 -rwx sect_16
17 0x00003400 0x200 0x00413000 0x1000 -rwx sect_17
18 0x00003600 0x200 0x00414000 0x1000 -rwx sect_18
19 0x00003800 0x200 0x00415000 0x1000 -rwx sect_19
20 0x00003a00 0x200 0x00416000 0x1000 -rwx sect_20
21 0x00003c00 0x200 0x00417000 0x1000 -rwx sect_21
22 0x00003e00 0x200 0x00418000 0x1000 -rwx sect_22
23 0x00004000 0x200 0x00419000 0x1000 -rwx sect_23
24 0x00004200 0x200 0x0041a000 0x1000 -rwx sect_24
25 0x00004400 0x200 0x0041b000 0x1000 -rwx sect_25
26 0x00004600 0x200 0x0041c000 0x1000 -rwx sect_26
27 0x00004800 0x200 0x0041d000 0x1000 -rwx sect_27
28 0x00004a00 0x200 0x0041e000 0x1000 -rwx sect_28
29 0x00004c00 0x200 0x0041f000 0x1000 -rwx sect_29
30 0x00004e00 0x200 0x00420000 0x1000 -rwx sect_30
31 0x00005000 0x200 0x00421000 0x1000 -rwx sect_31
32 0x00005200 0x200 0x00422000 0x1000 -rwx sect_32
33 0x00005400 0x200 0x00423000 0x1000 -rwx sect_33
34 0x00005600 0x200 0x00424000 0x1000 -rwx sect_34
35 0x00005800 0x200 0x00425000 0x1000 -rwx sect_35
36 0x00005a00 0x200 0x00426000 0x1000 -rwx sect_36
37 0x00005c00 0x200 0x00427000 0x1000 -rwx sect_37
38 0x00005e00 0x200 0x00428000 0x1000 -rwx sect_38
39 0x00006000 0x200 0x00429000 0x1000 -rwx sect_39
40 0x00006200 0x200 0x0042a000 0x1000 -rwx sect_40
41 0x00006400 0x200 0x0042b000 0x1000 -rwx sect_41
42 0x00006600 0x200 0x0042c000 0x1000 -rwx sect_42
43 0x00006800 0x200 0x0042d000 0x1000 -rwx sect_43
44 0x00006a00 0x200 0x0042e000 0x1000 -rwx sect_44
45 0x00006c00 0x200 0x0042f000 0x1000 -rwx sect_45
46 0x00006e00 0x200 0x00430000 0x1000 -rwx sect_46
47 0x00007000 0x200 0x00431000 0x1000 -rwx sect_47
48 0x00007200 0x200 0x00432000 0x1000 -rwx sect_48
49 0x00007400 0x200 0x00433000 0x1000 -rwx sect_49
50 0x00007600 0x200 0x00434000 0x1000 -rwx sect_50
51 0x00007800 0x200 0x00435000 0x1000 -rwx sect_51
52 0x00007a00 0x200 0x00436000 0x1000 -rwx sect_52
53 0x00007c00 0x200 0x00437000 0x1000 -rwx sect_53
54 0x00007e00 0x200 0x00438000 0x1000 -rwx sect_54
55 0x00008000 0x200 0x00439000 0x1000 -rwx sect_55
56 0x00008200 0x200 0x0043a000 0x1000 -rwx sect_56
57 0x00008400 0x200 0x0043b000 0x1000 -rwx sect_57
58 0x00008600 0x200 0x0043c000 0x1000 -rwx sect_58
59 0x00008800 0x200 0x0043d000 0x1000 -rwx sect_59
60 0x00008a00 0x200 0x0043e000 0x1000 -rwx sect_60
61 0x00008c00 0x200 0x0043f000 0x1000 -rwx sect_61
62 0x00008e00 0x200 0x00440000 0x1000 -rwx sect_62
63 0x00009000 0x200 0x00441000 0x1000 -rwx sect_63
64 0x00009200 0x200 0x00442000 0x1000 -rwx sect_64
65 0x00009400 0x200 0x00443000 0x1000 -rwx sect_65
66 0x00009600 0x200 0x00444000 0x1000 -rwx sect_66
67 0x00009800 0x200 0x00445000 0x1000 -rwx sect_67
68 0x00009a00 0x200 0x00446000 0x1000 -rwx sect_68
69 0x00009c00 0x200 0x00447000 0x1000 -rwx sect_69
70 0x00009e00 0x200 0x00448000 0x1000 -rwx sect_70
71 0x0000a000 0x200 0x00449000 0x1000 -rwx sect_71
72 0x0000a200 0x200 0x0044a000 0x1000 -rwx sect_72
73 0x0000a400 0x200 0x0044b000 0x1000 -rwx sect_73
74 0x0000a600 0x200 0x0044c000 0x1000 -rwx sect_74
75 0x0000a800 0x200 0x0044d000 0x1000 -rwx sect_75
76 0x0000aa00 0x200 0x0044e000 0x1000 -rwx sect_76
77 0x0000ac00 0x200 0x0044f000 0x1000 -rwx sect_77
78 0x0000ae00 0x200 0x00450000 0x1000 -rwx sect_78
79 0x0000b000 0x200 0x00451000 0x1000 -rwx sect_79
80 0x0000b200 0x200 0x00452000 0x1000 -rwx sect_80
81 0x0000b400 0x200 0x00453000 0x1000 -rwx sect_81
82 0x0000b600 0x200 0x00454000 0x1000 -rwx sect_82
83 0x0000b800 0x200 0x00455000 0x1000 -rwx sect_83
84 0x0000ba00 0x200 0x00456000 0x1000 -rwx sect_84
85 0x0000bc00 0x200 0x00457000 0x1000 -rwx sect_85
86 0x0000be00 0x200 0x00458000 0x1000 -rwx sect_86
87 0x0000c000 0x200 0x00459000 0x1000 -rwx sect_87
88 0x0000c200 0x200 0x0045a000 0x1000 -rwx sect_88
89 0x0000c400 0x200 0x0045b000 0x1000 -rwx sect_89
90 0x0000c600 0x200 0x0045c000 0x1000 -rwx sect_90
91 0x0000c800 0x200 0x0045d000 0x1000 -rwx sect_91
92 0x0000ca00 0x200 0x0045e000 0x1000 -rwx sect_92
93 0x0000cc00 0x200 0x0045f000 0x1000 -rwx sect_93
94 0x0000ce00 0x200 0x00460000 0x1000 -rwx sect_94
95 0x0000d000 0x200 0x00461000 0x1000 -rwx sect_95
nth paddr size vaddr vsize perm type name
-------------------------------------------------------
0 0x00001200 0x200 0x00402000 0x1000 -rwx ---- sect_0
1 0x00001400 0x200 0x00403000 0x1000 -rwx ---- sect_1
2 0x00001600 0x200 0x00404000 0x1000 -rwx ---- sect_2
3 0x00001800 0x200 0x00405000 0x1000 -rwx ---- sect_3
4 0x00001a00 0x200 0x00406000 0x1000 -rwx ---- sect_4
5 0x00001c00 0x200 0x00407000 0x1000 -rwx ---- sect_5
6 0x00001e00 0x200 0x00408000 0x1000 -rwx ---- sect_6
7 0x00002000 0x200 0x00409000 0x1000 -rwx ---- sect_7
8 0x00002200 0x200 0x0040a000 0x1000 -rwx ---- sect_8
9 0x00002400 0x200 0x0040b000 0x1000 -rwx ---- sect_9
10 0x00002600 0x200 0x0040c000 0x1000 -rwx ---- sect_10
11 0x00002800 0x200 0x0040d000 0x1000 -rwx ---- sect_11
12 0x00002a00 0x200 0x0040e000 0x1000 -rwx ---- sect_12
13 0x00002c00 0x200 0x0040f000 0x1000 -rwx ---- sect_13
14 0x00002e00 0x200 0x00410000 0x1000 -rwx ---- sect_14
15 0x00003000 0x200 0x00411000 0x1000 -rwx ---- sect_15
16 0x00003200 0x200 0x00412000 0x1000 -rwx ---- sect_16
17 0x00003400 0x200 0x00413000 0x1000 -rwx ---- sect_17
18 0x00003600 0x200 0x00414000 0x1000 -rwx ---- sect_18
19 0x00003800 0x200 0x00415000 0x1000 -rwx ---- sect_19
20 0x00003a00 0x200 0x00416000 0x1000 -rwx ---- sect_20
21 0x00003c00 0x200 0x00417000 0x1000 -rwx ---- sect_21
22 0x00003e00 0x200 0x00418000 0x1000 -rwx ---- sect_22
23 0x00004000 0x200 0x00419000 0x1000 -rwx ---- sect_23
24 0x00004200 0x200 0x0041a000 0x1000 -rwx ---- sect_24
25 0x00004400 0x200 0x0041b000 0x1000 -rwx ---- sect_25
26 0x00004600 0x200 0x0041c000 0x1000 -rwx ---- sect_26
27 0x00004800 0x200 0x0041d000 0x1000 -rwx ---- sect_27
28 0x00004a00 0x200 0x0041e000 0x1000 -rwx ---- sect_28
29 0x00004c00 0x200 0x0041f000 0x1000 -rwx ---- sect_29
30 0x00004e00 0x200 0x00420000 0x1000 -rwx ---- sect_30
31 0x00005000 0x200 0x00421000 0x1000 -rwx ---- sect_31
32 0x00005200 0x200 0x00422000 0x1000 -rwx ---- sect_32
33 0x00005400 0x200 0x00423000 0x1000 -rwx ---- sect_33
34 0x00005600 0x200 0x00424000 0x1000 -rwx ---- sect_34
35 0x00005800 0x200 0x00425000 0x1000 -rwx ---- sect_35
36 0x00005a00 0x200 0x00426000 0x1000 -rwx ---- sect_36
37 0x00005c00 0x200 0x00427000 0x1000 -rwx ---- sect_37
38 0x00005e00 0x200 0x00428000 0x1000 -rwx ---- sect_38
39 0x00006000 0x200 0x00429000 0x1000 -rwx ---- sect_39
40 0x00006200 0x200 0x0042a000 0x1000 -rwx ---- sect_40
41 0x00006400 0x200 0x0042b000 0x1000 -rwx ---- sect_41
42 0x00006600 0x200 0x0042c000 0x1000 -rwx ---- sect_42
43 0x00006800 0x200 0x0042d000 0x1000 -rwx ---- sect_43
44 0x00006a00 0x200 0x0042e000 0x1000 -rwx ---- sect_44
45 0x00006c00 0x200 0x0042f000 0x1000 -rwx ---- sect_45
46 0x00006e00 0x200 0x00430000 0x1000 -rwx ---- sect_46
47 0x00007000 0x200 0x00431000 0x1000 -rwx ---- sect_47
48 0x00007200 0x200 0x00432000 0x1000 -rwx ---- sect_48
49 0x00007400 0x200 0x00433000 0x1000 -rwx ---- sect_49
50 0x00007600 0x200 0x00434000 0x1000 -rwx ---- sect_50
51 0x00007800 0x200 0x00435000 0x1000 -rwx ---- sect_51
52 0x00007a00 0x200 0x00436000 0x1000 -rwx ---- sect_52
53 0x00007c00 0x200 0x00437000 0x1000 -rwx ---- sect_53
54 0x00007e00 0x200 0x00438000 0x1000 -rwx ---- sect_54
55 0x00008000 0x200 0x00439000 0x1000 -rwx ---- sect_55
56 0x00008200 0x200 0x0043a000 0x1000 -rwx ---- sect_56
57 0x00008400 0x200 0x0043b000 0x1000 -rwx ---- sect_57
58 0x00008600 0x200 0x0043c000 0x1000 -rwx ---- sect_58
59 0x00008800 0x200 0x0043d000 0x1000 -rwx ---- sect_59
60 0x00008a00 0x200 0x0043e000 0x1000 -rwx ---- sect_60
61 0x00008c00 0x200 0x0043f000 0x1000 -rwx ---- sect_61
62 0x00008e00 0x200 0x00440000 0x1000 -rwx ---- sect_62
63 0x00009000 0x200 0x00441000 0x1000 -rwx ---- sect_63
64 0x00009200 0x200 0x00442000 0x1000 -rwx ---- sect_64
65 0x00009400 0x200 0x00443000 0x1000 -rwx ---- sect_65
66 0x00009600 0x200 0x00444000 0x1000 -rwx ---- sect_66
67 0x00009800 0x200 0x00445000 0x1000 -rwx ---- sect_67
68 0x00009a00 0x200 0x00446000 0x1000 -rwx ---- sect_68
69 0x00009c00 0x200 0x00447000 0x1000 -rwx ---- sect_69
70 0x00009e00 0x200 0x00448000 0x1000 -rwx ---- sect_70
71 0x0000a000 0x200 0x00449000 0x1000 -rwx ---- sect_71
72 0x0000a200 0x200 0x0044a000 0x1000 -rwx ---- sect_72
73 0x0000a400 0x200 0x0044b000 0x1000 -rwx ---- sect_73
74 0x0000a600 0x200 0x0044c000 0x1000 -rwx ---- sect_74
75 0x0000a800 0x200 0x0044d000 0x1000 -rwx ---- sect_75
76 0x0000aa00 0x200 0x0044e000 0x1000 -rwx ---- sect_76
77 0x0000ac00 0x200 0x0044f000 0x1000 -rwx ---- sect_77
78 0x0000ae00 0x200 0x00450000 0x1000 -rwx ---- sect_78
79 0x0000b000 0x200 0x00451000 0x1000 -rwx ---- sect_79
80 0x0000b200 0x200 0x00452000 0x1000 -rwx ---- sect_80
81 0x0000b400 0x200 0x00453000 0x1000 -rwx ---- sect_81
82 0x0000b600 0x200 0x00454000 0x1000 -rwx ---- sect_82
83 0x0000b800 0x200 0x00455000 0x1000 -rwx ---- sect_83
84 0x0000ba00 0x200 0x00456000 0x1000 -rwx ---- sect_84
85 0x0000bc00 0x200 0x00457000 0x1000 -rwx ---- sect_85
86 0x0000be00 0x200 0x00458000 0x1000 -rwx ---- sect_86
87 0x0000c000 0x200 0x00459000 0x1000 -rwx ---- sect_87
88 0x0000c200 0x200 0x0045a000 0x1000 -rwx ---- sect_88
89 0x0000c400 0x200 0x0045b000 0x1000 -rwx ---- sect_89
90 0x0000c600 0x200 0x0045c000 0x1000 -rwx ---- sect_90
91 0x0000c800 0x200 0x0045d000 0x1000 -rwx ---- sect_91
92 0x0000ca00 0x200 0x0045e000 0x1000 -rwx ---- sect_92
93 0x0000cc00 0x200 0x0045f000 0x1000 -rwx ---- sect_93
94 0x0000ce00 0x200 0x00460000 0x1000 -rwx ---- sect_94
95 0x0000d000 0x200 0x00461000 0x1000 -rwx ---- sect_95
EOF
RUN
@ -138,104 +138,104 @@ CMDS=!rabin2 -uS bins/pe/96workingsections.exe
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
--------------------------------------------------
0 0x00001200 0x200 0x00402000 0x1000 -rwx sect_0
1 0x00001400 0x200 0x00403000 0x1000 -rwx sect_1
2 0x00001600 0x200 0x00404000 0x1000 -rwx sect_2
3 0x00001800 0x200 0x00405000 0x1000 -rwx sect_3
4 0x00001a00 0x200 0x00406000 0x1000 -rwx sect_4
5 0x00001c00 0x200 0x00407000 0x1000 -rwx sect_5
6 0x00001e00 0x200 0x00408000 0x1000 -rwx sect_6
7 0x00002000 0x200 0x00409000 0x1000 -rwx sect_7
8 0x00002200 0x200 0x0040a000 0x1000 -rwx sect_8
9 0x00002400 0x200 0x0040b000 0x1000 -rwx sect_9
10 0x00002600 0x200 0x0040c000 0x1000 -rwx sect_10
11 0x00002800 0x200 0x0040d000 0x1000 -rwx sect_11
12 0x00002a00 0x200 0x0040e000 0x1000 -rwx sect_12
13 0x00002c00 0x200 0x0040f000 0x1000 -rwx sect_13
14 0x00002e00 0x200 0x00410000 0x1000 -rwx sect_14
15 0x00003000 0x200 0x00411000 0x1000 -rwx sect_15
16 0x00003200 0x200 0x00412000 0x1000 -rwx sect_16
17 0x00003400 0x200 0x00413000 0x1000 -rwx sect_17
18 0x00003600 0x200 0x00414000 0x1000 -rwx sect_18
19 0x00003800 0x200 0x00415000 0x1000 -rwx sect_19
20 0x00003a00 0x200 0x00416000 0x1000 -rwx sect_20
21 0x00003c00 0x200 0x00417000 0x1000 -rwx sect_21
22 0x00003e00 0x200 0x00418000 0x1000 -rwx sect_22
23 0x00004000 0x200 0x00419000 0x1000 -rwx sect_23
24 0x00004200 0x200 0x0041a000 0x1000 -rwx sect_24
25 0x00004400 0x200 0x0041b000 0x1000 -rwx sect_25
26 0x00004600 0x200 0x0041c000 0x1000 -rwx sect_26
27 0x00004800 0x200 0x0041d000 0x1000 -rwx sect_27
28 0x00004a00 0x200 0x0041e000 0x1000 -rwx sect_28
29 0x00004c00 0x200 0x0041f000 0x1000 -rwx sect_29
30 0x00004e00 0x200 0x00420000 0x1000 -rwx sect_30
31 0x00005000 0x200 0x00421000 0x1000 -rwx sect_31
32 0x00005200 0x200 0x00422000 0x1000 -rwx sect_32
33 0x00005400 0x200 0x00423000 0x1000 -rwx sect_33
34 0x00005600 0x200 0x00424000 0x1000 -rwx sect_34
35 0x00005800 0x200 0x00425000 0x1000 -rwx sect_35
36 0x00005a00 0x200 0x00426000 0x1000 -rwx sect_36
37 0x00005c00 0x200 0x00427000 0x1000 -rwx sect_37
38 0x00005e00 0x200 0x00428000 0x1000 -rwx sect_38
39 0x00006000 0x200 0x00429000 0x1000 -rwx sect_39
40 0x00006200 0x200 0x0042a000 0x1000 -rwx sect_40
41 0x00006400 0x200 0x0042b000 0x1000 -rwx sect_41
42 0x00006600 0x200 0x0042c000 0x1000 -rwx sect_42
43 0x00006800 0x200 0x0042d000 0x1000 -rwx sect_43
44 0x00006a00 0x200 0x0042e000 0x1000 -rwx sect_44
45 0x00006c00 0x200 0x0042f000 0x1000 -rwx sect_45
46 0x00006e00 0x200 0x00430000 0x1000 -rwx sect_46
47 0x00007000 0x200 0x00431000 0x1000 -rwx sect_47
48 0x00007200 0x200 0x00432000 0x1000 -rwx sect_48
49 0x00007400 0x200 0x00433000 0x1000 -rwx sect_49
50 0x00007600 0x200 0x00434000 0x1000 -rwx sect_50
51 0x00007800 0x200 0x00435000 0x1000 -rwx sect_51
52 0x00007a00 0x200 0x00436000 0x1000 -rwx sect_52
53 0x00007c00 0x200 0x00437000 0x1000 -rwx sect_53
54 0x00007e00 0x200 0x00438000 0x1000 -rwx sect_54
55 0x00008000 0x200 0x00439000 0x1000 -rwx sect_55
56 0x00008200 0x200 0x0043a000 0x1000 -rwx sect_56
57 0x00008400 0x200 0x0043b000 0x1000 -rwx sect_57
58 0x00008600 0x200 0x0043c000 0x1000 -rwx sect_58
59 0x00008800 0x200 0x0043d000 0x1000 -rwx sect_59
60 0x00008a00 0x200 0x0043e000 0x1000 -rwx sect_60
61 0x00008c00 0x200 0x0043f000 0x1000 -rwx sect_61
62 0x00008e00 0x200 0x00440000 0x1000 -rwx sect_62
63 0x00009000 0x200 0x00441000 0x1000 -rwx sect_63
64 0x00009200 0x200 0x00442000 0x1000 -rwx sect_64
65 0x00009400 0x200 0x00443000 0x1000 -rwx sect_65
66 0x00009600 0x200 0x00444000 0x1000 -rwx sect_66
67 0x00009800 0x200 0x00445000 0x1000 -rwx sect_67
68 0x00009a00 0x200 0x00446000 0x1000 -rwx sect_68
69 0x00009c00 0x200 0x00447000 0x1000 -rwx sect_69
70 0x00009e00 0x200 0x00448000 0x1000 -rwx sect_70
71 0x0000a000 0x200 0x00449000 0x1000 -rwx sect_71
72 0x0000a200 0x200 0x0044a000 0x1000 -rwx sect_72
73 0x0000a400 0x200 0x0044b000 0x1000 -rwx sect_73
74 0x0000a600 0x200 0x0044c000 0x1000 -rwx sect_74
75 0x0000a800 0x200 0x0044d000 0x1000 -rwx sect_75
76 0x0000aa00 0x200 0x0044e000 0x1000 -rwx sect_76
77 0x0000ac00 0x200 0x0044f000 0x1000 -rwx sect_77
78 0x0000ae00 0x200 0x00450000 0x1000 -rwx sect_78
79 0x0000b000 0x200 0x00451000 0x1000 -rwx sect_79
80 0x0000b200 0x200 0x00452000 0x1000 -rwx sect_80
81 0x0000b400 0x200 0x00453000 0x1000 -rwx sect_81
82 0x0000b600 0x200 0x00454000 0x1000 -rwx sect_82
83 0x0000b800 0x200 0x00455000 0x1000 -rwx sect_83
84 0x0000ba00 0x200 0x00456000 0x1000 -rwx sect_84
85 0x0000bc00 0x200 0x00457000 0x1000 -rwx sect_85
86 0x0000be00 0x200 0x00458000 0x1000 -rwx sect_86
87 0x0000c000 0x200 0x00459000 0x1000 -rwx sect_87
88 0x0000c200 0x200 0x0045a000 0x1000 -rwx sect_88
89 0x0000c400 0x200 0x0045b000 0x1000 -rwx sect_89
90 0x0000c600 0x200 0x0045c000 0x1000 -rwx sect_90
91 0x0000c800 0x200 0x0045d000 0x1000 -rwx sect_91
92 0x0000ca00 0x200 0x0045e000 0x1000 -rwx sect_92
93 0x0000cc00 0x200 0x0045f000 0x1000 -rwx sect_93
94 0x0000ce00 0x200 0x00460000 0x1000 -rwx sect_94
95 0x0000d000 0x200 0x00461000 0x1000 -rwx sect_95
nth paddr size vaddr vsize perm type name
-------------------------------------------------------
0 0x00001200 0x200 0x00402000 0x1000 -rwx ---- sect_0
1 0x00001400 0x200 0x00403000 0x1000 -rwx ---- sect_1
2 0x00001600 0x200 0x00404000 0x1000 -rwx ---- sect_2
3 0x00001800 0x200 0x00405000 0x1000 -rwx ---- sect_3
4 0x00001a00 0x200 0x00406000 0x1000 -rwx ---- sect_4
5 0x00001c00 0x200 0x00407000 0x1000 -rwx ---- sect_5
6 0x00001e00 0x200 0x00408000 0x1000 -rwx ---- sect_6
7 0x00002000 0x200 0x00409000 0x1000 -rwx ---- sect_7
8 0x00002200 0x200 0x0040a000 0x1000 -rwx ---- sect_8
9 0x00002400 0x200 0x0040b000 0x1000 -rwx ---- sect_9
10 0x00002600 0x200 0x0040c000 0x1000 -rwx ---- sect_10
11 0x00002800 0x200 0x0040d000 0x1000 -rwx ---- sect_11
12 0x00002a00 0x200 0x0040e000 0x1000 -rwx ---- sect_12
13 0x00002c00 0x200 0x0040f000 0x1000 -rwx ---- sect_13
14 0x00002e00 0x200 0x00410000 0x1000 -rwx ---- sect_14
15 0x00003000 0x200 0x00411000 0x1000 -rwx ---- sect_15
16 0x00003200 0x200 0x00412000 0x1000 -rwx ---- sect_16
17 0x00003400 0x200 0x00413000 0x1000 -rwx ---- sect_17
18 0x00003600 0x200 0x00414000 0x1000 -rwx ---- sect_18
19 0x00003800 0x200 0x00415000 0x1000 -rwx ---- sect_19
20 0x00003a00 0x200 0x00416000 0x1000 -rwx ---- sect_20
21 0x00003c00 0x200 0x00417000 0x1000 -rwx ---- sect_21
22 0x00003e00 0x200 0x00418000 0x1000 -rwx ---- sect_22
23 0x00004000 0x200 0x00419000 0x1000 -rwx ---- sect_23
24 0x00004200 0x200 0x0041a000 0x1000 -rwx ---- sect_24
25 0x00004400 0x200 0x0041b000 0x1000 -rwx ---- sect_25
26 0x00004600 0x200 0x0041c000 0x1000 -rwx ---- sect_26
27 0x00004800 0x200 0x0041d000 0x1000 -rwx ---- sect_27
28 0x00004a00 0x200 0x0041e000 0x1000 -rwx ---- sect_28
29 0x00004c00 0x200 0x0041f000 0x1000 -rwx ---- sect_29
30 0x00004e00 0x200 0x00420000 0x1000 -rwx ---- sect_30
31 0x00005000 0x200 0x00421000 0x1000 -rwx ---- sect_31
32 0x00005200 0x200 0x00422000 0x1000 -rwx ---- sect_32
33 0x00005400 0x200 0x00423000 0x1000 -rwx ---- sect_33
34 0x00005600 0x200 0x00424000 0x1000 -rwx ---- sect_34
35 0x00005800 0x200 0x00425000 0x1000 -rwx ---- sect_35
36 0x00005a00 0x200 0x00426000 0x1000 -rwx ---- sect_36
37 0x00005c00 0x200 0x00427000 0x1000 -rwx ---- sect_37
38 0x00005e00 0x200 0x00428000 0x1000 -rwx ---- sect_38
39 0x00006000 0x200 0x00429000 0x1000 -rwx ---- sect_39
40 0x00006200 0x200 0x0042a000 0x1000 -rwx ---- sect_40
41 0x00006400 0x200 0x0042b000 0x1000 -rwx ---- sect_41
42 0x00006600 0x200 0x0042c000 0x1000 -rwx ---- sect_42
43 0x00006800 0x200 0x0042d000 0x1000 -rwx ---- sect_43
44 0x00006a00 0x200 0x0042e000 0x1000 -rwx ---- sect_44
45 0x00006c00 0x200 0x0042f000 0x1000 -rwx ---- sect_45
46 0x00006e00 0x200 0x00430000 0x1000 -rwx ---- sect_46
47 0x00007000 0x200 0x00431000 0x1000 -rwx ---- sect_47
48 0x00007200 0x200 0x00432000 0x1000 -rwx ---- sect_48
49 0x00007400 0x200 0x00433000 0x1000 -rwx ---- sect_49
50 0x00007600 0x200 0x00434000 0x1000 -rwx ---- sect_50
51 0x00007800 0x200 0x00435000 0x1000 -rwx ---- sect_51
52 0x00007a00 0x200 0x00436000 0x1000 -rwx ---- sect_52
53 0x00007c00 0x200 0x00437000 0x1000 -rwx ---- sect_53
54 0x00007e00 0x200 0x00438000 0x1000 -rwx ---- sect_54
55 0x00008000 0x200 0x00439000 0x1000 -rwx ---- sect_55
56 0x00008200 0x200 0x0043a000 0x1000 -rwx ---- sect_56
57 0x00008400 0x200 0x0043b000 0x1000 -rwx ---- sect_57
58 0x00008600 0x200 0x0043c000 0x1000 -rwx ---- sect_58
59 0x00008800 0x200 0x0043d000 0x1000 -rwx ---- sect_59
60 0x00008a00 0x200 0x0043e000 0x1000 -rwx ---- sect_60
61 0x00008c00 0x200 0x0043f000 0x1000 -rwx ---- sect_61
62 0x00008e00 0x200 0x00440000 0x1000 -rwx ---- sect_62
63 0x00009000 0x200 0x00441000 0x1000 -rwx ---- sect_63
64 0x00009200 0x200 0x00442000 0x1000 -rwx ---- sect_64
65 0x00009400 0x200 0x00443000 0x1000 -rwx ---- sect_65
66 0x00009600 0x200 0x00444000 0x1000 -rwx ---- sect_66
67 0x00009800 0x200 0x00445000 0x1000 -rwx ---- sect_67
68 0x00009a00 0x200 0x00446000 0x1000 -rwx ---- sect_68
69 0x00009c00 0x200 0x00447000 0x1000 -rwx ---- sect_69
70 0x00009e00 0x200 0x00448000 0x1000 -rwx ---- sect_70
71 0x0000a000 0x200 0x00449000 0x1000 -rwx ---- sect_71
72 0x0000a200 0x200 0x0044a000 0x1000 -rwx ---- sect_72
73 0x0000a400 0x200 0x0044b000 0x1000 -rwx ---- sect_73
74 0x0000a600 0x200 0x0044c000 0x1000 -rwx ---- sect_74
75 0x0000a800 0x200 0x0044d000 0x1000 -rwx ---- sect_75
76 0x0000aa00 0x200 0x0044e000 0x1000 -rwx ---- sect_76
77 0x0000ac00 0x200 0x0044f000 0x1000 -rwx ---- sect_77
78 0x0000ae00 0x200 0x00450000 0x1000 -rwx ---- sect_78
79 0x0000b000 0x200 0x00451000 0x1000 -rwx ---- sect_79
80 0x0000b200 0x200 0x00452000 0x1000 -rwx ---- sect_80
81 0x0000b400 0x200 0x00453000 0x1000 -rwx ---- sect_81
82 0x0000b600 0x200 0x00454000 0x1000 -rwx ---- sect_82
83 0x0000b800 0x200 0x00455000 0x1000 -rwx ---- sect_83
84 0x0000ba00 0x200 0x00456000 0x1000 -rwx ---- sect_84
85 0x0000bc00 0x200 0x00457000 0x1000 -rwx ---- sect_85
86 0x0000be00 0x200 0x00458000 0x1000 -rwx ---- sect_86
87 0x0000c000 0x200 0x00459000 0x1000 -rwx ---- sect_87
88 0x0000c200 0x200 0x0045a000 0x1000 -rwx ---- sect_88
89 0x0000c400 0x200 0x0045b000 0x1000 -rwx ---- sect_89
90 0x0000c600 0x200 0x0045c000 0x1000 -rwx ---- sect_90
91 0x0000c800 0x200 0x0045d000 0x1000 -rwx ---- sect_91
92 0x0000ca00 0x200 0x0045e000 0x1000 -rwx ---- sect_92
93 0x0000cc00 0x200 0x0045f000 0x1000 -rwx ---- sect_93
94 0x0000ce00 0x200 0x00460000 0x1000 -rwx ---- sect_94
95 0x0000d000 0x200 0x00461000 0x1000 -rwx ---- sect_95
EOF
RUN

View File

@ -434,7 +434,7 @@ NAME=pe misaligned section paddr
FILE=bins/pe/unaligned_sec_paddr.exe
CMDS=iS~sect_0
EXPECT=<<EOF
0 0x00000200 0x205 0x00401000 0x1000 -rwx sect_0
0 0x00000200 0x205 0x00401000 0x1000 -rwx ---- sect_0
EOF
RUN

View File

@ -12,14 +12,14 @@ CMDS=!rabin2 -S bins/pe/cm01.exe
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
---------------------------------------------------
0 0x00000600 0x600 0x00401000 0x1000 -r-x CODE
1 0x00000c00 0x200 0x00402000 0x1000 -rw- DATA
2 0x00000e00 0x800 0x00403000 0x1000 -rw- .idata
3 0x00001600 0x200 0x00404000 0x1000 -r-- .edata
4 0x00001800 0x200 0x00405000 0x1000 sr-- .reloc
5 0x00001a00 0x1400 0x00406000 0x2000 sr-- .rsrc
nth paddr size vaddr vsize perm type name
--------------------------------------------------------
0 0x00000600 0x600 0x00401000 0x1000 -r-x ---- CODE
1 0x00000c00 0x200 0x00402000 0x1000 -rw- ---- DATA
2 0x00000e00 0x800 0x00403000 0x1000 -rw- ---- .idata
3 0x00001600 0x200 0x00404000 0x1000 -r-- ---- .edata
4 0x00001800 0x200 0x00405000 0x1000 sr-- ---- .reloc
5 0x00001a00 0x1400 0x00406000 0x2000 sr-- ---- .rsrc
EOF
RUN

View File

@ -83,13 +83,13 @@ CMDS=<<EOF
iS~Bat
EOF
EXPECT=<<EOF
30 0x00001f0d 0x2a 0x00001f0d 0x2a ---- <module>.Bat
31 0x00001f5f 0xa 0x00001f5f 0xa ---- <module>.Bat.__init__
32 0x00001fca 0x8 0x00001fca 0x8 ---- <module>.Bat.say
33 0x00002037 0x4 0x00002037 0x4 ---- <module>.Bat.sonar
34 0x00002103 0x1c 0x00002103 0x1c ---- <module>.Batman
35 0x00002143 0x44 0x00002143 0x44 ---- <module>.Batman.__init__
36 0x00002235 0x4 0x00002235 0x4 ---- <module>.Batman.sing
30 0x00001f0d 0x2a 0x00001f0d 0x2a ---- ---- <module>.Bat
31 0x00001f5f 0xa 0x00001f5f 0xa ---- ---- <module>.Bat.__init__
32 0x00001fca 0x8 0x00001fca 0x8 ---- ---- <module>.Bat.say
33 0x00002037 0x4 0x00002037 0x4 ---- ---- <module>.Bat.sonar
34 0x00002103 0x1c 0x00002103 0x1c ---- ---- <module>.Batman
35 0x00002143 0x44 0x00002143 0x44 ---- ---- <module>.Batman.__init__
36 0x00002235 0x4 0x00002235 0x4 ---- ---- <module>.Batman.sing
EOF
EXPECT_ERR=
RUN

View File

@ -21,10 +21,10 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
-------------------------------------------------
0 0x00000044 0xf6 0x00000044 0xf6 ---- LMF_LOAD
1 0x00000152 0x6c3 0x00000152 0x6c3 ---- LMF_LOAD
nth paddr size vaddr vsize perm type name
------------------------------------------------------
0 0x00000044 0xf6 0x00000044 0xf6 ---- ---- LMF_LOAD
1 0x00000152 0x6c3 0x00000152 0x6c3 ---- ---- LMF_LOAD
EOF
RUN

View File

@ -16,13 +16,13 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
------------------------------------------------
0 0x000000d0 0xa0 0x805000d0 0xa0 -rwx text_1
1 0x00000170 0x4 0x80500170 0x4 -rw- data_2
2 0x00000174 0x4 0x80500174 0x4 -rw- data_3
3 0x00000178 0x34 0x80500178 0x34 -rw- data_4
4 0x00000000 0x4 0x80500380 0x4 -rw- bss
nth paddr size vaddr vsize perm type name
-----------------------------------------------------
0 0x000000d0 0xa0 0x805000d0 0xa0 -rwx ---- text_1
1 0x00000170 0x4 0x80500170 0x4 -rw- ---- data_2
2 0x00000174 0x4 0x80500174 0x4 -rw- ---- data_3
3 0x00000178 0x34 0x80500178 0x34 -rw- ---- data_4
4 0x00000000 0x4 0x80500380 0x4 -rw- ---- bss
EOF
RUN

View File

@ -73,12 +73,12 @@ CMDS=iS
EXPECT=<<EOF
[Sections]
nth paddr size vaddr vsize perm name
-------------------------------------------------
0 0x0000000a 0x11 0x0000000a 0x11 ---- type
1 0x0000001d 0x2d 0x0000001d 0x2d ---- function
2 0x0000004d 0x1dd 0x0000004d 0x1dd ---- export
3 0x0000022d 0x1f7 0x0000022d 0x1f7 ---- code
nth paddr size vaddr vsize perm type name
------------------------------------------------------
0 0x0000000a 0x11 0x0000000a 0x11 ---- ---- type
1 0x0000001d 0x2d 0x0000001d 0x2d ---- ---- function
2 0x0000004d 0x1dd 0x0000004d 0x1dd ---- ---- export
3 0x0000022d 0x1f7 0x0000022d 0x1f7 ---- ---- code
EOF
RUN