Hi,

I have always compiled applications for ARM7TDMI with pic (-fpic
-msingle-pic-base) without problems. Now I tried to build without pic,
and got lots of 

  ERROR: reloc type R_ARM_PC24 unsupported in this context

during linking. After searching the archives, I tried to run elf2flt
without the "-a" option. This time, the link succeeds, but I get a 
  
 BINFMT_FLAT: reloc outside program ...

when I try to run the application on the target (I tried several
applicatons, all had the same problem). I have used 
uClinux-dist-20080808 and the snapgear toolchain
arm-linux-tools-20070808.tar.gz.
I modified vendors/Atmel/AT91/config.arch to disable XIP, and built from
scratch:

############################################################################

CPUFLAGS :=
# VENDOR_CFLAGS                # not required here
DISABLE_XIP := 1             # XIP works fine
DISABLE_MOVE_RODATA := 1       # until we get a toolchain release
DISABLE_SHARED_LIBS := 1
# LOPT := -O2                  # library is alway 02
# UOPT := -Os                  # user apps are always Os

############################################################################

Any ideas what's wrong? 

-Erwin

-- 
Dipl.-Ing. Erwin Authried
Softwareentwicklung und Systemdesign

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to