Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/patchelf
base: d2e81f04839f
Choose a base ref
...
head repository: NixOS/patchelf
compare: 47dc18d0e5c1
Choose a head ref
  • 3 commits
  • 4 files changed
  • 2 contributors

Commits on Oct 4, 2020

  1. Fix endianness issues for powerpc PIE

    Previously when running `patchelf --set-rpath "/usr/sbin" my_bin` on a
    PIE ppc32 binary that had no RPATH a few issues were encountered.
    
    This commit fixes:
    
    1. The PT_PHDR being sorted improperly due to the type being read in
       incorrect endianness
    
    2. The aligment being set to default 0x1000 due to the machine arch
       being read in incorrect endianness
    
    3. The interpreter being clobbered due to the replace sections routine
       reading sh_offset and sh_size in incorrect endianness
    
    4. The PHDR segment having an incorrect virt and phys address due to
       reading the e_phoff in the incorrect endianness
    
    This also fixes a read of the shdr.sh_type in writeReplacedSections but
    this was not encountered during testing.
    ratschance committed Oct 4, 2020
    Copy the full SHA
    884eccc View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    b04764d View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2020

  1. Merge pull request #245 from ratschance/BUGFIX-fix-ppc32-issues-with-…

    …pie-bins
    
    BUGFIX: Fix endianness issues with PIE binaries
    edolstra committed Oct 5, 2020
    Copy the full SHA
    47dc18d View commit details
    Browse the repository at this point in the history