From a1e7b58d7c232177fe6f117d2465891b0b8dbc9b Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Fri, 20 May 2022 16:58:28 +0200 Subject: [PATCH] Don't use #[no_mangle] (clashes with `#[export_name]`) This closes #270. With this, the symbol name is correct in the intermediate LLVM bitcode object file (`.rcgu.o`) and in the final BPF program. --- bpf/aya-bpf-macros/src/expand.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/bpf/aya-bpf-macros/src/expand.rs b/bpf/aya-bpf-macros/src/expand.rs index df628711..77877140 100644 --- a/bpf/aya-bpf-macros/src/expand.rs +++ b/bpf/aya-bpf-macros/src/expand.rs @@ -97,7 +97,6 @@ impl Map { let name = &self.name; let item = &self.item; Ok(quote! { - #[no_mangle] #[link_section = #section_name] #[export_name = #name] #item