This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GAS compiling problem on ARM


Hi,

I'm using binutils-2.13.92, configured with:
../binutils-2.13.92/configure --prefix=/homedirectories/home6/mlil/proj_links/mingw/cross_arm --target=arm-elf -v


When compiling, I get the following error messages which I do not understand:

/homedirectories/home6/mlil/proj_links/mingw/cross_arm/lib/gcc-lib/arm-elf/3.3/../../../../arm-elf/bin/as --gdwarf2 -EL -mcpu=arm7tdmi -mthumb-interwork -o inthdlr_gnu.o /var/tmp//cc2yfq0p.s
../src/inthdlr_gnu.S: Assembler messages:
../src/inthdlr_gnu.S:249: Error: invalid immediate for address calculation (value = 0xFFFFFFD0)
../src/inthdlr_gnu.S:249: Error: cannot represent THUMB_ADD relocation in this object file format


The relevant code looks like:

244 .thumb
245 246 .globl arm_lock
247 .globl arm_lock32
248 arm_lock: 249 adr r0,arm_lock32
250 bx r0
251 .align 2
252 .arm
253 arm_lock32:


I compiling using GCC 3.3, which in turn invokes "as" as seen above.

What am I doing wrong here?

/Mats


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]