Skip to content

Commit a3a8bd0

Browse files
yuki0iqsunfishcode
authored andcommitted
Add uapi bindings to elf.h (#137)
* Add uapi bindings to elf.h * Add note on `elf_uapi` and `elf` differences
1 parent 1fddb5e commit a3a8bd0

File tree

22 files changed

+9378
-1
lines changed

22 files changed

+9378
-1
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static_assertions = "1.1.0"
2121
libc = "0.2.100"
2222

2323
[package.metadata.docs.rs]
24-
features = ["default", "bootparam", "btrfs", "ioctl", "landlock", "netlink", "io_uring", "if_arp", "if_ether", "if_packet", "net", "ptrace", "prctl", "elf", "xdp", "mempolicy", "system", "loop_device"]
24+
features = ["default", "bootparam", "btrfs", "elf_uapi", "ioctl", "landlock", "netlink", "io_uring", "if_arp", "if_ether", "if_packet", "net", "ptrace", "prctl", "elf", "xdp", "mempolicy", "system", "loop_device"]
2525
targets = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"]
2626

2727
[lints.rust.unexpected_cfgs]
@@ -34,6 +34,7 @@ check-cfg = [
3434
[features]
3535
bootparam = []
3636
btrfs = []
37+
elf_uapi = []
3738
errno = []
3839
general = []
3940
if_arp = []

gen/modules/elf_uapi.h

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include "support.h"
2+
3+
#include <linux/elf.h>

0 commit comments

Comments
 (0)