So I made a C script that defines a function for lets say it prints "hello" called hello()
And I link that C source file to my rust program using cc
finally i invoke the function after placing extern "C" somewhere in the script
the problem is, is that, no matter what rustc flag, cargo parameter, strip all, option i pass, i can't seem to get rid of the function symbol that shows up upon statically analyzing the binary.
how do i get rid of all function symbols including other public functions my c function may try to use?
Oh, if you just want to not have debug symbols for the C library only then you can use .debug(false) when compiling with the cc crate Build in cc - Rust