1
Fork 0

BPF: misc minor review fixes

This commit is contained in:
Alessandro Decina 2021-05-29 22:21:23 +10:00
parent bd8e5ce4b9
commit ab93a139ef
5 changed files with 11 additions and 11 deletions

View file

@ -12,6 +12,10 @@ pub fn opts(endian: Endian) -> TargetOptions {
no_builtins: true,
panic_strategy: PanicStrategy::Abort,
position_independent_executables: true,
// Disable MergeFunctions since:
// - older kernels don't support bpf-to-bpf calls
// - on newer kernels, userspace still needs to relocate before calling
// BPF_PROG_LOAD and not all BPF libraries do that yet
merge_functions: MergeFunctions::Disabled,
obj_is_bitcode: true,
requires_lto: false,