Coder Social home page Coder Social logo

Comments (3)

bjorn3 avatar bjorn3 commented on May 31, 2024

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.

vlovich avatar vlovich commented on May 31, 2024

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.

bjorn3 avatar bjorn3 commented on May 31, 2024

#105991 is probably a better issue for tracking this.

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.