You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/aya-obj/src
Andrés 5894c4ce82
Fix load errors for empty (but existent) BTF/BTF.ext sections (#608)
* use the hdr_len of BTF.ext sections rather than size of struct

Otherwise this will erroneously fail on older btf_ext_header that have
less fields than the bindgen'd struct

* do not attempt to load a BTF object that has no types

* add tests

* fix: hdr_len i32 -> u32

* guard against a bigger header in the future

* use separate unsafe blocks

* simplify writing to zero'd out header

* merge safe block and address typo
2 years ago
..
btf Fix load errors for empty (but existent) BTF/BTF.ext sections (#608) 2 years ago
generated aya-obj: fix compilation with nightly 2 years ago
programs aya: flip feature "no_std" to feature "std" 2 years ago
lib.rs aya: flip feature "no_std" to feature "std" 2 years ago
maps.rs aya: flip feature "no_std" to feature "std" 2 years ago
obj.rs Fix load errors for empty (but existent) BTF/BTF.ext sections (#608) 2 years ago
relocation.rs Build tests with all features 2 years ago
util.rs aya: flip feature "no_std" to feature "std" 2 years ago