Skip to content
Unverified Commit 9920215d authored by aszlig's avatar aszlig
Browse files

autoPatchelfHook: Only check PT_INTERP on execs



If the ELF file is not an executable, we do not get a PT_INTERP section,
because after all, it's a *shared* library.

So instead of checking for PT_INTERP (to avoid statically linked
executables) for all ELF files, we add another check to see if it's an
executable and *only* skip it when it is and there's no PT_INTERP.

Signed-off-by: default avataraszlig <aszlig@nix.build>
parent 58a97dfb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment