示例#1
0
 /**
  * @return
  * @throws IOException
  */
 public Section[] getSections() throws IOException {
   if (this.sections == null) {
     this.sections = Section.create(this, this.ehdr, this.efile);
     for (int i = 0; i < this.sections.length; i++) {
       if (this.sections[i].getType() == Section.SHT_SYMTAB) {
         this.syms = i;
       }
       if ((this.syms == 0) && (this.sections[i].getType() == Section.SHT_DYNSYM)) {
         this.syms = i;
       }
     }
   }
   return this.sections;
 }