bytecodealliance / bytecodealliance/rustix

Use `dlsym` to resolve `__vdso_clock_gettime` etc.?

Open
#155 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
2.1k
Forks
294
Avg merge
4h 7m
Merged PRs (30d)
2

Description

In dynamically linked executables, we should be able to `dlopen` the "linux-vdso.so" library and use `dlsym` to obtain symbols like "__vdso_clock_gettime" instead of parsing the vDSO ELF image manually.

An alternative would be to say that since a dynamically-linked executable has libc anyway, the time routines should just use the libc `clock_gettime` APIs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.