> > > Install a newer version of ld which does support the --gc-sections flag. > > I found a Debian tool chain (http://www.emdebian.org/ -- > binutils-arm-linux-gnu_2.18- > 1_i386.deb). It works ok, but the linker gives some warnings > > /Fpc/ArmBin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for > -lgcc_s > /Fpc/ArmBin/ld: skipping incompatible /usr/lib/libpthread.so when searching > for -lpthread > /Fpc/ArmBin/ld: skipping incompatible /usr/lib/libpthread.a when searching > for -lpthread > /Fpc/ArmBin/ld: skipping incompatible /usr/lib/libdl.so when searching for > -ldl > /Fpc/ArmBin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl > /Fpc/ArmBin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc > /Fpc/ArmBin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc > > The output works, but I would not expect to get this warnings when I compile > with > " -Xd #Don't use standard library search path (needed for cross compile)" > > Am I missing something?
Try to build with -s and examine/post the ppas.sh and link.res file. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal