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

    <tr>
        <th>Summary</th>
        <td>
            Implement `dladdr` support in elfnix_platform in the ORC runtime.
        </td>
    </tr>

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

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

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

<pre>
    The `dladdr` function looks up symbol-information (symbol name and base address, containing image name and address) for a given address. We will need an implementation of this function to JIT code containing dladdr calls (rare), but it's also essential to implementing proper `atexit` behavior (quite common). That makes this a prerequisite for https://github.com/llvm/llvm-project/issues/74641.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykkk1r3EwQhH_N6NJYSKOPlQ46vK_DgnMJBEOOoSW1pLbnQ54eOfa_D7OLvck5p4GepurpolCEV0c0qOZ_1XzJ8IibD4PZ0JJko5_fh8eNQLXFbHCeg2oLWA43RfYOjPfPAscO8m5Hb-7YLT5YvPwp3V2n4NASoJthRCFIIiSi9D1M3kVkx24FtrjSbfNzqYfFB0BY-ZXcxziHHwS_2BhwRDOgA7a7IUsuXr39AnFjuYFGD18fHmHyM_3pej0JJjRGEnDAQEr3iW08InBU-iSARjyQCLnIaJLWp10S2YPfKaSEMNIbx5TQSBu-sg9J9OXgmFyt9U7pPofHDSNYfCa5UiLsgQK9HCxpMx28xbiLqv5T-qz0eeW4HWM-eav02ZjXj-duD_6Jpqj0mUUOEqXPp7qtyzybh2ruqx4zGspTUXZd19Zttg0djtXcVAvNxVJXc1n15akuu6rvsFv6BjMedKGrUhdt2TVF3eZFv1TTrKu-1EUzlo2qC7LIJk8EuQ9rdvEekrHODI5k5FImrX2YnlKGOhUrDBfk8VhF1YVhiXKTiBwNDQ8fsf5dNzn23YcI7IDM4vjt524wpqalUdwIvn2_h3C4yJby7Ahm-Lf89O8AAAD__9ETCQo">