Ivan Trubach
unread,Dec 13, 2019, 12:17:24 PM12/13/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ian Lance Taylor, golan...@googlegroups.com
Sure, I will. The dyld package should work for dlsym C calls, however I don’t think it’s possible to do callbacks with the functionality runtime exposes (i.e. I am talking about API that sys/windows package provides).
So, yeah, while there is no need for Darwin dlopen in x/sys/unix, we still need callbacks for non-trivial code. And at this point adding Dlopen to sys may come in handy.
Either that, or there is a way to make a callback without Cgo that I don’t know about. I would be grateful for any hints.