[Cbe-oss-dev] elf format detection in MARS

Yuji Mano yuji.mano at am.sony.com
Wed Oct 21 08:39:49 EST 2009


Hi Tomas.

Sorry for the late reply.

Tomas Carnecky wrote:
> I see that mars manually sets the address of the .init section for  
> tasks and modules (-Wl,--section-start,.init=0x3000), and later when  
> loading the elf images it checks if the addresses are correct. But, it  
> checks the program header addresses and not the section addresses! And  
> these can be different, which makes the check fail and mars refuses to  
> run. Mars should be checking the address of the .init section instead  
> of relying on .init starting at the same address as are in the program  
> headers.

Thank you for reporting this. Which version of spu-binutils are you
using by the way? We haven't seen that problem, but it definitely
should be addressed.

> I'd even go further and define a section '.mars.task' and  
> check the presence of that.

That sounds like a good idea. Patches for fixes and improvements are
always welcome and appreciated =).

Regards,
Yuji



More information about the cbe-oss-dev mailing list