[fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?
Marc Santhoff
M.Santhoff at web.de
Thu Sep 1 21:28:43 CEST 2016
On Do, 2016-09-01 at 09:56 -0700, fredvs wrote:
> > With fpc's -k parameter, you can pass parameters directly to the linker.
> > If you need to pass multiple parameters, use -k several times
> > (e.g.-k-para1 -kvalue1)
>
> Wow, many thanks Jonas.
>
> I will try it and write you the result.
>
> But, imagine, with FreeBSD, you could:
> Compile and run on same system (no need virtual-box to test it):
> - FreeBSD 64 bit programs.
> - FreeBSD 32 bit programs.
> - Linux 64 bit programs.
> - Linux 32 bit programs.
> - Windows 64 bit programs (via wine).
> - Windows 32 bit programs (via wine).
> - Maybe other program-system too (via emulator).
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
Have a look for brandelf(1), btw. You'll need it. And "man linux" will
tell some stories, too.
HTH,
Marc
More information about the fpc-pascal
mailing list