e32tools/elf2e32/source/e32imagefile.cpp
changeset 683 8e0eb519ef53
parent 675 02e65118a746
equal deleted inserted replaced
682:2c32f186fa1f 683:8e0eb519ef53
   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