<div dir="ltr">Thanks for your reply Marcus<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
> 1. It looks like the plugin files are built relocatable, but not position<br>
> independent, correct? The reason I think this is because there is no code in<br>
> the DC loader to deal with a Global Offset Table.<br>
<br>
</div>Correct. This is the purpose of the "-q" flag to ld; it produces a<br>
binary which still contains relocation records.</blockquote><div><br>OK I missed that flag. I guess I just assumed it meant quiet, which is what it does for gcc. I forgot it could have different meaning for ld.<br> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Unless you compile with -G0, you'll probably need to set up the global<br>
data pointer as well.<br>
<font color="#888888"></font></blockquote><div><br>Right. I deal with that by placing the short segments of the plugin into a hole created around the global pointer of the main executable.<br><br>I also had to add --whole-archives to the main executable which I later saw that you did as well.<br>
<br>Great to know I'm on the right track :)<br>Thanks again,<br><br>Yotam<br></div><font color="#888888"><br></font></div><br></div>