You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
isExecutable check for PHDR placement adjustment isn't reliable #165
This check is insufficient, as it only handles cases where the file has a PT_INTERP header, which means it won't run on static executables. Most static executables don't need to read AT_PHDR, but some do; e.g. static PIE executables.
This could alternately be handled by enforcing that PHDRs are always in the first page, which would also fix #153.
Actually, it looks like the #153 is already fixed in 63d0db9, so the impact of removing the isExecutable check altogether should be fairly minor at this point (barring other issues like #164).
The PR is at #166 but it would be great if someone can reproduce this on master (and ideally attach a binary to this issue and describe how to reproduce).
Activity
rcombs commentedon Mar 27, 2019
Actually, it looks like the #153 is already fixed in 63d0db9, so the impact of removing the
isExecutablecheck altogether should be fairly minor at this point (barring other issues like #164).domenkozar commentedon Mar 29, 2019
Since https://nixos.org/releases/patchelf/patchelf-0.10/ is out, this is fixed?
rcombs commentedon Mar 30, 2019
The issue persists in master. I'll be sending a PR with a few relevant changes shortly.
rewriteSectionsLibrary: assume all libraries may be executable; fixes N…
ararslan commentedon Aug 9, 2019
Is it? I opened #153 a year after that commit. 🤔
domenkozar commentedon Jun 9, 2020
The PR is at #166 but it would be great if someone can reproduce this on master (and ideally attach a binary to this issue and describe how to reproduce).
rewriteSectionsLibrary: assume all libraries may be executable; fixes N…