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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: