> -----Message d'origine----- > De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal- > boun...@lists.freepascal.org] De la part de fredvs > Envoyé : jeudi 1 septembre 2016 22:55 > À : fpc-pascal@lists.freepascal.org > Objet : Re: [fpc-pascal] Linking to Linux on a FreeBSD system with > Linux emulated ? > > > See Greames message for why you still will have to use the Linux ld. > > Your error message clearly says, the FreeBSD linker can only create > bfsd > > code for i386 and x64. > > >> Supported emulation: elf_x86_64_fbsd and elf_i386_fbsd > > Yes, before to sent that topic, I have try with the Linux ld and... > in fact it is absolutely the same file than ld-freebsd. (same size, > same > date). > > And using ld-linux gives the same message: > > >> Supported emulation: elf_x86_64_fbsd and elf_i386_fbsd > > So, maybe, (I do not know *ld*), like Jonas said, *ld *needs parameters > to > change default elf. > But yes, the best is to try it. And asap. I will try to find time > tonight.
What you need here is a multi-target linker, you can get getting the GNU binutils sources and running configure with the options: --enable-targets=all combined with a second option to also enabled 64-bit targets needed only if you are compiling on a 32-bit target which is: --enable-64-bit-bfd Pierre _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal