-
Notifications
You must be signed in to change notification settings - Fork 1k
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
dl_iterate_phdr()
and ELF friends only defined on Linux and Fuchsia.
#1066
Labels
C-API-request
Category: API request
Milestone
Comments
Feel free to send PRs for other platforms! |
bors bot
added a commit
to softdevteam/phdrs
that referenced
this issue
Aug 24, 2020
5: Use the libc and elf crates instead of bindgen. r=ptersilie a=vext01 This make phdrs simpler and more lightweight. For now this would only work on Linux, but it'd be easy to get working elsewhere with small patches to libc (see [this issue](rust-lang/libc#1066)). Makes phdrs build so much faster. Co-authored-by: Edd Barrett <vext01@gmail.com>
bors
added a commit
that referenced
this issue
Oct 27, 2020
Add dl_iterate_phdr to some BSD OSs Add dl_iterate_phdr for freebsd, openbsd and netbsd: #1066 cc rust-lang/backtrace-rs#325
bors
added a commit
that referenced
this issue
Oct 27, 2020
Add dl_iterate_phdr to some BSD OSs Add dl_iterate_phdr for freebsd, openbsd and netbsd: #1066 cc rust-lang/backtrace-rs#325
JohnTitor
added a commit
to JohnTitor/libc
that referenced
this issue
Oct 27, 2020
Add dl_iterate_phdr to some BSD OSs Add dl_iterate_phdr for freebsd, openbsd and netbsd: rust-lang#1066 cc rust-lang/backtrace-rs#325
bors
added a commit
that referenced
this issue
Oct 27, 2020
Add dl_iterate_phdr to some BSD OSs Add dl_iterate_phdr for freebsd, openbsd and netbsd: #1066 cc rust-lang/backtrace-rs#325
It seems like #1953 added dl_iterate_phdir to all the
|
Haiku now has |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm writing a library around the
dl_iterate_phdr
API, and want it to be portable.I've noticed that
dl_iterate_phdr
, its types, and constants, are defined only on Linux and Fuchsia for now:AFAIK, all of this stuff if present on the BSDs. The ELF stuff is a standard ABI (although different for 32/64-bit arches) that could be shared across all platforms, but some of the types for
dl_iterate_phdr
differ per-platform. For example, on OpenBSDdl_phdr_info
contains more fields than on Linux.For now users can work around this by using bindgen, but in the long run I think it would be best for
libc
to implement these interfaces across all platforms.Thanks
The text was updated successfully, but these errors were encountered: