e32tools/elf2e32/source/e32imagefile.cpp
changeset 675 02e65118a746
parent 607 378360dbbdba
equal deleted inserted replaced
673:7ae5f757318b 675:02e65118a746
   493 	if (rsize)
   493 	if (rsize)
   494 	{
   494 	{
   495 		aRelocsSize = Align(rsize + sizeof(E32RelocSection), sizeof(uint32));
   495 		aRelocsSize = Align(rsize + sizeof(E32RelocSection), sizeof(uint32));
   496 
   496 
   497 		uint32 aBase = (*aRelocList.begin())->iSegment->p_vaddr;
   497 		uint32 aBase = (*aRelocList.begin())->iSegment->p_vaddr;
   498 		//add for cleanup to be done later..
   498 		
   499 		cleanupStack.push_back(aRelocs);
   499 		cleanupStack.push_back(aRelocs);
   500 		aRelocs =	new char [aRelocsSize];
   500 		aRelocs =	new char [aRelocsSize];
   501 		memset(aRelocs, 0, aRelocsSize);
   501 		memset(aRelocs, 0, aRelocsSize);
   502 		E32RelocSection * aRelocSection = (E32RelocSection * )aRelocs;
   502 		E32RelocSection * aRelocSection = (E32RelocSection * )aRelocs;
   503 
   503