Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24504

Always use objcopy from the mongodbtoolchain

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.3.9
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • Build 16 (06/24/16)
    • 0

      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:

      scons OBJCOPY=/opt/mongodbtoolchain/v2/bin/objcopy ...
      

      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.

            Assignee:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: