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.
pull/274/head^2
Amos Wenger 2 years ago committed by Alessandro Decina
parent 9904237ac1
commit a1e7b58d7c

@ -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

Loading…
Cancel
Save