[SERVER-49323] Evaluate feasibility and impact of enabling -fno-semantic-interposition Created: 07/Jul/20  Updated: 27/Oct/23  Resolved: 27/Oct/23

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

Type: New Feature Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Participants:

 Description   

The -fno-semantic-interposition flag significantly improves startup time for dynamically linked binaries by disabling support for symbol interposition (e.g. LD_PRELOAD. We should evaluate whether we think the loss of LD_PRELOAD functionality is justified by the performance gains. If we decide against doing so, we should consider building with -fsemantic-interposition, since clang defaults to -fno-semantic-interposition despite it generating binaries that are technically not in alignment with the ELF standard.



 Comments   
Comment by Githook User [ 23/Mar/21 ]

Author:

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

Message: SERVER-49323 Add experimental support for -fno-semantic-interposition
Branch: master
https://github.com/mongodb/mongo/commit/7387505ddf0bab58c07ccb0c573ff7fdf5116f49

Generated at Thu Feb 08 05:19:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.