Previously cargo-bpf raises an error if the alignment of value is
greater than 8 bytes. But this is inappropriate to some BPF program that
never calls get/get_mut. Since calling these methods creates references
of possibly misaligned data, it is okay to permit values that have
alignment greater than 8 bytes if get/get_mut is not called anywhere in
BPF programs.
Find if get/get_mut method is called by inspecting LLVM bitcode and
raise an error.
Previously cargo-bpf raises an error if the alignment of value is greater than 8 bytes. But this is inappropriate to some BPF program that never calls get/get_mut. Since calling these methods creates references of possibly misaligned data, it is okay to permit values that have alignment greater than 8 bytes if get/get_mut is not called anywhere in BPF programs.
Find if get/get_mut method is called by inspecting LLVM bitcode and raise an error.
Signed-off-by: Junyeong Jeong rhdxmr@gmail.com