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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • Dev Tools 2019-07-01

      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.

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

              Created:
              Updated:
              Resolved: