Page 1 of 1

error: cannot represent THUMB_OFFSET

Posted: Sun Jan 02, 2011 1:49 am
by jiru_81
hi, i'm using the latest release of devkitarm and am trying to compile a piece of assembly code
but i get an error at the following thumb instruction:

ldr r1,[r0,#0x20]

error: cannot represent THUMB_OFFSET relocation in this object file format

im using the following to compile:
arm-eabi-gcc -mthumb-interwork -specs=gba.specs test.s

could someone please help me out?

Re: error: cannot represent THUMB_OFFSET

Posted: Tue Jan 04, 2011 1:40 am
by WinterMute
We'll need some more details of your problem, I can't reproduce this with my install.

Which OS are you using? How did you install? It would help if you showed the contents of test.s too