Resolve symbols
authorLuke Lau <luke_lau@icloud.com>
Sat, 9 Nov 2019 18:08:33 +0000 (18:08 +0000)
committerLuke Lau <luke_lau@icloud.com>
Sat, 9 Nov 2019 18:28:28 +0000 (18:28 +0000)
commit7ce286e1652909691b4b96ea53a2f1358c8cbc24
treedcc7b5df7bdc191564ae263aca2aba88ac242d5b
parentb71b974011d7c1f15dc96c4424926866a2f49091
Resolve symbols

Now that the standard library is loaded into our process, we can finally
being to fill out our symbol resolver. The symbol resolver takes in a
symbol, and returns a pointer wrapped inside a JITSymbol if it can find
the address of it. Otherwise it returns an error.

You can use the symbol resolver to do much fancier stuff in OrcJIT, but
for now we are just going to look up symbols that we have previously
loaded into our process via loadLibraryPermanently.
Main.hs