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

Maurizio Cembalo mauriziocembalo at gmail.com
Mon Apr 2 10:20:10 PDT 2007


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


More information about the Speex-dev mailing list