error: cannot represent THUMB_OFFSET

support for the ARM toolchain
Post Reply
jiru_81
Posts: 1
Joined: Sat Sep 11, 2010 10:32 pm

error: cannot represent THUMB_OFFSET

Post by jiru_81 » Sun Jan 02, 2011 1:49 am

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?

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: error: cannot represent THUMB_OFFSET

Post by WinterMute » Tue Jan 04, 2011 1:40 am

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
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests