Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llext support native_sim #78498

Open
hblcd opened this issue Sep 16, 2024 · 3 comments
Open

llext support native_sim #78498

hblcd opened this issue Sep 16, 2024 · 3 comments
Assignees
Labels
area: llext Linkable Loadable Extensions Feature Request A request for a new feature

Comments

@hblcd
Copy link

hblcd commented Sep 16, 2024

No description provided.

@hblcd hblcd added the Feature Request A request for a new feature label Sep 16, 2024
Copy link

Hi @hblcd! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

@nashif nashif added the area: llext Linkable Loadable Extensions label Sep 16, 2024
@hblcd
Copy link
Author

hblcd commented Sep 17, 2024

I found that in native_sim, dlopen, dlsym, dlclose and dlerror could replace the functions of llext. But, when use dlopen open the lib, the pathname should be the path of the host. There's a problem with that, cannot verify the correctness of llext.

@teburd
Copy link
Collaborator

teburd commented Sep 17, 2024

I found that in native_sim, dlopen, dlsym, dlclose and dlerror could replace the functions of llext. But, when use dlopen open the lib, the pathname should be the path of the host. There's a problem with that, cannot verify the correctness of llext.

That seems like a good way to perhaps try and do things. I'm not super familiar with native_sim and all its wonderful ways of operating but absolutely dlopen is along the same lines.

It will not use the elf parsing and symbolic linking written in zephyr though. To do that I suspect you'd need to support x86_64/x86 and perhaps aarch64 for native_sim usages on typical x86 machines and perhaps some others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: llext Linkable Loadable Extensions Feature Request A request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants