mirror of https://github.com/aya-rs/aya
aya: introduce include_bytes_aligned!() macro
This is a helper macro that can be used to include bytes at compile-time that can then be used in Bpf::load(). Unlike std's include_bytes!(), this macro also ensures that the resulting byte array is correctly aligned so that it can be parsed as an ELF binary. Signed-off-by: William Findlay <william@williamfindlay.com>pull/76/head
parent
c99dcfb9d3
commit
4df4e9c14e
Loading…
Reference in New Issue