Skip to content

Commit

Permalink
Ooops, forgot to move this piece.
Browse files Browse the repository at this point in the history
call to writeImpTable needs to go AFTER the modifications.
  • Loading branch information
ea committed Feb 24, 2015
1 parent 50870a5 commit 9495e6d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dyninst-8.2.1/symtabAPI/src/emitWin.C
Expand Up @@ -315,10 +315,6 @@ bool emitWin::writeImpTable(Symtab* obj)


bool emitWin::driver(Symtab *obj, std::string fName){
//if external references exist, write the import info.
if(!obj_nt->getRefs().empty())
writeImpTable(obj);

Offset MoveAheadOffset=0;
//get the number of new added sections
std::vector<Region *> newregs;
Expand Down Expand Up @@ -405,7 +401,12 @@ bool emitWin::driver(Symtab *obj, std::string fName){
}
pre = p;
}

// now that the dyninst section is properly built, we can write the import table
//if external references exist, write the import info.
if(!obj_nt->getRefs().empty())
writeImpTable(obj);


//printf("size of sec headers:%d\n", secHdrs.size());
for(unsigned int i=0; i<secHdrs.size(); i++){
printf("%s, diskOff=%x, diskSize=%x, memoff=%x, memsize=%x\n",
Expand Down

0 comments on commit 9495e6d

Please sign in to comment.