<br /><br /><span>Am 08.08.21 11:27 schrieb <b class="name">"stes@PANDORA.BE" </b> <stes@telenet.be>:</span><blockquote cite="mid:1669905849.57789771.1628414856259.JavaMail.zimbra@telenet.be" class="iwcQuote" style="border-left: 1px solid #00F; padding-left: 13px; margin-left: 0;" type="cite"><div class="mimetype-text-plain"><br />Back in March 2021 there was an interesting post by Alan Coopersmith about the address space layout diagrams for the AMD64 ABI.<br /><br />This was related in March to firefox, spidermonkey and so-called tagged pointers.<br /><br />He described various strategies, some were adding a ld link editor mapfile using either RESERVE_SEGMENT or CAPABILITY.<br /><br />However I fear that the OpenIndiana ld has no support for RESERVE_SEGMENT.<br /><br />I have ran into a new issue in the very latest versions of OpenSmalltalk cog-spur where apparently new code in OpenSmalltalk expects the Linux address space layout - not the OpenIndiana layout.<br /><br />The issue is that new code when ran under a debugger seems to set <br /><br />   endOfJITZone = 0xffff80ffbcecf000<br /><br />instead of<br /><br />   endOfJITZone = 0x7fffbe400000<br /><br />as on Linux.  The OpenIndiana layout seems to use the full 64bit pointer range while Linux does not seem to do that but unfortunately it appears that OpenSmalltalk now expects the Linux layout.  A few weeks ago that was not the case so I already raised the issue with the OpenSmalltalk developers.<br /><br />I am trying now to use a ld -M mapfile on OI as workaround.<br /><br />There are some examples in :<br /><br /> /usr/lib/ld <br /><br />and <br /><br /> /usr/lib/ld/amd64<br /><br />These examples are : map.default, map.below4G and map.above4G<br /><br />Has anyone - perhaps for spidermonkey ? - created a mapfile for simulating the Linux address space layout ?<br /><br />Something like:   /usr/lib/ld/amd64/map.linux ?<br /><br />Thanks<br />David Stes<br /><br />_______________________________________________<br />oi-dev mailing list<br />oi-dev@openindiana.org<br /><a href="https://openindiana.org/mailman/listinfo/oi-dev" target="l">https://openindiana.org/mailman/listinfo/oi-dev</a></div></blockquote><span></span><div>OI mapfile do not support such setting, so I guess the /etc/system setting:<br /></div><div><br /></div><span></span><div>set _userlimit=0x7fffc0000000</div><div><br /></div><div>is the only option for you.<br /></div>-- <br signature="separator" />Carsten