[SERVER-9761] Mongo executables should be built with '-z now' or equivalent on all nix platforms Created: 23/May/13  Updated: 21/Oct/22  Resolved: 23/Nov/13

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

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

Issue Links:
Depends
depends on SERVER-7404 Solaris file relocation error: posix_... Closed
depends on SERVER-9786 Missing external symbol strcasestr on... Closed
depends on SERVER-7080 On Solaris, link to backtrace() at ru... Closed
Related
related to SERVER-70839 Spawning dynamically linked mongod pr... Closed
Participants:

 Description   

We should force early symbol binding for our executables. There is no reason for us to fear the startup cost of doing so on modern hardware for long running processes, and a process with unresolvable symbols that is started successfully is a basically a time bomb.



 Comments   
Comment by auto [ 24/Jun/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-9761 Enforce immediate binding of all symbols at process startup
Branch: master
https://github.com/mongodb/mongo/commit/57a4875807ac0ff15f1a656afe3301e127a510fa

Comment by Andrew Morrow (Inactive) [ 14/Jun/13 ]

The analogous flag on OS X is -bind_at_load. I think this behavior is the default on windows.

Comment by Eric Milkie [ 23/May/13 ]

If we do this (and I think we should), running the current "Solaris" build on certain Solaris platforms such as Solaris 10 will no longer be possible. We'll have to have something ready prior to releasing this.

Generated at Thu Feb 08 03:21:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.