[Speex-dev] Info on Symbian, ARM and OFFSET_IMM8 relocation error

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Mon Apr 2 15:12:17 PDT 2007


Hi,

What you pasted below looks like a compiler bug to me, especially
considering the workaround you use. Just curious, does the problem still
happen if you disable ARM4_ASM?

	Jean-Marc

Maurizio Cembalo a écrit :
> Hi all,
> 
> i'm using speex under symbian.
> When i have compiled the lib for ARM platform i have obtained the follow
> error:
> 
> "Error: Can not represent OFFSET_IMM8 relocation in
> this object file format (1)"
> 
> I have defined FIXED_POINT 1 and ARM4_ASM.
> 
> The error is in the function forced_pitch_quant contained in ltp.c.
> 
> The line that produce the error is:
> target[i]=EXTRACT16(SATURATE(SUB32(EXTEND32(target[i]),EXTEND32(res[i])),32700));
> 
> 
> Why this error??? In the emulator i have no problem.
> 
> I resolved with the sequent workaround:
> 
> spx_word16_t tmp =
> EXTRACT16(SATURATE(SUB32(EXTEND32(target[i]),EXTEND32(res[i])),
> 32700));
> target[i] = tmp;
> 
> Now i can compile e linking the lib in my application.
> 
> 
> Regards,
> maurizio
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
> 
> 


More information about the Speex-dev mailing list