Skip to content

Commit 1dcaf70

Browse files
Note -Cstrip is not a security measure
1 parent 4994f73 commit 1dcaf70

File tree

1 file changed

+4
-0
lines changed
  • src/doc/rustc/src/codegen-options

1 file changed

+4
-0
lines changed

Diff for: src/doc/rustc/src/codegen-options/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,10 @@ Supported values for this option are:
561561
Programs which may be combined with others, such as CLI pipelines and developer tooling,
562562
or even anything which wants crash-reporting, should usually avoid `-Cstrip=symbols`.
563563

564+
Note that, at any level, removing debuginfo only necessarily impacts "friendly" introspection.
565+
`-Cstrip` cannot be relied on as a meaningful security or obfuscation measure, as disassemblers
566+
and decompilers can extract considerable information even in the absence of symbols.
567+
564568
## symbol-mangling-version
565569

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

0 commit comments

Comments
 (0)