瀏覽代碼

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.
Amos Wenger 2 年之前
父節點
當前提交
a1e7b58d7c
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      bpf/aya-bpf-macros/src/expand.rs

+ 0 - 1
bpf/aya-bpf-macros/src/expand.rs

@@ -97,7 +97,6 @@ impl Map {
         let name = &self.name;
         let name = &self.name;
         let item = &self.item;
         let item = &self.item;
         Ok(quote! {
         Ok(quote! {
-            #[no_mangle]
             #[link_section = #section_name]
             #[link_section = #section_name]
             #[export_name = #name]
             #[export_name = #name]
             #item
             #item