<br /><br /><span>Am 09.08.21 23:03 schrieb <b class="name">Richard Lowe </b> <richlowe@richlowe.net>:</span><blockquote cite="mid:CAA7J0x_6pQdF64Z9Gyua8Wmk5mF7GXirO7kbDFmN+jwEicD1pA@mail.gmail.com" class="iwcQuote" style="border-left: 1px solid #00F; padding-left: 13px; margin-left: 0;" type="cite"><div class="mimetype-multipart-alternative"><div dir="auto">It's been so long I honestly don't remember right now, but it or V look right (ignoring the documentation, for now).  You should be able to check it was created using elfdump -p<br /><br /><div>-- Rich</div></div><br /><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Mon, Aug 9, 2021, 01:34 Carsten Grzemba via oi-dev <<a href="mailto:oi-dev@openindiana.org" rel="noopener noreferrer" target="1">oi-dev@openindiana.org</a>> wrote:<br /></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><br /><br />Am 08.08.21 23:46 schrieb <b>Richard Lowe </b> <<a href="mailto:richlowe@richlowe.net" rel="noreferrer noopener noreferrer" target="1">richlowe@richlowe.net</a>>:<blockquote style="border-left:1px solid #00f;padding-left:13px;margin-left:0"><div><div dir="auto">We haven't added RESERVE_SEGMENT yet, though it would be fairly easy to do I think.<div dir="auto"><div dir="auto">You can do the same thing in the v1 syntax though, using the ?E flag to say it's empty.</div></div></div><p></p><hr size="2" /><br /></div></blockquote><div>I try to translate the mapfile version 2 to version 1</div><div>version 2;<br /></div><div><br /></div><div>RESERVE_SEGMENT spidermonkey_reserve {<!-- --><br />        VADDR = 0x800000000000;<br />        SIZE = 0xffff7fffffff0000;<br /> };<br /></div><div><br /></div><div>Is the following correct in version = 1?</div><div><br /></div><div>spidermonkey_reserve = LOAD A0x800000000000 L0xffff7fffffff0000 ?E;</div><div><br /></div></blockquote></div></div></blockquote><span><br /></span><div><span>Linked with this mapfile I get with elfdump -p xpcshell:</span></div><div><span><br /></span></div><div><span><br />Program Header[0]:<br />    p_vaddr:      0x400040            p_flags:    [ PF_X PF_R ]<br />    p_paddr:      0                   p_type:     [ PT_PHDR ]<br />    p_filesz:     0x1c0               p_memsz:    0x1c0<br />    p_offset:     0x40                p_align:    0<br /><br />Program Header[1]:<br />    p_vaddr:      0x400200            p_flags:    [ PF_R ]<br />    p_paddr:      0                   p_type:     [ PT_INTERP ]<br />    p_filesz:     0x17                p_memsz:    0x17<br />    p_offset:     0x200               p_align:    0<br /><br />Program Header[2]:<br />    p_vaddr:      0x400000            p_flags:    [ PF_X PF_R ]<br />    p_paddr:      0                   p_type:     [ PT_LOAD ]<br />    p_filesz:     0x3f811             p_memsz:    0x3f811<br />    p_offset:     0                   p_align:    0x10000<br /><br />Program Header[3]:<br />    p_vaddr:      0x44f820            p_flags:    [ PF_W PF_R ]<br />    p_paddr:      0                   p_type:     [ PT_LOAD ]<br />    p_filesz:     0x8a8               p_memsz:    0xdf8<br />    p_offset:     0x3f820             p_align:    0x10000<br /><br />Program Header[4]:<br />    p_vaddr:      0x800000000000      p_flags:    0<br />    p_paddr:      0                   p_type:     [ PT_LOAD ]<br />    p_filesz:     0                   p_memsz:    0xffff7fffffff0000<br />    p_offset:     0                   p_align:    0x100000<br /><br />Program Header[5]:<br />    p_vaddr:      0x44fb10            p_flags:    [ PF_W PF_R ]<br />    p_paddr:      0                   p_type:     [ PT_DYNAMIC ]<br />    p_filesz:     0x470               p_memsz:    0<br />    p_offset:     0x3fb10             p_align:    0<br /><br />Program Header[6]:<br />    p_vaddr:      0x4500c8            p_flags:    [ PF_W PF_R ]<br />    p_paddr:      0                   p_type:     [ PT_TLS ]<br />    p_filesz:     0                   p_memsz:    0x8<br />    p_offset:     0x400c8             p_align:    0x8<br /><br />Program Header[7]:<br />    p_vaddr:      0x400218            p_flags:    [ PF_R ]<br />    p_paddr:      0                   p_type:     [ PT_SUNW_UNWIND ]<br />    p_filesz:     0xe4c               p_memsz:    0xe4c<br />    p_offset:     0x218               p_align:    0x8<br /></span></div><div><span><br /></span></div><div><span>If I try to run:</span></div><div><span>$ LD_LIBRARY_PATH=. ./xpcshell <br />Killed</span></div><div><span><br /></span></div><div><span>or<br /></span></div><div><span>$ LD_LIBRARY_PATH=. ldd ./xpcshell <br />ldd: ./xpcshell: execution failed due to signal 9 <br /></span></div><div><span><br /></span></div><div><span>So I guess to use LOAD for this is no good idea because OS thinks this space is really to reserve instead of not to use?<br /></span></div><div><span></span></div>-- <br signature="separator" />Carsten