Changeset 212 for soft/giet_vm/memo/src


Ignore:
Timestamp:
Aug 24, 2012, 1:28:35 PM (12 years ago)
Author:
karaoui
Message:

add the support for replication of code to MeMo?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/memo/src/memo.cpp

    r211 r212  
    441441            elfpp::object* loader = m_loaders[filePath];//TODO:free!?
    442442
    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            }
    445449
    446450            sect->set_name(std::string(cur_vobj->name));
     
    524528
    525529    sect->set_vaddr((*vSO).lma());
    526     m_generator->add_section(*(new elfpp::section(*sect)));
     530    m_generator->add_section(*sect);
    527531
    528532} // end vseg_map()
Note: See TracChangeset for help on using the changeset viewer.