[SERVER-24504] Always use objcopy from the mongodbtoolchain Created: 09/Jun/16 Updated: 05/Jul/16 Resolved: 10/Jun/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.9 |
| Type: | Improvement | Priority: | Critical - P2 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Ernie Hershey |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Sprint: | Build 16 (06/24/16) | ||||
| Participants: | |||||
| Linked BF Score: | 0 | ||||
| Description |
|
Older versions of objcopy have a bug that drops the execute bit on PIE executables: https://sourceware.org/bugzilla/show_bug.cgi?id=10802 At least rhel55 has a system objcopy that suffers from this bug. Since we build our own objcopy as part of the toolchain build, we should specify it on the command line when invoking scons. The correct incantation is:
Note that we will need to do this for any project that builds MongoDB on rhel55, which includes the system performance and microbenchmark performance builders. |
| Comments |
| Comment by Ernie Hershey [ 13/Jun/16 ] |
|
Useful comments from Henrik -
|
| Comment by Githook User [ 10/Jun/16 ] |
|
Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}Message: |
| Comment by Githook User [ 10/Jun/16 ] |
|
Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}Message: |
| Comment by Andrew Morrow (Inactive) [ 09/Jun/16 ] |
|
Note, the commit for this fix should include reverting https://github.com/mongodb/mongo/commit/e1f383dedb77012d65cac4d19c5d30692c865909 |