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

Enable -Wl,--gdb-index for dynamic builds using ld.gold

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Build
    • None
    • Fully Compatible
    • Dev Tools 2019-07-01

    Description

      In the review for SERVER-20540 we declined to always apply -Wl,--gdb-index to automatically produce GDB index information during link because the link-time cost was too high. However, the cost of doing so for dynamic builds is likely negligible since indexing doesn't need to examine nearly as much debug info.

      On the other hand, startup time in GDB for binaries produced in dynamic builds is already very slow.

      For dynamic builds, which are primarily used in developer builds, we should always build the GDB index to accelerate GDB startup.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: