diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-04-01 14:13:56 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-04-01 14:13:56 -0700 |
| commit | 1dcaf70c0e114aabb116114dac521f1014204527 (patch) | |
| tree | e398859571eddbd202c5d750f7b156cb6525ff9d | |
| parent | 4994f73a27260e837af98ef906d30d6e512bc52f (diff) | |
| download | rust-1dcaf70c0e114aabb116114dac521f1014204527.tar.gz rust-1dcaf70c0e114aabb116114dac521f1014204527.zip | |
Note -Cstrip is not a security measure
| -rw-r--r-- | src/doc/rustc/src/codegen-options/index.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md index 0f96f6cb2bc..c8f5d649570 100644 --- a/src/doc/rustc/src/codegen-options/index.md +++ b/src/doc/rustc/src/codegen-options/index.md @@ -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 |
