When building via cargo build --release, symbols are still present:
checksec --file=$HOME/.local/bin/ta
RELRO STACK CANARY NX PIE RPATH RUNPATH Symbols FORTIFY Fortified Fortifiable FILE
Full RELRO Canary found NX enabled PIE enabled No RPATH No RUNPATH 19684) Symbols No 0 12
Perhaps good ol' RUSTFLAGS='-C link-arg=-s' cargo build --release will do as default release step?
When building via
cargo build --release, symbols are still present:Perhaps good ol'
RUSTFLAGS='-C link-arg=-s' cargo build --releasewill do as default release step?