[SERVER-41827] Enable -Wl,--gdb-index for dynamic builds using ld.gold Created: 19/Jun/19  Updated: 29/Oct/23  Resolved: 20/Jun/19

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2019-07-01
Participants:

 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.



 Comments   
Comment by Githook User [ 20/Jun/19 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-41827 Build GDB indexes for binaries when using ld.gold in dynamic mode
Branch: master
https://github.com/mongodb/mongo/commit/a0a70c53cc7a2b1f5bf4cfe48df7ca3b4a62a898

Generated at Thu Feb 08 04:58:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.