<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59917>59917</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Backport D136110: `__heap_end` for wasm32
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sunfishcode
      </td>
    </tr>
</table>

<pre>
    [D136110](https://reviews.llvm.org/D136110) fixes a regression in the wasi-sdk distribution of LLVM, where users are building with `-Wl,--initial-memory=` to statically allocate additional heap memory, and depending on the libc malloc implementation to be able to detect this, which the `__heap_end` symbol allows it to do reliably.

/branch sunfishcode/llvm-project/release/15.x-plus-D136110
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkkkFvrDgQhH-NubQYYRMgHDgkGc0pe909Rm27Z-iNwchtMpl_v4JM9r2nXBBSubs_VRWK8GUmGlTzrJpjgWseYxpknc8so4ueChv9bZOPum61rlRzVOZxzHkRVT8pc1LmlOiD6SqHED6mQ0wXZU7fr00PZ_4kAYREl0QiHGfgGfJIcEXhUvw7eJac2K55E-MZXl___kuZF7iOlAhWoSSAicCuHDzPF7hyHkG1VflPUOalLHnmzBjKiaaYbqo-qraCHEEyZnYYwg0whOgwE6D3vB3CACPhAvcZ8wI4e_C00LzfiF-Qga2DaZ8GnpZAE83b1k2OYAnQBtp-PWVyGfLI8sXObtw3qLZ6e9tOvdHsNzC5TTaGnegqwHmfjpAoMNpwO6jqqKqn-9ecbMLZjfBbKMqcNq_LJcV_yeU9gkAom6Cbw2e5hFXKewaFH2rf1z0WNOi2q-tOd21djENnyWjXEnbeNljb3lQGK2sbbV2DxhY8mMrUldaV7kxv6oPtyDvU50dNTfdoWvVQ0YQc_k--YJGVhqbvdVcEtBTku1pp2JHtehH1UAWW_KswReYcaHhG977ElOG7PfXTT_POMW3FmWpTrCkMfzbxwnlc7cHF6W7RT6d2QlHmtEP-FwAA__9TE_u6">