Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a custom built dynamic loader #866

Merged
merged 6 commits into from Jul 16, 2014

Commits on Jul 16, 2014

  1. Add support for a custom built dynamic loader

    - Add PatchELF utility for patching ELF binaries in post-install
      step.
    - Do ELF relocation for bin/$SCRAM_ARCH and test/$SCRAM_ARCH using
      CMS_INSTALL_PREFIX.
    - Relocation is only done for slc6_amd64_* (current production
      architecture for CMSSW_7_2_X).
    
    Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
    David Abdurachmanov authored and David Abdurachmanov committed Jul 16, 2014
    Copy the full SHA
    fe78b2c View commit details
    Browse the repository at this point in the history
  2. Add Linux guards; remove LDFLAGS from C compiler

    Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
    David Abdurachmanov authored and David Abdurachmanov committed Jul 16, 2014
    Copy the full SHA
    8a85324 View commit details
    Browse the repository at this point in the history
  3. Add Linux guard macros around glibc in gcc-toolfile

    Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
    David Abdurachmanov authored and David Abdurachmanov committed Jul 16, 2014
    Copy the full SHA
    3a2c060 View commit details
    Browse the repository at this point in the history
  4. cmssw-tool-conf: remove duplicate

    Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
    David Abdurachmanov authored and David Abdurachmanov committed Jul 16, 2014
    Copy the full SHA
    d187ed2 View commit details
    Browse the repository at this point in the history
  5. Relocate only binaries with a custom glibc

    - BuildFile must add LDFLAGS rule for a custom dynamic loader
    - We only relocate ELF binaries, which were built with a dynamic
      loader from CMSDIST
    
    Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
    David Abdurachmanov authored and David Abdurachmanov committed Jul 16, 2014
    Copy the full SHA
    5192113 View commit details
    Browse the repository at this point in the history
  6. Cleanup not needed parts

    - Drop hard dependency on glibc in gcc-toolfile.spec
    - Remove a switch allowing to control post-install relocation.
      Everything is now done based on .interp section content.
      If ELF binary has .interp with $SCRAM_ARCH/external/glibc in
      path we then do post-install relocation on it.
    
    Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
    David Abdurachmanov authored and David Abdurachmanov committed Jul 16, 2014
    Copy the full SHA
    7c29bc9 View commit details
    Browse the repository at this point in the history