#Strip extern function symbols?

31 messages · Page 1 of 1 (latest)

golden tide
#
The Rust Programming Language Forum

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 r...

pastel vapor
#

why do you need to do that

#

and you are on windows right

#

which options have you tried

golden tide
golden tide
pastel vapor
#

what

golden tide
#

😐

pastel vapor
#

protection from what

#

stripping symbols doesnt stop people from reverse engineering things

#

what kind of dmca measures

golden tide
#

why does that matter, i still need to get rid of symbols, and this is only one step, ofc it wont stop reverse engineers

#

it's just the symbols provide a good concept of how my program works

pastel vapor
#

why do you need to stop people knowing how your program works

#

have you tried environment variables that cc uses to pass to the c compiler to strip the symbols from the compiled c

pastel vapor
#

maybe

golden tide
#

nah, that flag isn't specific to cl.exe

pastel vapor
#

not sure maybe #windows-dev knows

tawdry shadow
#

The only symbols you can see in a Windows binary are those exported from the binary

#

There is nothing to strip, as all debug symbols are in a separate .pdb file

#

some tools will automatically load the .pdb and show you symbols via the .pdb

#

and if something is being exported that you don't want exported, then there's a couple ways to solve that

pastel vapor
#

i thought some symbols are in the exe as well