Skip to content

Commit

Permalink
staticx: Silence annoying ldd warning in glibc hook
Browse files Browse the repository at this point in the history
This was previously fixed for PyInstaller hook:
f2e9d46
  • Loading branch information
JonathonReinhart committed Oct 14, 2021
1 parent 85c46af commit 9d2cfca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions staticx/hooks/glibc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from ..assets import copy_asset_to_tempfile
from ..errors import InternalError
from ..elf import open_elf, get_shobj_deps, patch_elf
from ..utils import make_executable
from elftools.elf.gnuversions import GNUVerNeedSection
import logging

Expand Down Expand Up @@ -29,6 +30,9 @@ def process_glibc_prog(sx):
# operates on the *original* executable and not the copied/modified one,
# (see dfa201b07e) so it doesn't see changes made here.
with nssfix:
# Silence "you do not have execution permission" warning from ldd
make_executable(nssfix.name)

# TODO: Don't use sxar
sx.sxar.add_fileobj(LIBNSSFIX, nssfix)
for libpath in get_shobj_deps(nssfix.name):
Expand Down

0 comments on commit 9d2cfca

Please sign in to comment.