# \[Pre-RFC\] BTF relocations

**URL:** <https://internals.rust-lang.org/t/pre-rfc-btf-relocations/24161>\
**Category:** language design\
**Created:** [April 9, 2026, 10:21pm UTC](https://internals.rust-lang.org/t/pre-rfc-btf-relocations/24161 "2026-04-09T22:21:07Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![anakryiko](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/anakryiko/32/14270_2.png) [@anakryiko](https://internals.rust-lang.org/u/anakryiko)\
**Post date:** [April 23, 2026, 9:31pm UTC](https://internals.rust-lang.org/t/pre-rfc-btf-relocations/24161/20 "2026-04-23T21:31:43Z")

</div>

Oh, and I don't know if this is in scope or not, but it would be great to be able to express all of the [libbpf/src/bpf\_core\_read.h at master · libbpf/libbpf · GitHub](https://github.com/libbpf/libbpf/blob/master/src/bpf_core_read.h#L175-L294) in Rust through whatever is the most natural way. Checks for type/field existence and enum value retrieval is critical for some real-world applications, not just relocatable field accesses.

---

_[View the full topic](https://internals.rust-lang.org/t/pre-rfc-btf-relocations/24161)._
