Skip to content

Commit

Permalink
Note -Cstrip is not a security measure
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Apr 1, 2024
1 parent 4994f73 commit 1dcaf70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/doc/rustc/src/codegen-options/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,10 @@ Supported values for this option are:
Programs which may be combined with others, such as CLI pipelines and developer tooling,
or even anything which wants crash-reporting, should usually avoid `-Cstrip=symbols`.

Note that, at any level, removing debuginfo only necessarily impacts "friendly" introspection.
`-Cstrip` cannot be relied on as a meaningful security or obfuscation measure, as disassemblers
and decompilers can extract considerable information even in the absence of symbols.

## symbol-mangling-version

This option controls the [name mangling] format for encoding Rust item names
Expand Down

0 comments on commit 1dcaf70

Please sign in to comment.