starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phase `set-paths' environment variable `PATH' set to `/gnu/store/99c25918hl9pihix8hparmc96q6zrpwy-tar-1.34/bin:/gnu/store/l0yga4lrwwf74rz7fb0dadglg27ajpsx-gzip-1.10/bin:/gnu/store/ihakfb51zdgjz3v9nkj0ja9zk9ng8xzl-bzip2-1.0.8/bin:/gnu/store/fk24dx8qz1b5smnc4ljfw25xn7yjps0q-xz-5.2.5/bin:/gnu/store/vl1b3nq6gijpzbl03zq92m5dwgs17nik-file-5.39/bin:/gnu/store/h0rx6y95zin61fp5wlyjly4g9j2hma18-diffutils-3.8/bin:/gnu/store/7j8j7m0kgb7kv2fc18qvrdj7gs3jc4mx-patch-2.7.6/bin:/gnu/store/x4yglk9pn2s2ixl1b4lj151bd2yvlgww-findutils-4.8.0/bin:/gnu/store/vzq0il5z2d6ksllb525m9xaqzv829g3k-gawk-5.1.0/bin:/gnu/store/cnwr7widbi6470kfyb13krx46kz5anmy-sed-4.8/bin:/gnu/store/bx47clwnxn51m7jdwfimz4lw2fh8g21v-grep-3.6/bin:/gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin:/gnu/store/dhx00nrv9r52f6xivg0xa4iihpl9awyk-make-4.3/bin:/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin:/gnu/store/4bzvr16pyax9224v9r72rqxswj9931sb-ld-wrapper-0/bin:/gnu/store/v4a7zw8w52v64kw5781ypa8gjwd098jz-binutils-2.37/bin:/gnu/store/v5xfd4vy1lvqikdl1rzs8aklgsnqwd26-gcc-10.3.0/bin:/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/bin:/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/sbin' environment variable `C_INCLUDE_PATH' set to `/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/include:/gnu/store/ihakfb51zdgjz3v9nkj0ja9zk9ng8xzl-bzip2-1.0.8/include:/gnu/store/fk24dx8qz1b5smnc4ljfw25xn7yjps0q-xz-5.2.5/include:/gnu/store/vl1b3nq6gijpzbl03zq92m5dwgs17nik-file-5.39/include:/gnu/store/vzq0il5z2d6ksllb525m9xaqzv829g3k-gawk-5.1.0/include:/gnu/store/dhx00nrv9r52f6xivg0xa4iihpl9awyk-make-4.3/include:/gnu/store/v4a7zw8w52v64kw5781ypa8gjwd098jz-binutils-2.37/include:/gnu/store/v5xfd4vy1lvqikdl1rzs8aklgsnqwd26-gcc-10.3.0/include:/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/include:/gnu/store/wsx4kz1gh6cpdhx393frhqknmswbggq8-linux-libre-headers-5.10.35/include' environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/include:/gnu/store/ihakfb51zdgjz3v9nkj0ja9zk9ng8xzl-bzip2-1.0.8/include:/gnu/store/fk24dx8qz1b5smnc4ljfw25xn7yjps0q-xz-5.2.5/include:/gnu/store/vl1b3nq6gijpzbl03zq92m5dwgs17nik-file-5.39/include:/gnu/store/vzq0il5z2d6ksllb525m9xaqzv829g3k-gawk-5.1.0/include:/gnu/store/dhx00nrv9r52f6xivg0xa4iihpl9awyk-make-4.3/include:/gnu/store/v4a7zw8w52v64kw5781ypa8gjwd098jz-binutils-2.37/include:/gnu/store/v5xfd4vy1lvqikdl1rzs8aklgsnqwd26-gcc-10.3.0/include/c++:/gnu/store/v5xfd4vy1lvqikdl1rzs8aklgsnqwd26-gcc-10.3.0/include:/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/include:/gnu/store/wsx4kz1gh6cpdhx393frhqknmswbggq8-linux-libre-headers-5.10.35/include' environment variable `LIBRARY_PATH' set to `/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib:/gnu/store/ihakfb51zdgjz3v9nkj0ja9zk9ng8xzl-bzip2-1.0.8/lib:/gnu/store/fk24dx8qz1b5smnc4ljfw25xn7yjps0q-xz-5.2.5/lib:/gnu/store/vl1b3nq6gijpzbl03zq92m5dwgs17nik-file-5.39/lib:/gnu/store/vzq0il5z2d6ksllb525m9xaqzv829g3k-gawk-5.1.0/lib:/gnu/store/v4a7zw8w52v64kw5781ypa8gjwd098jz-binutils-2.37/lib:/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/1s4k8h3h1ka9za4yzg0dfjnlhab5k14p-glibc-2.33-static/lib:/gnu/store/6p5m4cv8psfzy5xn5yhvhmjl261wg34m-glibc-utf8-locales-2.33/lib' environment variable `BASH_LOADABLES_PATH' unset environment variable `GUIX_LOCPATH' set to `/gnu/store/6p5m4cv8psfzy5xn5yhvhmjl261wg34m-glibc-utf8-locales-2.33/lib/locale' phase `set-paths' succeeded after 0.0 seconds starting phase `install-locale' using 'en_US.utf8' locale for category "LC_ALL" phase `install-locale' succeeded after 0.0 seconds starting phase `unpack' patchelf-0.11.20200609.d6b2a72/ patchelf-0.11.20200609.d6b2a72/build-aux/ patchelf-0.11.20200609.d6b2a72/build-aux/depcomp patchelf-0.11.20200609.d6b2a72/build-aux/install-sh patchelf-0.11.20200609.d6b2a72/build-aux/missing patchelf-0.11.20200609.d6b2a72/build-aux/compile patchelf-0.11.20200609.d6b2a72/Makefile.am patchelf-0.11.20200609.d6b2a72/src/ patchelf-0.11.20200609.d6b2a72/src/Makefile.in patchelf-0.11.20200609.d6b2a72/src/elf.h patchelf-0.11.20200609.d6b2a72/src/Makefile.am patchelf-0.11.20200609.d6b2a72/src/patchelf.cc patchelf-0.11.20200609.d6b2a72/patchelf.spec patchelf-0.11.20200609.d6b2a72/COPYING patchelf-0.11.20200609.d6b2a72/Makefile.in patchelf-0.11.20200609.d6b2a72/version patchelf-0.11.20200609.d6b2a72/patchelf.1 patchelf-0.11.20200609.d6b2a72/configure.ac patchelf-0.11.20200609.d6b2a72/aclocal.m4 patchelf-0.11.20200609.d6b2a72/README.md patchelf-0.11.20200609.d6b2a72/patchelf.spec.in patchelf-0.11.20200609.d6b2a72/configure patchelf-0.11.20200609.d6b2a72/tests/ patchelf-0.11.20200609.d6b2a72/tests/set-rpath-library.sh patchelf-0.11.20200609.d6b2a72/tests/set-interpreter-short.sh patchelf-0.11.20200609.d6b2a72/tests/set-interpreter-long.sh patchelf-0.11.20200609.d6b2a72/tests/foo.c patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/ patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-kfreebsd-i386 patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-i386 patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-kfreebsd-amd64 patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-mipsel patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-sparc patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-sh4 patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-armel patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-ia64 patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-amd64 patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-powerpc patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-s390 patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-armhf patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-hurd-i386 patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild/no-rpath-mips patchelf-0.11.20200609.d6b2a72/tests/shrink-rpath-with-allowed-prefixes.sh patchelf-0.11.20200609.d6b2a72/tests/no-rpath.c patchelf-0.11.20200609.d6b2a72/tests/bar.c patchelf-0.11.20200609.d6b2a72/tests/main.c patchelf-0.11.20200609.d6b2a72/tests/soname.sh patchelf-0.11.20200609.d6b2a72/tests/shrink-rpath.sh patchelf-0.11.20200609.d6b2a72/tests/plain-run.sh patchelf-0.11.20200609.d6b2a72/tests/plain-fail.sh patchelf-0.11.20200609.d6b2a72/tests/no-rpath-prebuild.sh patchelf-0.11.20200609.d6b2a72/tests/Makefile.am patchelf-0.11.20200609.d6b2a72/tests/simple.c patchelf-0.11.20200609.d6b2a72/tests/big-dynstr.sh patchelf-0.11.20200609.d6b2a72/tests/force-rpath.sh patchelf-0.11.20200609.d6b2a72/tests/set-rpath.sh patchelf-0.11.20200609.d6b2a72/tests/Makefile.in patchelf-0.11.20200609.d6b2a72/tests/no-rpath.sh patchelf-0.11.20200609.d6b2a72/tests/output-flag.sh phase `unpack' succeeded after 0.0 seconds starting phase `fix-tests' phase `fix-tests' succeeded after 0.0 seconds starting phase `bootstrap' GNU build system bootstrapping not needed phase `bootstrap' succeeded after 0.0 seconds starting phase `patch-usr-bin-file' phase `patch-usr-bin-file' succeeded after 0.0 seconds starting phase `patch-source-shebangs' patch-shebang: ./build-aux/compile: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./build-aux/depcomp: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./build-aux/install-sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./build-aux/missing: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./configure: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/big-dynstr.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/force-rpath.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/no-rpath-prebuild.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/no-rpath.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/output-flag.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/plain-fail.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/plain-run.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/set-interpreter-long.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/set-interpreter-short.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/set-rpath-library.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/set-rpath.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/shrink-rpath-with-allowed-prefixes.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/shrink-rpath.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' patch-shebang: ./tests/soname.sh: changing `/bin/sh' to `/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/sh' phase `patch-source-shebangs' succeeded after 0.0 seconds starting phase `configure' source directory: "/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72" (relative from build: ".") build directory: "/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72" configure flags: ("CONFIG_SHELL=/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/bash" "SHELL=/gnu/store/7s2zlc4r9wqvlh9x2gqmzm4lnmbsdzmn-bash-minimal-5.1.8/bin/bash" "--prefix=/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11" "--enable-fast-install" "--build=i686-unknown-linux-gnu") configure: WARNING: unrecognized options: --enable-fast-install checking for a BSD-compatible install... /gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... no checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 Setting page size to 4096 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating patchelf.spec config.status: executing depfiles commands configure: WARNING: unrecognized options: --enable-fast-install phase `configure' succeeded after 1.4 seconds starting phase `patch-generated-file-shebangs' phase `patch-generated-file-shebangs' succeeded after 0.0 seconds starting phase `build' Making all in src make[1]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/src' g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11.20200609.d6b2a72\" -DPACKAGE_STRING=\"patchelf\ 0.11.20200609.d6b2a72\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11.20200609.d6b2a72\" -DPAGESIZE=4096 -I. -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -g -O2 -MT patchelf.o -MD -MP -MF .deps/patchelf.Tpo -c -o patchelf.o patchelf.cc In file included from /gnu/store/v5xfd4vy1lvqikdl1rzs8aklgsnqwd26-gcc-10.3.0/include/c++/cassert:44, from patchelf.cc:32: patchelf.cc: In instantiation of ‘void ElfFile::rewriteSectionsLibrary() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long long unsigned int; Elf_Off = long long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Verneed = Elf64_Verneed]’: patchelf.cc:909:9: required from ‘void ElfFile::rewriteSections() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long long unsigned int; Elf_Off = long long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Verneed = Elf64_Verneed]’ patchelf.cc:1601:32: required from ‘void patchElf2(ElfFile&&, const FileContents&, std::string) [with ElfFile = ElfFile; FileContents = std::shared_ptr >; std::string = std::__cxx11::basic_string]’ patchelf.cc:1624:171: required from here patchelf.cc:770:19: warning: comparison of integer expressions of different signedness: ‘long long unsigned int’ and ‘off_t’ {aka ‘long long int’} [-Wsign-compare] 770 | assert(curOff == startOffset + neededSpace); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/patchelf.Tpo .deps/patchelf.Po g++ -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -g -O2 -o patchelf patchelf.o make[1]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/src' Making all in tests make[1]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make[1]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72' phase `build' succeeded after 13.4 seconds starting phase `check' Making check in src make[1]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/src' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/src' Making check in tests make[1]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make simple main main-scoped big-dynstr no-rpath libfoo.so libfoo-scoped.so libbar.so libbar-scoped.so libsimple.so make[2]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11.20200609.d6b2a72\" -DPACKAGE_STRING=\"patchelf\ 0.11.20200609.d6b2a72\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11.20200609.d6b2a72\" -DPAGESIZE=4096 -I. -g -O2 -MT simple-simple.o -MD -MP -MF .deps/simple-simple.Tpo -c -o simple-simple.o `test -f 'simple.c' || echo './'`simple.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11.20200609.d6b2a72\" -DPACKAGE_STRING=\"patchelf\ 0.11.20200609.d6b2a72\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11.20200609.d6b2a72\" -DPAGESIZE=4096 -I. -fpic -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11.20200609.d6b2a72\" -DPACKAGE_STRING=\"patchelf\ 0.11.20200609.d6b2a72\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11.20200609.d6b2a72\" -DPAGESIZE=4096 -I. -fpic -g -O2 -MT foo.o -MD -MP -MF .deps/foo.Tpo -c -o foo.o foo.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11.20200609.d6b2a72\" -DPACKAGE_STRING=\"patchelf\ 0.11.20200609.d6b2a72\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11.20200609.d6b2a72\" -DPAGESIZE=4096 -I. -fpic -g -O2 -MT bar.o -MD -MP -MF .deps/bar.Tpo -c -o bar.o bar.c cat main.c > big-dynstr.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11.20200609.d6b2a72\" -DPACKAGE_STRING=\"patchelf\ 0.11.20200609.d6b2a72\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11.20200609.d6b2a72\" -DPAGESIZE=4096 -I. -g -O2 -MT no_rpath-no-rpath.o -MD -MP -MF .deps/no_rpath-no-rpath.Tpo -c -o no_rpath-no-rpath.o `test -f 'no-rpath.c' || echo './'`no-rpath.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11.20200609.d6b2a72\" -DPACKAGE_STRING=\"patchelf\ 0.11.20200609.d6b2a72\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11.20200609.d6b2a72\" -DPAGESIZE=4096 -I. -fpic -g -O2 -MT simple.o -MD -MP -MF .deps/simple.Tpo -c -o simple.o simple.c for i in $(seq 1 2000); do echo "void f$i(void) { };" >> big-dynstr.c; done mv -f .deps/foo.Tpo .deps/foo.Po mv -f .deps/simple-simple.Tpo .deps/simple-simple.Po mv -f .deps/bar.Tpo .deps/bar.Po mv -f .deps/main.Tpo .deps/main.Po mv -f .deps/no_rpath-no-rpath.Tpo .deps/no_rpath-no-rpath.Po mv -f .deps/simple.Tpo .deps/simple.Po gcc -g -O2 -o simple simple-simple.o gcc -fpic -g -O2 -Wl,--disable-new-dtags -shared -L. -Wl,-rpath,`pwd`/no-such-path -o libbar.so bar.o gcc -fpic -g -O2 -Wl,--disable-new-dtags -shared -L. -o libbar-scoped.so bar.o gcc -fpic -g -O2 -Wl,--disable-new-dtags -shared -L. -o libsimple.so simple.o gcc -g -O2 -o no-rpath no_rpath-no-rpath.o gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11.20200609.d6b2a72\" -DPACKAGE_STRING=\"patchelf\ 0.11.20200609.d6b2a72\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11.20200609.d6b2a72\" -DPAGESIZE=4096 -I. -fpic -g -O2 -MT big-dynstr.o -MD -MP -MF .deps/big-dynstr.Tpo -c -o big-dynstr.o big-dynstr.c make[2]: 'libbar.so' is up to date. make[2]: 'libbar-scoped.so' is up to date. gcc -fpic -g -O2 -Wl,--disable-new-dtags -shared -L. -o libfoo.so foo.o -lbar gcc -fpic -g -O2 -Wl,--disable-new-dtags -shared -L. -o libfoo-scoped.so foo.o -lbar-scoped make[2]: 'libfoo.so' is up to date. make[2]: 'libfoo-scoped.so' is up to date. gcc -fpic -g -O2 -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -o main main.o -lfoo gcc -fpic -g -O2 -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -o main-scoped main.o -lfoo-scoped mv -f .deps/big-dynstr.Tpo .deps/big-dynstr.Po gcc -fpic -g -O2 -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -o big-dynstr big-dynstr.o -lfoo make[2]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make check-TESTS make[2]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' ./main: error while loading shared libraries: libfoo.so: cannot open shared object file: No such file or directory PASS: plain-fail.sh Hello World This is foo()! This is bar()! Result is 46 PASS: plain-run.sh Kernel page size is 4096 bytes RPATH before: /tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/no-such-path:/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib patching ELF file 'scratch/shrink-rpath/libbar.so' Kernel page size is 4096 bytes removing directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/no-such-path' from RPATH removing directory '/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib' from RPATH new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib' writing scratch/shrink-rpath/libbar.so Kernel page size is 4096 bytes RPATH after: /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib Hello World This is foo()! This is bar()! Result is 46 PASS: shrink-rpath.sh Hello World Kernel page size is 4096 bytes current interpreter is /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 patching ELF file 'scratch/set-interpreter-short/simple' Kernel page size is 4096 bytes replacing section '.interp' with size 6 this is an executable using replaced section '.interp' last replaced is 1 looking at section '.interp' first reserved offset/addr is 0x200/0x8048200 first page is 0x8048000 needed space is 444 clearing first 76 bytes rewriting section '.interp' from offset 0x1b4 (size 73) to offset 0x1b4 (size 6) rewriting symbol table section 6 rewriting symbol table section 27 writing scratch/set-interpreter-short/simple running with missing interpreter... ./set-interpreter-short.sh: line 16: scratch/set-interpreter-short/simple: No such file or directory PASS: set-interpreter-short.sh Hello World Kernel page size is 4096 bytes current interpreter is /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 running with explicit interpreter... Hello World patching ELF file 'scratch/set-interpreter-long/simple' Kernel page size is 4096 bytes replacing section '.interp' with size 203 this is an executable using replaced section '.interp' last replaced is 1 looking at section '.interp' first reserved offset/addr is 0x200/0x8048200 first page is 0x8048000 needed space is 640 needed space is 672 needed pages is 1 clearing first 4140 bytes rewriting section '.interp' from offset 0x11b4 (size 73) to offset 0x1d4 (size 203) rewriting symbol table section 6 rewriting symbol table section 27 writing scratch/set-interpreter-long/simple running with missing interpreter... ./set-interpreter-long.sh: line 22: scratch/set-interpreter-long/simple: No such file or directory running with new interpreter... Hello World running with explicit interpreter... Hello World PASS: set-interpreter-long.sh Kernel page size is 4096 bytes patching ELF file 'scratch/set-rpath/main' Kernel page size is 4096 bytes new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/set-rpath/libsA:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/set-rpath/libsB' rpath is too long, resizing... replacing section '.dynstr' with size 673 this is an executable using replaced section '.dynstr' last replaced is 7 looking at section '.interp' replacing section '.interp' which is in the way looking at section '.note.gnu.property' replacing section '.note.gnu.property' which is in the way looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' first reserved offset/addr is 0x43a/0x804843a first page is 0x8048000 needed space is 1464 needed space is 1496 needed pages is 1 clearing first 4710 bytes rewriting section '.dynstr' from offset 0x1314 (size 294) to offset 0x1d4 (size 673) rewriting section '.dynsym' from offset 0x12a4 (size 112) to offset 0x478 (size 112) rewriting section '.gnu.hash' from offset 0x1284 (size 32) to offset 0x4e8 (size 32) rewriting section '.hash' from offset 0x1254 (size 48) to offset 0x508 (size 48) rewriting section '.interp' from offset 0x11b4 (size 73) to offset 0x538 (size 73) rewriting section '.note.ABI-tag' from offset 0x1234 (size 32) to offset 0x584 (size 32) rewriting section '.note.gnu.property' from offset 0x1200 (size 52) to offset 0x5a4 (size 52) rewriting symbol table section 2 rewriting symbol table section 27 writing scratch/set-rpath/main Hello World This is foo()! This is bar()! Result is 46 PASS: set-rpath.sh Kernel page size is 4096 bytes Kernel page size is 4096 bytes patching ELF file 'scratch/no-rpath/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib' replacing section '.interp' with size 73 this is an executable using replaced section '.interp' last replaced is 1 looking at section '.interp' first reserved offset/addr is 0x200/0x8048200 first page is 0x8048000 needed space is 512 clearing first 76 bytes rewriting section '.interp' from offset 0x1b4 (size 73) to offset 0x1b4 (size 73) rewriting symbol table section 6 rewriting symbol table section 27 writing scratch/no-rpath/no-rpath Kernel page size is 4096 bytes Hello world PASS: no-rpath.sh Kernel page size is 4096 bytes patching ELF file 'scratch/big-dynstr/big-dynstr' Kernel page size is 4096 bytes new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/big-dynstr/libsA:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/big-dynstr/libsB' rpath is too long, resizing... replacing section '.dynstr' with size 675 this is an executable using replaced section '.dynstr' last replaced is 7 looking at section '.interp' replacing section '.interp' which is in the way looking at section '.note.gnu.property' replacing section '.note.gnu.property' which is in the way looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' first reserved offset/addr is 0x43a/0x804843a first page is 0x8048000 needed space is 1464 needed space is 1496 needed pages is 1 clearing first 4710 bytes rewriting section '.dynstr' from offset 0x1314 (size 294) to offset 0x1d4 (size 675) rewriting section '.dynsym' from offset 0x12a4 (size 112) to offset 0x478 (size 112) rewriting section '.gnu.hash' from offset 0x1284 (size 32) to offset 0x4e8 (size 32) rewriting section '.hash' from offset 0x1254 (size 48) to offset 0x508 (size 48) rewriting section '.interp' from offset 0x11b4 (size 73) to offset 0x538 (size 73) rewriting section '.note.ABI-tag' from offset 0x1234 (size 32) to offset 0x584 (size 32) rewriting section '.note.gnu.property' from offset 0x1200 (size 52) to offset 0x5a4 (size 52) rewriting symbol table section 2 rewriting symbol table section 27 writing scratch/big-dynstr/big-dynstr Hello World This is foo()! This is bar()! Result is 46 PASS: big-dynstr.sh Kernel page size is 4096 bytes patching ELF file 'scratch/set-rpath-library/main-scoped' Kernel page size is 4096 bytes new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/set-rpath-library/libsA:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/set-rpath-library/libsB' rpath is too long, resizing... replacing section '.dynstr' with size 696 this is an executable using replaced section '.dynstr' last replaced is 7 looking at section '.interp' replacing section '.interp' which is in the way looking at section '.note.gnu.property' replacing section '.note.gnu.property' which is in the way looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' first reserved offset/addr is 0x442/0x8048442 first page is 0x8048000 needed space is 1484 needed space is 1516 needed pages is 1 clearing first 4718 bytes rewriting section '.dynstr' from offset 0x1314 (size 301) to offset 0x1d4 (size 696) rewriting section '.dynsym' from offset 0x12a4 (size 112) to offset 0x48c (size 112) rewriting section '.gnu.hash' from offset 0x1284 (size 32) to offset 0x4fc (size 32) rewriting section '.hash' from offset 0x1254 (size 48) to offset 0x51c (size 48) rewriting section '.interp' from offset 0x11b4 (size 73) to offset 0x54c (size 73) rewriting section '.note.ABI-tag' from offset 0x1234 (size 32) to offset 0x598 (size 32) rewriting section '.note.gnu.property' from offset 0x1200 (size 52) to offset 0x5b8 (size 52) rewriting symbol table section 2 rewriting symbol table section 27 writing scratch/set-rpath-library/main-scoped ./main-scoped: error while loading shared libraries: libbar-scoped.so: cannot open shared object file: No such file or directory Kernel page size is 4096 bytes patching ELF file 'scratch/set-rpath-library/libsA/libfoo-scoped.so' Kernel page size is 4096 bytes new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/set-rpath-library/libsB' rpath is too long, resizing... replacing section '.dynstr' with size 662 this is a dynamic library last page is 0x5000 needed space is 720 rewriting section '.dynstr' from offset 0x2a0 (size 372) to offset 0x4000 (size 662) rewriting section '.hash' from offset 0x1b4 (size 56) to offset 0x4298 (size 56) rewriting symbol table section 2 rewriting symbol table section 25 writing scratch/set-rpath-library/libsA/libfoo-scoped.so Hello World This is foo()! This is bar()! Result is 46 patching ELF file 'scratch/set-rpath-library/main-scoped' Kernel page size is 4096 bytes removing directory '/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib' from RPATH removing directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/set-rpath-library/libsB' from RPATH new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/set-rpath-library/libsA' writing scratch/set-rpath-library/main-scoped Kernel page size is 4096 bytes Hello World This is foo()! This is bar()! Result is 46 PASS: set-rpath-library.sh patching ELF file 'scratch/soname/libsimple.so' Kernel page size is 4096 bytes new SONAME is 'libsimple.so.1.0' SONAME is too long, resizing... DT_NULL index is 26 replacing section '.dynamic' with size 256 replacing section '.dynstr' with size 347 this is a dynamic library last page is 0x1005000 needed space is 656 rewriting section '.dynamic' from offset 0x2ef8 (size 248) to offset 0x4000 (size 256) rewriting section '.dynstr' from offset 0x24c (size 330) to offset 0x4100 (size 347) rewriting section '.hash' from offset 0x174 (size 52) to offset 0x425c (size 52) rewriting symbol table section 2 rewriting symbol table section 23 writing scratch/soname/libsimple.so Kernel page size is 4096 bytes Kernel page size is 4096 bytes patching ELF file 'scratch/soname/libsimple.so' Kernel page size is 4096 bytes new SONAME is 'libsimple.so.1.1' SONAME is too long, resizing... replacing section '.dynstr' with size 364 this is a dynamic library last page is 0x1006000 needed space is 400 rewriting section '.dynstr' from offset 0x4100 (size 347) to offset 0x5000 (size 364) rewriting section '.gnu.hash' from offset 0x1a8 (size 36) to offset 0x516c (size 36) rewriting symbol table section 1 rewriting symbol table section 22 writing scratch/soname/libsimple.so Kernel page size is 4096 bytes PASS: soname.sh Kernel page size is 4096 bytes patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/main' Kernel page size is 4096 bytes new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' rpath is too long, resizing... replacing section '.dynstr' with size 723 this is an executable using replaced section '.dynstr' last replaced is 7 looking at section '.interp' replacing section '.interp' which is in the way looking at section '.note.gnu.property' replacing section '.note.gnu.property' which is in the way looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' first reserved offset/addr is 0x43a/0x804843a first page is 0x8048000 needed space is 1512 needed space is 1544 needed pages is 1 clearing first 4710 bytes rewriting section '.dynstr' from offset 0x1314 (size 294) to offset 0x1d4 (size 723) rewriting section '.dynsym' from offset 0x12a4 (size 112) to offset 0x4a8 (size 112) rewriting section '.gnu.hash' from offset 0x1284 (size 32) to offset 0x518 (size 32) rewriting section '.hash' from offset 0x1254 (size 48) to offset 0x538 (size 48) rewriting section '.interp' from offset 0x11b4 (size 73) to offset 0x568 (size 73) rewriting section '.note.ABI-tag' from offset 0x1234 (size 32) to offset 0x5b4 (size 32) rewriting section '.note.gnu.property' from offset 0x1200 (size 52) to offset 0x5d4 (size 52) rewriting symbol table section 2 rewriting symbol table section 27 writing scratch/shrink-rpath-with-allowed-prefixes/main patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/main' Kernel page size is 4096 bytes removing directory '/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib' from RPATH removing directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' writing scratch/shrink-rpath-with-allowed-prefixes/main patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/mainA' Kernel page size is 4096 bytes removing directory '/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib' from RPATH removing directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH because of non-allowed prefix new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' writing scratch/shrink-rpath-with-allowed-prefixes/mainA patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/mainB' Kernel page size is 4096 bytes removing directory '/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib' from RPATH removing directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' from RPATH because of non-allowed prefix new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' writing scratch/shrink-rpath-with-allowed-prefixes/mainB Kernel page size is 4096 bytes RPATH of scratch/shrink-rpath-with-allowed-prefixes/main after: /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA Kernel page size is 4096 bytes RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainA after: /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA Kernel page size is 4096 bytes RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainB after: /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB PASS: shrink-rpath-with-allowed-prefixes.sh patchelf --remove-rpath patching ELF file 'scratch/force-rpath/libfoo.so' Kernel page size is 4096 bytes removing DT_RPATH entry writing scratch/force-rpath/libfoo.so patchelf --set-rpath foo patching ELF file 'scratch/force-rpath/libfoo.so' Kernel page size is 4096 bytes new rpath is 'foo' rpath is too long, resizing... DT_NULL index is 26 replacing section '.dynamic' with size 264 replacing section '.dynstr' with size 369 this is a dynamic library last page is 0x5000 needed space is 692 rewriting section '.dynamic' from offset 0x2ef0 (size 256) to offset 0x4000 (size 264) rewriting section '.dynstr' from offset 0x2a0 (size 365) to offset 0x4108 (size 369) rewriting section '.hash' from offset 0x1b4 (size 56) to offset 0x427c (size 56) rewriting symbol table section 2 rewriting symbol table section 24 writing scratch/force-rpath/libfoo.so patchelf --force-rpath --set-rpath foo patching ELF file 'scratch/force-rpath/libfoo.so' Kernel page size is 4096 bytes new rpath is 'foo' writing scratch/force-rpath/libfoo.so patchelf --force-rpath --set-rpath bar patching ELF file 'scratch/force-rpath/libfoo.so' Kernel page size is 4096 bytes new rpath is 'bar' writing scratch/force-rpath/libfoo.so patchelf --remove-rpath patching ELF file 'scratch/force-rpath/libfoo.so' Kernel page size is 4096 bytes removing DT_RPATH entry writing scratch/force-rpath/libfoo.so patchelf --force-rpath --set-rpath foo patching ELF file 'scratch/force-rpath/libfoo.so' Kernel page size is 4096 bytes new rpath is 'foo' rpath is too long, resizing... DT_NULL index is 26 replacing section '.dynamic' with size 272 replacing section '.dynstr' with size 373 this is a dynamic library last page is 0x6000 needed space is 684 rewriting section '.dynamic' from offset 0x4000 (size 264) to offset 0x5000 (size 272) rewriting section '.dynstr' from offset 0x4108 (size 369) to offset 0x5110 (size 373) rewriting section '.gnu.hash' from offset 0x1ec (size 36) to offset 0x5288 (size 36) rewriting symbol table section 1 rewriting symbol table section 23 writing scratch/force-rpath/libfoo.so patchelf --set-rpath foo patching ELF file 'scratch/force-rpath/libfoo.so' Kernel page size is 4096 bytes new rpath is 'foo' writing scratch/force-rpath/libfoo.so patchelf --set-rpath bar patching ELF file 'scratch/force-rpath/libfoo.so' Kernel page size is 4096 bytes new rpath is 'bar' writing scratch/force-rpath/libfoo.so PASS: force-rpath.sh Kernel page size is 4096 bytes patching ELF file 'scratch/output-flag/main' Kernel page size is 4096 bytes new rpath is '/gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib:/gnu/store/r7n4snily34ld9nm4crzc0z65jr2y26c-gcc-10.3.0-lib/lib:/gnu/store/5qcvyi7syj2yc6zjiiqmhqn53i8iffma-gcc-10.3.0-lib/lib:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/output-flag/libsA:/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests/scratch/output-flag/libsB' rpath is too long, resizing... replacing section '.dynstr' with size 677 this is an executable using replaced section '.dynstr' last replaced is 7 looking at section '.interp' replacing section '.interp' which is in the way looking at section '.note.gnu.property' replacing section '.note.gnu.property' which is in the way looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' first reserved offset/addr is 0x43a/0x804843a first page is 0x8048000 needed space is 1468 needed space is 1500 needed pages is 1 clearing first 4710 bytes rewriting section '.dynstr' from offset 0x1314 (size 294) to offset 0x1d4 (size 677) rewriting section '.dynsym' from offset 0x12a4 (size 112) to offset 0x47c (size 112) rewriting section '.gnu.hash' from offset 0x1284 (size 32) to offset 0x4ec (size 32) rewriting section '.hash' from offset 0x1254 (size 48) to offset 0x50c (size 48) rewriting section '.interp' from offset 0x11b4 (size 73) to offset 0x53c (size 73) rewriting section '.note.ABI-tag' from offset 0x1234 (size 32) to offset 0x588 (size 32) rewriting section '.note.gnu.property' from offset 0x1200 (size 52) to offset 0x5a8 (size 52) rewriting symbol table section 2 rewriting symbol table section 27 writing scratch/output-flag/main2 patching ELF file 'scratch/output-flag/main2' Kernel page size is 4096 bytes not modified, but alwaysWrite=true writing scratch/output-flag/main3 Hello World This is foo()! This is bar()! Result is 46 Hello World This is foo()! This is bar()! Result is 46 PASS: output-flag.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-amd64.sh .sh ++ sed -e 's/.*-//' + ARCH=amd64 + SCRATCH=scratch/no-rpath-amd64 + '[' -z amd64 ']' + '[' amd64 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-amd64 + '[' '!' -f ./no-rpath-prebuild/no-rpath-amd64 ']' + rm -rf scratch/no-rpath-amd64 + mkdir -p scratch/no-rpath-amd64 + cp ./no-rpath-prebuild/no-rpath-amd64 scratch/no-rpath-amd64/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-amd64/no-rpath patching ELF file 'scratch/no-rpath-amd64/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 88 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x346/0x400346 first page is 0x400000 needed space is 1416 needed space is 1472 needed pages is 1 changing alignment of program header 2 from 2097152 to 0 changing alignment of program header 3 from 2097152 to 0 clearing first 4366 bytes rewriting section '.dynamic' from offset 0x16c0 (size 0) to offset 0x1e0 (size 0) rewriting section '.dynstr' from offset 0x1308 (size 0) to offset 0x3d (size 0) rewriting section '.dynsym' from offset 0x12a8 (size 0) to offset 0x60 (size 0) rewriting section '.gnu.hash' from offset 0x1288 (size 0) to offset 0x1c (size 0) rewriting section '.hash' from offset 0x1260 (size 0) to offset 0x24 (size 0) rewriting section '.interp' from offset 0x1200 (size 0) to offset 0x1c (size 0) rewriting section '.note.ABI-tag' from offset 0x121c (size 0) to offset 0x20 (size 0) rewriting section '.note.gnu.build-id' from offset 0x123c (size 0) to offset 0x24 (size 0) rewriting symbol table section 3 rewriting symbol table section 36 writing scratch/no-rpath-amd64/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-amd64.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-armel.sh .sh ++ sed -e 's/.*-//' + ARCH=armel + SCRATCH=scratch/no-rpath-armel + '[' -z armel ']' + '[' armel = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-armel + '[' '!' -f ./no-rpath-prebuild/no-rpath-armel ']' + rm -rf scratch/no-rpath-armel + mkdir -p scratch/no-rpath-armel + cp ./no-rpath-prebuild/no-rpath-armel scratch/no-rpath-armel/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armel/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-armel/no-rpath patching ELF file 'scratch/no-rpath-armel/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 92 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x272/0x8272 first page is 0x8000 needed space is 956 needed space is 988 needed pages is 1 changing alignment of program header 3 from 32768 to 4096 changing alignment of program header 4 from 32768 to 4096 clearing first 4382 bytes rewriting section '.dynamic' from offset 0x1494 (size 240) to offset 0x154 (size 248) rewriting section '.dynstr' from offset 0x1230 (size 65) to offset 0x24c (size 92) rewriting section '.dynsym' from offset 0x11e0 (size 80) to offset 0x2a8 (size 80) rewriting section '.gnu.hash' from offset 0x11b4 (size 44) to offset 0x2f8 (size 44) rewriting section '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 73) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x398 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x3b8 (size 36) rewriting symbol table section 3 rewriting symbol table section 37 writing scratch/no-rpath-armel/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armel/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-armel.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-armhf.sh .sh ++ sed -e 's/.*-//' + ARCH=armhf + SCRATCH=scratch/no-rpath-armhf + '[' -z armhf ']' + '[' armhf = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-armhf + '[' '!' -f ./no-rpath-prebuild/no-rpath-armhf ']' + rm -rf scratch/no-rpath-armhf + mkdir -p scratch/no-rpath-armhf + cp ./no-rpath-prebuild/no-rpath-armhf scratch/no-rpath-armhf/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armhf/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-armhf/no-rpath patching ELF file 'scratch/no-rpath-armhf/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 92 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x27a/0x827a first page is 0x8000 needed space is 956 needed space is 988 needed pages is 1 changing alignment of program header 3 from 32768 to 4096 changing alignment of program header 4 from 32768 to 4096 clearing first 4390 bytes rewriting section '.dynamic' from offset 0x1424 (size 240) to offset 0x154 (size 248) rewriting section '.dynstr' from offset 0x1238 (size 65) to offset 0x24c (size 92) rewriting section '.dynsym' from offset 0x11e8 (size 80) to offset 0x2a8 (size 80) rewriting section '.gnu.hash' from offset 0x11bc (size 44) to offset 0x2f8 (size 44) rewriting section '.hash' from offset 0x1194 (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 25) to offset 0x34c (size 73) rewriting section '.note.ABI-tag' from offset 0x1150 (size 32) to offset 0x398 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1170 (size 36) to offset 0x3b8 (size 36) rewriting symbol table section 3 rewriting symbol table section 37 writing scratch/no-rpath-armhf/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armhf/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-armhf.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-hurd-i386.sh .sh ++ sed -e 's/.*-//' + ARCH=i386 + SCRATCH=scratch/no-rpath-i386 + '[' -z i386 ']' + '[' i386 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-i386 + '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']' + rm -rf scratch/no-rpath-i386 + mkdir -p scratch/no-rpath-i386 + cp ./no-rpath-prebuild/no-rpath-i386 scratch/no-rpath-i386/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath patching ELF file 'scratch/no-rpath-i386/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 101 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x26e/0x804826e first page is 0x8048000 needed space is 956 needed space is 988 needed pages is 1 clearing first 4378 bytes rewriting section '.dynamic' from offset 0x1544 (size 240) to offset 0x154 (size 248) rewriting section '.dynstr' from offset 0x1224 (size 74) to offset 0x24c (size 101) rewriting section '.dynsym' from offset 0x11d4 (size 80) to offset 0x2b4 (size 80) rewriting section '.gnu.hash' from offset 0x11b4 (size 32) to offset 0x304 (size 32) rewriting section '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 73) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x398 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x3b8 (size 36) rewriting symbol table section 3 rewriting symbol table section 36 writing scratch/no-rpath-i386/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-hurd-i386.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-i386.sh .sh ++ sed -e 's/.*-//' + ARCH=i386 + SCRATCH=scratch/no-rpath-i386 + '[' -z i386 ']' + '[' i386 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-i386 + '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']' + rm -rf scratch/no-rpath-i386 + mkdir -p scratch/no-rpath-i386 + cp ./no-rpath-prebuild/no-rpath-i386 scratch/no-rpath-i386/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath patching ELF file 'scratch/no-rpath-i386/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 101 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x26e/0x804826e first page is 0x8048000 needed space is 956 needed space is 988 needed pages is 1 clearing first 4378 bytes rewriting section '.dynamic' from offset 0x1544 (size 240) to offset 0x154 (size 248) rewriting section '.dynstr' from offset 0x1224 (size 74) to offset 0x24c (size 101) rewriting section '.dynsym' from offset 0x11d4 (size 80) to offset 0x2b4 (size 80) rewriting section '.gnu.hash' from offset 0x11b4 (size 32) to offset 0x304 (size 32) rewriting section '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 73) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x398 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x3b8 (size 36) rewriting symbol table section 3 rewriting symbol table section 36 writing scratch/no-rpath-i386/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-i386.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-ia64.sh .sh ++ sed -e 's/.*-//' + ARCH=ia64 + SCRATCH=scratch/no-rpath-ia64 + '[' -z ia64 ']' + '[' ia64 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-ia64 + '[' '!' -f ./no-rpath-prebuild/no-rpath-ia64 ']' + rm -rf scratch/no-rpath-ia64 + mkdir -p scratch/no-rpath-ia64 + cp ./no-rpath-prebuild/no-rpath-ia64 scratch/no-rpath-ia64/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-ia64/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-ia64/no-rpath patching ELF file 'scratch/no-rpath-ia64/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 25 replacing section '.dynamic' with size 512 replacing section '.dynstr' with size 73 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x30e/0x400000000000030e first page is 0x4000000000000000 needed space is 1384 needed space is 1440 needed pages is 1 changing alignment of program header 2 from 65536 to 0 changing alignment of program header 3 from 65536 to 0 clearing first 4310 bytes rewriting section '.dynamic' from offset 0x1ba0 (size 0) to offset 0x1f0 (size 0) rewriting section '.dynstr' from offset 0x12e0 (size 0) to offset 0x2e (size 0) rewriting section '.dynsym' from offset 0x1298 (size 0) to offset 0x48 (size 0) rewriting section '.gnu.hash' from offset 0x1278 (size 0) to offset 0x1c (size 0) rewriting section '.hash' from offset 0x1260 (size 0) to offset 0x18 (size 0) rewriting section '.interp' from offset 0x1200 (size 0) to offset 0x18 (size 0) rewriting section '.note.ABI-tag' from offset 0x1218 (size 0) to offset 0x20 (size 0) rewriting section '.note.gnu.build-id' from offset 0x1238 (size 0) to offset 0x24 (size 0) rewriting symbol table section 3 rewriting symbol table section 39 writing scratch/no-rpath-ia64/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-ia64/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-ia64.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-kfreebsd-amd64.sh .sh ++ sed -e 's/.*-//' + ARCH=amd64 + SCRATCH=scratch/no-rpath-amd64 + '[' -z amd64 ']' + '[' amd64 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-amd64 + '[' '!' -f ./no-rpath-prebuild/no-rpath-amd64 ']' + rm -rf scratch/no-rpath-amd64 + mkdir -p scratch/no-rpath-amd64 + cp ./no-rpath-prebuild/no-rpath-amd64 scratch/no-rpath-amd64/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-amd64/no-rpath patching ELF file 'scratch/no-rpath-amd64/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 88 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x346/0x400346 first page is 0x400000 needed space is 1416 needed space is 1472 needed pages is 1 changing alignment of program header 2 from 2097152 to 0 changing alignment of program header 3 from 2097152 to 0 clearing first 4366 bytes rewriting section '.dynamic' from offset 0x16c0 (size 0) to offset 0x1e0 (size 0) rewriting section '.dynstr' from offset 0x1308 (size 0) to offset 0x3d (size 0) rewriting section '.dynsym' from offset 0x12a8 (size 0) to offset 0x60 (size 0) rewriting section '.gnu.hash' from offset 0x1288 (size 0) to offset 0x1c (size 0) rewriting section '.hash' from offset 0x1260 (size 0) to offset 0x24 (size 0) rewriting section '.interp' from offset 0x1200 (size 0) to offset 0x1c (size 0) rewriting section '.note.ABI-tag' from offset 0x121c (size 0) to offset 0x20 (size 0) rewriting section '.note.gnu.build-id' from offset 0x123c (size 0) to offset 0x24 (size 0) rewriting symbol table section 3 rewriting symbol table section 36 writing scratch/no-rpath-amd64/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-kfreebsd-amd64.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-kfreebsd-i386.sh .sh ++ sed -e 's/.*-//' + ARCH=i386 + SCRATCH=scratch/no-rpath-i386 + '[' -z i386 ']' + '[' i386 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-i386 + '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']' + rm -rf scratch/no-rpath-i386 + mkdir -p scratch/no-rpath-i386 + cp ./no-rpath-prebuild/no-rpath-i386 scratch/no-rpath-i386/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath patching ELF file 'scratch/no-rpath-i386/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 101 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x26e/0x804826e first page is 0x8048000 needed space is 956 needed space is 988 needed pages is 1 clearing first 4378 bytes rewriting section '.dynamic' from offset 0x1544 (size 240) to offset 0x154 (size 248) rewriting section '.dynstr' from offset 0x1224 (size 74) to offset 0x24c (size 101) rewriting section '.dynsym' from offset 0x11d4 (size 80) to offset 0x2b4 (size 80) rewriting section '.gnu.hash' from offset 0x11b4 (size 32) to offset 0x304 (size 32) rewriting section '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 73) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x398 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x3b8 (size 36) rewriting symbol table section 3 rewriting symbol table section 36 writing scratch/no-rpath-i386/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-kfreebsd-i386.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-mips.sh .sh ++ sed -e 's/.*-//' + ARCH=mips + SCRATCH=scratch/no-rpath-mips + '[' -z mips ']' + '[' mips = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-mips + '[' '!' -f ./no-rpath-prebuild/no-rpath-mips ']' + rm -rf scratch/no-rpath-mips + mkdir -p scratch/no-rpath-mips + cp ./no-rpath-prebuild/no-rpath-mips scratch/no-rpath-mips/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mips/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-mips/no-rpath patching ELF file 'scratch/no-rpath-mips/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 25 replacing section '.dynamic' with size 256 replacing section '.dynstr' with size 160 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynamic' using replaced section '.dynstr' last replaced is 8 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.reginfo' replacing section '.reginfo' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.dynamic' looking at section '.hash' replacing section '.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' first reserved offset/addr is 0x42e/0x40042e first page is 0x400000 needed space is 1164 needed space is 1196 needed pages is 1 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 4 from 65536 to 4096 clearing first 4794 bytes rewriting section '.dynamic' from offset 0x11c0 (size 248) to offset 0x174 (size 256) rewriting section '.dynstr' from offset 0x13a8 (size 133) to offset 0x274 (size 160) rewriting section '.dynsym' from offset 0x12f8 (size 176) to offset 0x314 (size 176) rewriting section '.hash' from offset 0x12b8 (size 64) to offset 0x3c4 (size 64) rewriting section '.interp' from offset 0x1154 (size 13) to offset 0x404 (size 73) rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x450 (size 32) rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x470 (size 36) rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x494 (size 24) rewriting symbol table section 3 rewriting symbol table section 41 writing scratch/no-rpath-mips/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mips/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-mips.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-mipsel.sh .sh ++ sed -e 's/.*-//' + ARCH=mipsel + SCRATCH=scratch/no-rpath-mipsel + '[' -z mipsel ']' + '[' mipsel = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-mipsel + '[' '!' -f ./no-rpath-prebuild/no-rpath-mipsel ']' + rm -rf scratch/no-rpath-mipsel + mkdir -p scratch/no-rpath-mipsel + cp ./no-rpath-prebuild/no-rpath-mipsel scratch/no-rpath-mipsel/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mipsel/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-mipsel/no-rpath patching ELF file 'scratch/no-rpath-mipsel/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 25 replacing section '.dynamic' with size 256 replacing section '.dynstr' with size 160 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynamic' using replaced section '.dynstr' last replaced is 8 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.reginfo' replacing section '.reginfo' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.dynamic' looking at section '.hash' replacing section '.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' first reserved offset/addr is 0x42e/0x40042e first page is 0x400000 needed space is 1164 needed space is 1196 needed pages is 1 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 4 from 65536 to 4096 clearing first 4794 bytes rewriting section '.dynamic' from offset 0x11c0 (size 248) to offset 0x174 (size 256) rewriting section '.dynstr' from offset 0x13a8 (size 133) to offset 0x274 (size 160) rewriting section '.dynsym' from offset 0x12f8 (size 176) to offset 0x314 (size 176) rewriting section '.hash' from offset 0x12b8 (size 64) to offset 0x3c4 (size 64) rewriting section '.interp' from offset 0x1154 (size 13) to offset 0x404 (size 73) rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x450 (size 32) rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x470 (size 36) rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x494 (size 24) rewriting symbol table section 3 rewriting symbol table section 41 writing scratch/no-rpath-mipsel/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mipsel/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-mipsel.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-powerpc.sh .sh ++ sed -e 's/.*-//' + ARCH=powerpc + SCRATCH=scratch/no-rpath-powerpc + '[' -z powerpc ']' + '[' powerpc = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-powerpc + '[' '!' -f ./no-rpath-prebuild/no-rpath-powerpc ']' + rm -rf scratch/no-rpath-powerpc + mkdir -p scratch/no-rpath-powerpc + cp ./no-rpath-prebuild/no-rpath-powerpc scratch/no-rpath-powerpc/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-powerpc/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-powerpc/no-rpath patching ELF file 'scratch/no-rpath-powerpc/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 21 replacing section '.dynamic' with size 224 replacing section '.dynstr' with size 101 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x26a/0x1000026a first page is 0x10000000 needed space is 932 needed space is 964 needed pages is 1 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 clearing first 4374 bytes rewriting section '.dynamic' from offset 0x171c (size 216) to offset 0x154 (size 224) rewriting section '.dynstr' from offset 0x1220 (size 74) to offset 0x234 (size 101) rewriting section '.dynsym' from offset 0x11d0 (size 80) to offset 0x29c (size 80) rewriting section '.gnu.hash' from offset 0x11b0 (size 32) to offset 0x2ec (size 32) rewriting section '.hash' from offset 0x1188 (size 40) to offset 0x30c (size 40) rewriting section '.interp' from offset 0x1134 (size 13) to offset 0x334 (size 73) rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x380 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x3a0 (size 36) rewriting symbol table section 3 rewriting symbol table section 38 writing scratch/no-rpath-powerpc/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-powerpc/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-powerpc.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-s390.sh .sh ++ sed -e 's/.*-//' + ARCH=s390 + SCRATCH=scratch/no-rpath-s390 + '[' -z s390 ']' + '[' s390 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-s390 + '[' '!' -f ./no-rpath-prebuild/no-rpath-s390 ']' + rm -rf scratch/no-rpath-s390 + mkdir -p scratch/no-rpath-s390 + cp ./no-rpath-prebuild/no-rpath-s390 scratch/no-rpath-s390/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-s390/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-s390/no-rpath patching ELF file 'scratch/no-rpath-s390/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 20 replacing section '.dynamic' with size 216 replacing section '.dynstr' with size 101 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 22 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x276/0x400276 first page is 0x400000 needed space is 936 needed space is 968 needed pages is 1 clearing first 4386 bytes rewriting section '.dynamic' from offset 0x170c (size 208) to offset 0x154 (size 216) rewriting section '.dynstr' from offset 0x122c (size 74) to offset 0x22c (size 101) rewriting section '.dynsym' from offset 0x11dc (size 80) to offset 0x294 (size 80) rewriting section '.gnu.hash' from offset 0x11b0 (size 44) to offset 0x2e4 (size 44) rewriting section '.hash' from offset 0x1188 (size 40) to offset 0x310 (size 40) rewriting section '.interp' from offset 0x1134 (size 13) to offset 0x338 (size 73) rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x384 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x3a4 (size 36) rewriting symbol table section 3 rewriting symbol table section 35 writing scratch/no-rpath-s390/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-s390/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-s390.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-sh4.sh .sh ++ sed -e 's/.*-//' + ARCH=sh4 + SCRATCH=scratch/no-rpath-sh4 + '[' -z sh4 ']' + '[' sh4 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-sh4 + '[' '!' -f ./no-rpath-prebuild/no-rpath-sh4 ']' + rm -rf scratch/no-rpath-sh4 + mkdir -p scratch/no-rpath-sh4 + cp ./no-rpath-prebuild/no-rpath-sh4 scratch/no-rpath-sh4/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sh4/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-sh4/no-rpath patching ELF file 'scratch/no-rpath-sh4/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 19 replacing section '.dynamic' with size 208 replacing section '.dynstr' with size 107 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 19 looking at section '.interp' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x248/0x400248 first page is 0x400000 needed space is 876 needed space is 908 needed pages is 1 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 clearing first 4340 bytes rewriting section '.dynamic' from offset 0x1600 (size 200) to offset 0x154 (size 208) rewriting section '.dynstr' from offset 0x11f8 (size 80) to offset 0x224 (size 107) rewriting section '.dynsym' from offset 0x1198 (size 96) to offset 0x290 (size 96) rewriting section '.hash' from offset 0x116c (size 44) to offset 0x2f0 (size 44) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x31c (size 73) rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x368 (size 36) rewriting symbol table section 3 rewriting symbol table section 34 writing scratch/no-rpath-sh4/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sh4/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-sh4.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ basename ./no-rpath-sparc.sh .sh ++ sed -e 's/.*-//' + ARCH=sparc + SCRATCH=scratch/no-rpath-sparc + '[' -z sparc ']' + '[' sparc = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-sparc + '[' '!' -f ./no-rpath-prebuild/no-rpath-sparc ']' + rm -rf scratch/no-rpath-sparc + mkdir -p scratch/no-rpath-sparc + cp ./no-rpath-prebuild/no-rpath-sparc scratch/no-rpath-sparc/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sparc/no-rpath Kernel page size is 4096 bytes + oldRPath= + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /gnu/store/0iapawfss4xnxls622g23qpk4mwb9ihp-glibc-2.33/lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-sparc/no-rpath patching ELF file 'scratch/no-rpath-sparc/no-rpath' Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 19 replacing section '.dynamic' with size 208 replacing section '.dynstr' with size 101 replacing section '.interp' with size 73 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 19 looking at section '.interp' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' replacing section '.hash' which is in the way looking at section '.dynsym' replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.gnu.version' first reserved offset/addr is 0x22e/0x1022e first page is 0x10000 needed space is 852 needed space is 884 needed pages is 1 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 clearing first 4346 bytes rewriting section '.dynamic' from offset 0x1588 (size 200) to offset 0x134 (size 208) rewriting section '.dynstr' from offset 0x11e4 (size 74) to offset 0x204 (size 101) rewriting section '.dynsym' from offset 0x1194 (size 80) to offset 0x26c (size 80) rewriting section '.hash' from offset 0x116c (size 40) to offset 0x2bc (size 40) rewriting section '.interp' from offset 0x1114 (size 19) to offset 0x2e4 (size 73) rewriting section '.note.ABI-tag' from offset 0x1128 (size 32) to offset 0x330 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x350 (size 36) rewriting symbol table section 3 rewriting symbol table section 35 writing scratch/no-rpath-sparc/no-rpath ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sparc/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar PASS: no-rpath-sparc.sh =================== All 27 tests passed =================== make[2]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make[1]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make[1]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72' make[1]: Nothing to be done for 'check-am'. make[1]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72' phase `check' succeeded after 3.4 seconds starting phase `install' Making install in src make[1]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/src' make[2]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/src' /gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin/mkdir -p '/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/bin' /gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin/install -c patchelf '/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/bin' make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/src' make[1]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/src' Making install in tests make[1]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make[2]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make[1]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72/tests' make[1]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72' make[2]: Entering directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72' make[2]: Nothing to be done for 'install-exec-am'. /gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin/mkdir -p '/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/share/doc/patchelf' /gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin/install -c -m 644 README.md '/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/share/doc/patchelf' /gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin/mkdir -p '/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/share/man/man1' /gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin/install -c -m 644 patchelf.1 '/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/share/man/man1' make[2]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72' make[1]: Leaving directory '/tmp/guix-build-patchelf-0.11.drv-0/patchelf-0.11.20200609.d6b2a72' phase `install' succeeded after 0.2 seconds starting phase `patch-shebangs' phase `patch-shebangs' succeeded after 0.0 seconds starting phase `strip' stripping binaries in "/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/bin" with "strip" and flags ("--strip-unneeded" "--enable-deterministic-archives") phase `strip' succeeded after 0.0 seconds starting phase `validate-runpath' validating RUNPATH of 1 binaries in "/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/bin"... phase `validate-runpath' succeeded after 0.0 seconds starting phase `validate-documentation-location' phase `validate-documentation-location' succeeded after 0.0 seconds starting phase `delete-info-dir-file' phase `delete-info-dir-file' succeeded after 0.0 seconds starting phase `patch-dot-desktop-files' phase `patch-dot-desktop-files' succeeded after 0.0 seconds starting phase `make-dynamic-linker-cache' created '/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/etc/ld.so.cache' from 2 library search path entries phase `make-dynamic-linker-cache' succeeded after 1.0 seconds starting phase `install-license-files' installing 1 license files from '.' phase `install-license-files' succeeded after 0.0 seconds starting phase `reset-gzip-timestamps' phase `reset-gzip-timestamps' succeeded after 0.0 seconds starting phase `compress-documentation' compressing documentation in '/gnu/store/qqs631bj6awmksjyww4ydnjfi2zj5jbi-patchelf-0.11/share/man' with "gzip" and flags ("--best" "--no-name") phase `compress-documentation' succeeded after 0.0 seconds