Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Lucet-runtime support for statically linked lucetc output #22

Closed
pchickey opened this issue Feb 20, 2019 · 1 comment
Closed

Lucet-runtime support for statically linked lucetc output #22

pchickey opened this issue Feb 20, 2019 · 1 comment

Comments

@pchickey
Copy link
Contributor

pchickey commented Feb 20, 2019

Currently, lucet-runtime uses dlopen and dlsym in the DlModule struct to look up symbols in the lucetc-generated object file.

In order for static linking to work, we need to use lucet-module-data to access all aspects of a compiled module. This includes mapping export function names (as strings) to code pointers.

lucet-module-data will have to include a serialization of code pointers. Serde doesn't support this, so we'll have to serialize it directly with faerie and deserialize it with hand-written unsafe rust.

Hopefully, this same underlying representation will be usable by MockModule, DlModule, and StaticModule, so that most of the difficult code lives in the Module trait, and the three different representations are as simple as possible.

Depends on #20

@pchickey
Copy link
Contributor Author

We are not developing new features in lucet anymore

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant