Skip to content
Snippets Groups Projects
  1. Jun 24, 2021
    • Alex Richardson's avatar
      cmELF: Include the ELF parsing code unconditionally · 115ff6a3
      Alex Richardson authored and Brad King's avatar Brad King committed
      Now that the ELF definitions are provided on all platforms there is no
      need to keep the CMake_USE_ELF_PARSER option.
      115ff6a3
    • Alex Richardson's avatar
      cmELF: Allow building without system ELF headers · 5dfa3ddb
      Alex Richardson authored and Brad King's avatar Brad King committed
      Use ELF headers vendored in `Utilities/cmelf` to get the ELF constants
      and types. Using the same ELF definition header for all compilation
      targets allows removing some #ifdefs depending on the host OS since we
      know all required ELF constants will always be present. To reduce the
      size of this commit, the CMake_USE_ELF_PARSER definite will be removed
      in a separate commit.
      
      This allows me to use CMAKE_BUILD_WITH_INSTALL_RPATH=False and the Ninja
      generator on macOS, whereas before it would always give me the following
      error message (despite cross-compiling for an ELF-based platform):
      
      ```
      The install of the <name> target requires changing an RPATH from
        the build tree, but this is not supported with the Ninja generator unless
        on an ELF-based platform.  The CMAKE_BUILD_WITH_INSTALL_RPATH variable may
        be set to avoid this relinking step.
      ```
      5dfa3ddb
    • Alex Richardson's avatar
      cmELF: Fix check for TagMipsRldMapRel · 0da1540a
      Alex Richardson authored and Brad King's avatar Brad King committed
      DT_MIPS_RLD_MAP_REL is a machine-speicific dynamic tag, so other
      architectures could re-use the value of 0x70000035 to mean something
      else.  Before using DT_MIPS_RLD_MAP_REL, we have to check that the ELF
      file is actually has a e_machine of EM_MIPS.
      0da1540a
    • Brad King's avatar
      cmELF: Open file explicitly in binary mode · e21188df
      Brad King authored
      ELF is a binary format.
      e21188df
  2. Jun 23, 2021
  3. Jun 22, 2021
  4. Jun 21, 2021
Loading