> Try to build with -s and examine/post the ppas.sh and link.res file. This is how the ppas.sh and the link.res file looks like. To me it looks ok. Do you think it is an error in the linker.
Carsten <ppas.sh> #!/bin/sh DoExitAsm () { echo "An error occurred while assembling $1"; exit 1; } DoExitLink () { echo "An error occurred while linking $1"; exit 1; } echo Assembling testthreads /Fpc/ArmBin/as -o threads.o threads.s if [ $? != 0 ]; then DoExitAsm testthreads; fi rm threads.s echo Linking threads /Fpc/ArmBin/ld -Map=link.map -dynamic-linker=/lib/ld-linux.so.2 --gc- sections -L. -o threads link.res if [ $? != 0 ]; then DoExitLink threads; fi <link.res> SEARCH_DIR(/Fpc/Pas/ReleasedUnits/LibArm9/) SEARCH_DIR(/Fpc/Lib/Ulibc/Arm/) SEARCH_DIR(/Fpc/Lib/2.2.0/arm-linux/Fpc/) SEARCH_DIR(/Fpc/Pas/ReleasedUnits/PpuArm9/) SEARCH_DIR(/Fpc/ArmBin/) INPUT( /Fpc/Lib/Ulibc/Arm/cprt0.o threads.o /Fpc/Lib/2.2.0/arm-linux/Fpc/system.o /Fpc/Lib/2.2.0/arm-linux/Fpc/lineinfo.o /Fpc/Lib/2.2.0/arm-linux/Fpc/strings.o /Fpc/Lib/2.2.0/arm-linux/Fpc/objpas.o /Fpc/Lib/2.2.0/arm-linux/Fpc/cthreads.o /Fpc/Lib/2.2.0/arm-linux/Fpc/sysutils.o /Fpc/Lib/2.2.0/arm-linux/Fpc/dos.o /Fpc/Lib/2.2.0/arm-linux/Fpc/baseunix.o /Fpc/Lib/2.2.0/arm-linux/Fpc/unix.o /Fpc/Lib/2.2.0/arm-linux/Fpc/unixtype.o /Fpc/Lib/2.2.0/arm-linux/Fpc/initc.o /Fpc/Lib/2.2.0/arm-linux/Fpc/dl.o /Fpc/Lib/2.2.0/arm-linux/Fpc/unixutil.o /Fpc/Lib/2.2.0/arm-linux/Fpc/syscall.o /Fpc/Lib/2.2.0/arm-linux/Fpc/ctypes.o /Fpc/Lib/2.2.0/arm-linux/Fpc/errors.o /Fpc/Lib/2.2.0/arm-linux/Fpc/sysconst.o ) INPUT( -lulibc -lgcc_s -lpthread -ldl -lc ) ENTRY(_start) <cut> _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal