Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2021-05

Pascal JIT

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ti hory

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?

Reply by email