Changeset 212 for soft/giet_vm/memo/src
- Timestamp:
- Aug 24, 2012, 1:28:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/memo/src/memo.cpp
r211 r212 441 441 elfpp::object* loader = m_loaders[filePath];//TODO:free!? 442 442 443 sect = get_sect_by_addr(loader, cur_vaddr); 444 assert(sect and "No section found"); 443 sect = new elfpp::section(*get_sect_by_addr(loader, cur_vaddr));//copy: for the case we replicate the code 444 if (!sect) 445 { 446 std::cerr << "No section found for " << cur_vobj->name << " at "<< cur_vaddr << std::endl; 447 exit(-1); 448 } 445 449 446 450 sect->set_name(std::string(cur_vobj->name)); … … 524 528 525 529 sect->set_vaddr((*vSO).lma()); 526 m_generator->add_section(* (new elfpp::section(*sect)));530 m_generator->add_section(*sect); 527 531 528 532 } // end vseg_map()
Note: See TracChangeset
for help on using the changeset viewer.