[SERVER-70555] disable unnecessary use of -fdebug-types-section Created: 13/Oct/22  Updated: 27/Nov/22  Resolved: 16/Nov/22

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

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

Issue Links:
Duplicate
duplicates SERVER-71209 Prefer 64-bit dwarf to fdebug-types-s... Closed
Related
is related to SERVER-68475 Find solution to relocation overflow ... Closed
Participants:

 Description   

In SERVER-68475 we started using `-fdebug-types-section` to get around debug info limits. this flags makes the debug info less useable for certain softwares and several bugs have been reported about the reliability of the debug info.

We should only use this flag if necessary, which as far as my testing from SERVER-68475 goes, was just v3 gcc (dwarf4) static builds without split dwarf.

We should at most only use it in v3 gcc dwarf4 static builds. I am not sure about the relationship with split-dwarf.



 Comments   
Comment by Andrew Morrow (Inactive) [ 16/Nov/22 ]

I'm closing this as a duplicate of SERVER-71209, where we are tackling things slightly differently: opting into 64-bit DWARF when available, and suppressing -fdebug-types-section when the opt-in works.

Comment by Andrew Morrow (Inactive) [ 24/Oct/22 ]

Now that we have the SCons DWARF_VERSION Environment variable, it should be trivial to check whether or not to apply -fdebug-types-section in the SConstruct, and leave the choice of which dwarf version to use to the vars files (as we currently do).

Generated at Thu Feb 08 06:16:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.