Discussion:
[fpc-devel] Pascal JIT
ti hory via fpc-devel
2021-05-19 11:01:50 UTC
Permalink
Hi,


I'm interested in implement a Pascal JIT linker so I implement a COFF 64bit linker and link object files generated by FPC trunk then link them with DLL dependencies like "kernel32.dll" and "user32.dll".

Project source code is available at https://github.com/tihorygit/TheLinker.


Now I have a problem with linking FPC compiler functions like "fpc_initializeunits". After files linked together, some of these functions point to an invalid location in object memory and cause an access violation exception.

I read Pascal TInternalLinker code but didn't find any solution, is anyone experience with linkers to help me or have a solution?
Loading...