Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20540

Support compiling with split DWARF debug info

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.2.13, 3.4.4, 3.5.4
    • Build
    • None
    • Fully Compatible
    • v3.4, v3.2
    • Platforms 2017-03-27

    Description

      GCC and Clang support compiling the DWARF debugging information to separate .dwo files so that the .o files passed to the linker can remain relatively small. This only works when linking with gold.

      We need to compile with -gsplit-dwarf then add -Wl,--gdb-index to the link flags. Anecodotal reports on other projects (e.g. Chromium https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/8tKb9-Wr8gk) show that this can contribute to a 20-80% reduction in link time.

      more info https://gcc.gnu.org/wiki/DebugFission

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow
            adam.midvidy Adam Midvidy
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: