<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color: transparent;">Hi, </span><br>
</div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent">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". </span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent">Project source code is available at </span><a target="_blank" href="https://github.com/tihorygit/TheLinker" class="x_x_editor-rtfLink" style="color:#4a6ee0; background:transparent"><span style="background:transparent">https://github.com/tihorygit/TheLinker</span></a><span style="background:transparent">.</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent">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.</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
<span style="background:transparent">I read Pascal TInternalLinker code but didn't find any solution, is anyone experience with linkers to help me or have a solution?</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px; color:rgb(14,16,26); background:transparent; margin-top:0pt; margin-bottom:0pt">
</p>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>