Comments (3)
DWARF split debuginfo splits the debuginfo into two parts. A part that is independent of the actual addresses at which each function ends up. This is what ends up in a separate file. And a part which glues the separate file together with the actual addresses of each function after linking. This part ends up in the final executable.
There is another way to do split debuginfo which is slower to link but does end up with all debuginfo in a separate file. This one is currently not supported by rustc. Adding support for this has been accepted, but not yet implemented: rust-lang/compiler-team#721 You can still do it manually by disabling split debuginfo and then using objcopy twice. One with --only-keep-debug
to extract the debuginfo into a separate file and once with --strip-debug
to remove the debuginfo from the executable.
from rust.
Thanks for the fast explanation! Not sure if you kept this open because you wanted it around as tracking for the implementation but feel free to close it otherwise as I consider my question answered.
from rust.
#105991 is probably a better issue for tracking this.
from rust.
Related Issues (20)
- ICE when triggering a malformed `diagnostic::on_unimplemented` across crate boundaries (`DefId(20:3 ~ ice_lib_test[60d0]::Test)` isn't local) HOT 1
- Ludicrous build time for `keshvar` crate in `release` mode HOT 4
- Imports of legacy modules with numeric constants do not get flagged as unused when the corresponding type is used in the code HOT 1
- When using `Box<self>` in first method parameter, the error output provides the wrong type in help message HOT 1
- `IoSlice`: the `Deref` impl is too restrictive on the lifetime of the slice, an alternative is needed. HOT 1
- Trait coherency regression in 1.78 HOT 3
- Type inference not working well with ptr mutability HOT 2
- GetSystemTimePreciseAsFileTime HOT 3
- Subpar documentation for ptr-to-ref conversion methods
- Compiler Panics ,when I use Ractor Framework HOT 4
- 1.78.0 & WASM - panicked at dlmalloc.rs: assertion failed: psize <= size + max_overhead HOT 5
- False positives from invalid_reference_casting HOT 6
- Nested argument mismatch could suggest moving extra parameter outside parenthesis HOT 3
- Explain the difference between Once(Lock|Cell) and Lazy(Lock|Cell) in the docs HOT 2
- ICE: `Result::unwrap()` on an `Err` value: Sorts(ExpectedFound { ... } HOT 1
- rustfmt eats attributes in inline const blogs HOT 2
- Sometimes 'Σ' is not handled correctly in str.to_lowercase() HOT 2
- Compiler Crash with "Hello world" on latest nightly (aarch64) HOT 2
- docs: Hermit targets link to wrong GitHub org
- Unable to write blanket impl for subtrait on RPITIT trait HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.