<p dir="ltr"><br>
On 27 Aug 2013 19:59, &quot;Edward Z. Yang&quot; &lt;<a href="mailto:ezyang@cs.stanford.edu">ezyang@cs.stanford.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Excerpts from Simon Marlow&#39;s message of Sun Aug 25 12:56:06 -0700 2013:<br>
&gt; &gt; You can arrange that all the indirections end up next to each other by<br>
&gt; &gt; putting them in a special section.  Then you can traverse the contents<br>
&gt; &gt; of the section so long as you have a symbol at the beginning and the<br>
&gt; &gt; end, or something like that.  There are other ways to do it, such as<br>
&gt; &gt; having the module initialisation code register something with the RTS.<br>
&gt;<br>
&gt; If I understand correctly, this is not true if you do something like<br>
&gt; dynamic linking, in which case each dynamic library will have its<br>
&gt; own indirection region.  So in that case, every library should register<br>
&gt; its boundary symbols with the RTS.</p>
<p dir="ltr">Yes, sorry I forgot to mention that.</p>
<p dir="ltr">Alternatively having each module register its table might be easier.</p>
<p dir="ltr">Cheers<br>
Simon</p>
<p dir="ltr">&gt; Edward<br>
</p>