On 21-4-2013 19:54, Mark Morgan Lloyd wrote: > Reinier Olislagers wrote: >> See this forum thread: >> http://lazarus.freepascal.org/index.php/topic,20664.msg119960.html#msg119960 >> >> >> Forum user ocye got mipsel binaries, but the ELF flags apparently need >> to be changed due to a bug in older Linux kernels. >> >> How can this be done? >> In addition, is there perhaps a compiler switch to manage this? > > Interesting, there was somebody in (I think) fpc-devel a few months ago > with similar problems but we all rather went in circles. > > Since Lemote appears to be using the compiler OK and since I think I've > had it running on (a Qemu emulation of) mipsel, I think that the problem > is that /some/ kernel builds are expecting a particular ELF header on > /some/ machine types. Correct. The forum thread links to a thread re failing executables using gdd where it appears that (certain?) 2.4 and 2.6 kernels did *not* want the MIPS flag set.
> If OP could identify the correct parameter for ld > it might be possible to use fpc's -k option. > Ok, so we have to dig into ld. Thanks; will pass it on. Thanks, Mark! _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal