int section_is_x (ut64 addr) { struct section_t *sec = section_get (addr); // XXX: rabin -rS is necesary here // We need to load the section information!!1 // return 1; return (sec && sec->rwx & SECTION_X); }
struct sect *sections_init(struct sect **sects) { *sects = NULL; section_create(sects, ".text", SECT_XLATE); section_create(sects, ".rodata", SECT_RAW); section_create(sects, ".data", SECT_RAW); section_create(sects, ".bss", SECT_ZERO); section_create(sects, ".end", SECT_RAW); return section_get(*sects, ".text"); }