Mock Version: 2.3 Mock Version: 2.3 Mock Version: 2.3 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target s390x --nodeps /builddir/build/SPECS/patchelf.spec'], chrootPath='/var/lib/mock/f33-build-21894638-1805509/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target s390x --nodeps /builddir/build/SPECS/patchelf.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: s390x Building for target s390x setting SOURCE_DATE_EPOCH=1596153600 Wrote: /builddir/build/SRPMS/patchelf-0.11-1.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target s390x --nodeps /builddir/build/SPECS/patchelf.spec'], chrootPath='/var/lib/mock/f33-build-21894638-1805509/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target s390x --nodeps /builddir/build/SPECS/patchelf.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: s390x Building for target s390x setting SOURCE_DATE_EPOCH=1596153600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0lgeJ7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf patchelf-0.11 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/patchelf-0.11.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd patchelf-0.11 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm src/elf.h + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.XBZos8 + umask 022 + cd /builddir/build/BUILD + cd patchelf-0.11 + sh ./bootstrap.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force --warnings=all autoreconf: configure.ac: tracing autoreconf: configure.ac: creating directory build-aux autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force --warnings=all autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing --warnings=all configure.ac:6: installing 'build-aux/compile' configure.ac:4: installing 'build-aux/install-sh' configure.ac:4: installing 'build-aux/missing' src/Makefile.am: installing 'build-aux/depcomp' autoreconf: Leaving directory `.' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x ']' + ./configure --build=s390x-redhat-linux-gnu --host=s390x-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for s390x-redhat-linux-gnu-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... none checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none 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 + make -j2 Making all in src make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.11/src' g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"patchelf\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11\" -DPAGESIZE=4096 -I. -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o patchelf.o patchelf.cc g++ -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -o patchelf patchelf.o make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/src' Making all in tests make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.11/tests' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/tests' make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.11' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.aYBOab + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x '!=' / ']' + rm -rf /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x ++ dirname /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x + cd patchelf-0.11 + make install DESTDIR=/builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x Making install in src make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.11/src' make[2]: Entering directory '/builddir/build/BUILD/patchelf-0.11/src' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/bin' /usr/bin/install -c patchelf '/builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/bin' make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/src' make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/src' Making install in tests make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.11/tests' make[2]: Entering directory '/builddir/build/BUILD/patchelf-0.11/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 '/builddir/build/BUILD/patchelf-0.11/tests' make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/tests' make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.11' make[2]: Entering directory '/builddir/build/BUILD/patchelf-0.11' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/doc/patchelf' /usr/bin/install -c -m 644 README.md '/builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/doc/patchelf' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/man/man1' /usr/bin/install -c -m 644 patchelf.1 '/builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/man/man1' make[2]: Leaving directory '/builddir/build/BUILD/patchelf-0.11' make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11' + rm -rf /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/doc/patchelf + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 0.11-1.fc33 --unique-debug-suffix -0.11-1.fc33.s390x --unique-debug-src-base patchelf-0.11-1.fc33.s390x --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/patchelf-0.11 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/bin/patchelf extracting debug info from /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/bin/patchelf original debug info size: 2308kB, size after compression: 2228kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 119 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.iQoDb9 + umask 022 + cd /builddir/build/BUILD + cd patchelf-0.11 + make check Making check in src make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.11/src' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/src' Making check in tests make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.11/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 '/builddir/build/BUILD/patchelf-0.11/tests' gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"patchelf\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11\" -DPAGESIZE=4096 -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o simple-simple.o `test -f 'simple.c' || echo './'`simple.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -o simple simple-simple.o gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"patchelf\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11\" -DPAGESIZE=4096 -I. -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o main.o main.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"patchelf\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11\" -DPAGESIZE=4096 -I. -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o foo.o foo.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"patchelf\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11\" -DPAGESIZE=4096 -I. -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o bar.o bar.c gcc -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -shared -L. -Wl,-rpath,`pwd`/no-such-path -Wl,-z,relro -Wl,--as-needed -o libbar.so bar.o gcc -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -Wl,--as-needed -o libfoo.so foo.o -lbar gcc -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -Wl,--as-needed -o main main.o -lfoo gcc -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -Wl,--as-needed -o libbar-scoped.so bar.o gcc -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -Wl,--as-needed -o libfoo-scoped.so foo.o -lbar-scoped gcc -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -Wl,--as-needed -o main-scoped main.o -lfoo-scoped cat main.c > big-dynstr.c for i in $(seq 1 2000); do echo "void f$i(void) { };" >> big-dynstr.c; done gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"patchelf\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11\" -DPAGESIZE=4096 -I. -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o big-dynstr.o big-dynstr.c gcc -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -Wl,--as-needed -o big-dynstr big-dynstr.o -lfoo gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"patchelf\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11\" -DPAGESIZE=4096 -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o no_rpath-no-rpath.o `test -f 'no-rpath.c' || echo './'`no-rpath.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -o no-rpath no_rpath-no-rpath.o make[2]: 'libfoo.so' is up to date. make[2]: 'libfoo-scoped.so' is up to date. make[2]: 'libbar.so' is up to date. make[2]: 'libbar-scoped.so' is up to date. gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"patchelf\ 0.11\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.11\" -DPAGESIZE=4096 -I. -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -c -o simple.o simple.c gcc -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -Wl,--as-needed -o libsimple.so simple.o make[2]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/tests' make check-TESTS make[2]: Entering directory '/builddir/build/BUILD/patchelf-0.11/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: /builddir/build/BUILD/patchelf-0.11/tests/no-such-path patching ELF file 'scratch/shrink-rpath/libbar.so' Kernel page size is 4096 bytes removing directory '/builddir/build/BUILD/patchelf-0.11/tests/no-such-path' from RPATH new rpath is '' writing scratch/shrink-rpath/libbar.so Kernel page size is 4096 bytes RPATH after: 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 /lib/ld64.so.1 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 0x248/0x1000248 first page is 0x1000000 needed space is 576 clearing first 16 bytes rewriting section '.interp' from offset 0x238 (size 15) to offset 0x238 (size 6) rewriting symbol table section 5 rewriting symbol table section 34 writing scratch/set-interpreter-short/simple running with missing interpreter... PASS: set-interpreter-short.sh ./set-interpreter-short.sh: line 16: scratch/set-interpreter-short/simple: No such file or directory Hello World Kernel page size is 4096 bytes current interpreter is /lib/ld64.so.1 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 172 this is an executable using replaced section '.interp' last replaced is 1 looking at section '.interp' first reserved offset/addr is 0x248/0x1000248 first page is 0x1000000 needed space is 744 needed space is 800 needed pages is 1 clearing first 4056 bytes rewriting section '.interp' from offset 0x1238 (size 15) to offset 0x270 (size 172) rewriting symbol table section 5 rewriting symbol table section 34 writing scratch/set-interpreter-long/simple running with missing interpreter... running with new interpreter... Hello World running with explicit interpreter... Hello World ./set-interpreter-long.sh: line 22: scratch/set-interpreter-long/simple: No such file or directory 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 '/oops:/builddir/build/BUILD/patchelf-0.11/tests/scratch/set-rpath/libsA:/builddir/build/BUILD/patchelf-0.11/tests/scratch/set-rpath/libsB' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 288 this is an executable using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 20 looking at section '.interp' replacing section '.interp' 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 '.note.ABI-tag' replacing section '.note.ABI-tag' 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 0x41e/0x100041e first page is 0x1000000 needed space is 1688 needed space is 1744 needed pages is 1 clearing first 4526 bytes rewriting section '.dynamic' from offset 0x1e00 (size 480) to offset 0x270 (size 496) rewriting section '.dynstr' from offset 0x1388 (size 150) to offset 0x460 (size 288) rewriting section '.dynsym' from offset 0x12c8 (size 192) to offset 0x580 (size 192) rewriting section '.gnu.hash' from offset 0x1290 (size 52) to offset 0x640 (size 52) rewriting section '.interp' from offset 0x1238 (size 15) to offset 0x678 (size 15) rewriting section '.note.ABI-tag' from offset 0x126c (size 32) to offset 0x688 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1248 (size 36) to offset 0x6a8 (size 36) rewriting symbol table section 3 rewriting symbol table section 34 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:/xxxxxxxxxxxxxxx' rpath is too long, resizing... DT_NULL index is 23 replacing section '.dynamic' with size 480 replacing section '.dynstr' with size 86 replacing section '.interp' with size 15 this is an executable using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 20 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 '.note.ABI-tag' replacing section '.note.ABI-tag' 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 0x354/0x1000354 first page is 0x1000000 needed space is 1360 needed space is 1416 needed pages is 1 clearing first 4324 bytes rewriting section '.dynamic' from offset 0x1e10 (size 464) to offset 0x270 (size 480) rewriting section '.dynstr' from offset 0x1318 (size 59) to offset 0x450 (size 86) rewriting section '.dynsym' from offset 0x12b8 (size 96) to offset 0x4a8 (size 96) rewriting section '.gnu.hash' from offset 0x1290 (size 40) to offset 0x508 (size 40) rewriting section '.interp' from offset 0x1238 (size 15) to offset 0x530 (size 15) rewriting section '.note.ABI-tag' from offset 0x126c (size 32) to offset 0x540 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1248 (size 36) to offset 0x560 (size 36) rewriting symbol table section 3 rewriting symbol table section 34 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 '/oops:/builddir/build/BUILD/patchelf-0.11/tests/scratch/big-dynstr/libsA:/builddir/build/BUILD/patchelf-0.11/tests/scratch/big-dynstr/libsB' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 290 this is an executable using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 20 looking at section '.interp' replacing section '.interp' 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 '.note.ABI-tag' replacing section '.note.ABI-tag' 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 0x41e/0x100041e first page is 0x1000000 needed space is 1696 needed space is 1752 needed pages is 1 clearing first 4526 bytes rewriting section '.dynamic' from offset 0x1e00 (size 480) to offset 0x270 (size 496) rewriting section '.dynstr' from offset 0x1388 (size 150) to offset 0x460 (size 290) rewriting section '.dynsym' from offset 0x12c8 (size 192) to offset 0x588 (size 192) rewriting section '.gnu.hash' from offset 0x1290 (size 52) to offset 0x648 (size 52) rewriting section '.interp' from offset 0x1238 (size 15) to offset 0x680 (size 15) rewriting section '.note.ABI-tag' from offset 0x126c (size 32) to offset 0x690 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1248 (size 36) to offset 0x6b0 (size 36) rewriting symbol table section 3 rewriting symbol table section 34 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 '/oops:/builddir/build/BUILD/patchelf-0.11/tests/scratch/set-rpath-library/libsA:/builddir/build/BUILD/patchelf-0.11/tests/scratch/set-rpath-library/libsB' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 311 this is an executable using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 20 looking at section '.interp' replacing section '.interp' 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 '.note.ABI-tag' replacing section '.note.ABI-tag' 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 0x426/0x1000426 first page is 0x1000000 needed space is 1712 needed space is 1768 needed pages is 1 clearing first 4534 bytes rewriting section '.dynamic' from offset 0x1e00 (size 480) to offset 0x270 (size 496) rewriting section '.dynstr' from offset 0x1388 (size 157) to offset 0x460 (size 311) rewriting section '.dynsym' from offset 0x12c8 (size 192) to offset 0x598 (size 192) rewriting section '.gnu.hash' from offset 0x1290 (size 52) to offset 0x658 (size 52) rewriting section '.interp' from offset 0x1238 (size 15) to offset 0x690 (size 15) rewriting section '.note.ABI-tag' from offset 0x126c (size 32) to offset 0x6a0 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1248 (size 36) to offset 0x6c0 (size 36) rewriting symbol table section 3 rewriting symbol table section 34 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 '/oops:/builddir/build/BUILD/patchelf-0.11/tests/scratch/set-rpath-library/libsB' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 480 replacing section '.dynstr' with size 241 this is a dynamic library last page is 0x3000 needed space is 808 shifting new PT_LOAD segment by 4096 bytes to work around a Linux kernel bug rewriting section '.dynamic' from offset 0xdf8 (size 464) to offset 0x4000 (size 480) rewriting section '.dynstr' from offset 0x378 (size 161) to offset 0x41e0 (size 241) rewriting section '.gnu.hash' from offset 0x260 (size 40) to offset 0x42d8 (size 40) rewriting section '.note.gnu.build-id' from offset 0x238 (size 36) to offset 0x4300 (size 36) rewriting symbol table section 1 rewriting symbol table section 29 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 '/oops' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.11/tests/scratch/set-rpath-library/libsB' from RPATH new rpath is '/builddir/build/BUILD/patchelf-0.11/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 23 replacing section '.dynamic' with size 464 replacing section '.dynstr' with size 136 this is a dynamic library last page is 0x1003000 needed space is 680 rewriting section '.dynamic' from offset 0xe08 (size 448) to offset 0x4000 (size 464) rewriting section '.dynstr' from offset 0x2f0 (size 119) to offset 0x41d0 (size 136) rewriting section '.gnu.hash' from offset 0x1f0 (size 40) to offset 0x4258 (size 40) rewriting section '.note.gnu.build-id' from offset 0x1c8 (size 36) to offset 0x4280 (size 36) rewriting symbol table section 1 rewriting symbol table section 28 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 153 this is a dynamic library last page is 0x1004000 needed space is 376 rewriting section '.dynstr' from offset 0x41d0 (size 136) to offset 0x5000 (size 153) rewriting section '.dynsym' from offset 0x218 (size 216) to offset 0x50a0 (size 216) rewriting symbol table section 27 rewriting symbol table section 34 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 '/oops:/builddir/build/BUILD/patchelf-0.11/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA:/builddir/build/BUILD/patchelf-0.11/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 338 this is an executable using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 20 looking at section '.interp' replacing section '.interp' 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 '.note.ABI-tag' replacing section '.note.ABI-tag' 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 0x41e/0x100041e first page is 0x1000000 needed space is 1744 needed space is 1800 needed pages is 1 clearing first 4526 bytes rewriting section '.dynamic' from offset 0x1e00 (size 480) to offset 0x270 (size 496) rewriting section '.dynstr' from offset 0x1388 (size 150) to offset 0x460 (size 338) rewriting section '.dynsym' from offset 0x12c8 (size 192) to offset 0x5b8 (size 192) rewriting section '.gnu.hash' from offset 0x1290 (size 52) to offset 0x678 (size 52) rewriting section '.interp' from offset 0x1238 (size 15) to offset 0x6b0 (size 15) rewriting section '.note.ABI-tag' from offset 0x126c (size 32) to offset 0x6c0 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1248 (size 36) to offset 0x6e0 (size 36) rewriting symbol table section 3 rewriting symbol table section 34 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 '/oops' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.11/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH new rpath is '/builddir/build/BUILD/patchelf-0.11/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 '/oops' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.11/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH because of non-allowed prefix new rpath is '/builddir/build/BUILD/patchelf-0.11/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 '/oops' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.11/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' from RPATH because of non-allowed prefix new rpath is '/builddir/build/BUILD/patchelf-0.11/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: /builddir/build/BUILD/patchelf-0.11/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA Kernel page size is 4096 bytes RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainA after: /builddir/build/BUILD/patchelf-0.11/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA Kernel page size is 4096 bytes RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainB after: /builddir/build/BUILD/patchelf-0.11/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 no RPATH to delete 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 24 replacing section '.dynamic' with size 480 replacing section '.dynstr' with size 158 this is a dynamic library last page is 0x3000 needed space is 720 shifting new PT_LOAD segment by 4096 bytes to work around a Linux kernel bug rewriting section '.dynamic' from offset 0xdf8 (size 464) to offset 0x4000 (size 480) rewriting section '.dynstr' from offset 0x378 (size 154) to offset 0x41e0 (size 158) rewriting section '.gnu.hash' from offset 0x260 (size 40) to offset 0x4280 (size 40) rewriting section '.note.gnu.build-id' from offset 0x238 (size 36) to offset 0x42a8 (size 36) rewriting symbol table section 1 rewriting symbol table section 29 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 24 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 162 this is a dynamic library last page is 0x5000 needed space is 904 rewriting section '.dynamic' from offset 0x4000 (size 480) to offset 0x5000 (size 496) rewriting section '.dynstr' from offset 0x41e0 (size 158) to offset 0x51f0 (size 162) rewriting section '.dynsym' from offset 0x288 (size 240) to offset 0x5298 (size 240) rewriting symbol table section 28 rewriting symbol table section 35 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 '/oops:/builddir/build/BUILD/patchelf-0.11/tests/scratch/output-flag/libsA:/builddir/build/BUILD/patchelf-0.11/tests/scratch/output-flag/libsB' rpath is too long, resizing... DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 292 this is an executable using replaced section '.dynstr' using replaced section '.dynamic' last replaced is 20 looking at section '.interp' replacing section '.interp' 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 '.note.ABI-tag' replacing section '.note.ABI-tag' 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 0x41e/0x100041e first page is 0x1000000 needed space is 1696 needed space is 1752 needed pages is 1 clearing first 4526 bytes rewriting section '.dynamic' from offset 0x1e00 (size 480) to offset 0x270 (size 496) rewriting section '.dynstr' from offset 0x1388 (size 150) to offset 0x460 (size 292) rewriting section '.dynsym' from offset 0x12c8 (size 192) to offset 0x588 (size 192) rewriting section '.gnu.hash' from offset 0x1290 (size 52) to offset 0x648 (size 52) rewriting section '.interp' from offset 0x1238 (size 15) to offset 0x680 (size 15) rewriting section '.note.ABI-tag' from offset 0x126c (size 32) to offset 0x690 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1248 (size 36) to offset 0x6b0 (size 36) rewriting symbol table section 3 rewriting symbol table section 34 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 '' ']' ++ sed -e 's/.*-//' ++ basename ./no-rpath-amd64.sh .sh + 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 /lib/ld64.so.1 --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 15 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 1352 needed space is 1408 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4366 bytes rewriting section '.dynamic' from offset 0x16c0 (size 480) to offset 0x238 (size 496) rewriting section '.dynstr' from offset 0x1308 (size 61) to offset 0x428 (size 88) rewriting section '.dynsym' from offset 0x12a8 (size 96) to offset 0x480 (size 96) rewriting section '.gnu.hash' from offset 0x1288 (size 28) to offset 0x4e0 (size 28) rewriting section '.hash' from offset 0x1260 (size 36) to offset 0x500 (size 36) rewriting section '.interp' from offset 0x1200 (size 28) to offset 0x528 (size 15) rewriting section '.note.ABI-tag' from offset 0x121c (size 32) to offset 0x538 (size 32) rewriting section '.note.gnu.build-id' from offset 0x123c (size 36) to offset 0x558 (size 36) 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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx 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 /lib/ld64.so.1 --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 15 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 896 needed space is 928 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 15) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x35c (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x37c (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 '' ']' ++ sed -e 's/.*-//' ++ basename ./no-rpath-armhf.sh .sh + 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 /lib/ld64.so.1 --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 15 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 896 needed space is 928 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 15) rewriting section '.note.ABI-tag' from offset 0x1150 (size 32) to offset 0x35c (size 32) rewriting section '.note.gnu.build-id' from offset 0x1170 (size 36) to offset 0x37c (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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-armhf.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ sed -e 's/.*-//' ++ basename ./no-rpath-hurd-i386.sh .sh + 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 /lib/ld64.so.1 --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 15 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 896 needed space is 928 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 15) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x35c (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x37c (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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-hurd-i386.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ sed -e 's/.*-//' ++ basename ./no-rpath-i386.sh .sh + 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 PASS: no-rpath-i386.sh ++ ../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 /lib/ld64.so.1 --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 15 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 896 needed space is 928 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 15) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x35c (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x37c (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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx + 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 /lib/ld64.so.1 --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 15 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 1320 needed space is 1376 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 4310 bytes rewriting section '.dynamic' from offset 0x1ba0 (size 496) to offset 0x238 (size 512) rewriting section '.dynstr' from offset 0x12e0 (size 46) to offset 0x438 (size 73) rewriting section '.dynsym' from offset 0x1298 (size 72) to offset 0x488 (size 72) rewriting section '.gnu.hash' from offset 0x1278 (size 28) to offset 0x4d0 (size 28) rewriting section '.hash' from offset 0x1260 (size 24) to offset 0x4f0 (size 24) rewriting section '.interp' from offset 0x1200 (size 24) to offset 0x508 (size 15) rewriting section '.note.ABI-tag' from offset 0x1218 (size 32) to offset 0x518 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1238 (size 36) to offset 0x538 (size 36) 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 PASS: no-rpath-ia64.sh Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx + 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 /lib/ld64.so.1 --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 15 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 1352 needed space is 1408 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4366 bytes rewriting section '.dynamic' from offset 0x16c0 (size 480) to offset 0x238 (size 496) rewriting section '.dynstr' from offset 0x1308 (size 61) to offset 0x428 (size 88) rewriting section '.dynsym' from offset 0x12a8 (size 96) to offset 0x480 (size 96) rewriting section '.gnu.hash' from offset 0x1288 (size 28) to offset 0x4e0 (size 28) rewriting section '.hash' from offset 0x1260 (size 36) to offset 0x500 (size 36) rewriting section '.interp' from offset 0x1200 (size 28) to offset 0x528 (size 15) rewriting section '.note.ABI-tag' from offset 0x121c (size 32) to offset 0x538 (size 32) rewriting section '.note.gnu.build-id' from offset 0x123c (size 36) to offset 0x558 (size 36) 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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-kfreebsd-amd64.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ sed -e 's/.*-//' ++ basename ./no-rpath-kfreebsd-i386.sh .sh + 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 /lib/ld64.so.1 --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 15 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 896 needed space is 928 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 15) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x35c (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x37c (size 36) rewriting symbol table section 3 rewriting symbol table section 36 writing scratch/no-rpath-i386/no-rpath PASS: no-rpath-kfreebsd-i386.sh ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx + 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 PASS: no-rpath-mips.sh + ../src/patchelf --page-size 4096 --set-interpreter /lib/ld64.so.1 --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 15 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 1104 needed space is 1136 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 15) rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x414 (size 32) rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x434 (size 36) rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x458 (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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx + 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 /lib/ld64.so.1 --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 15 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 1104 needed space is 1136 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 15) rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x414 (size 32) rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x434 (size 36) rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x458 (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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx 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 /lib/ld64.so.1 --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 15 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 872 needed space is 904 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 15) rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x344 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x364 (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 '' ']' ++ sed -e 's/.*-//' ++ basename ./no-rpath-s390.sh .sh + 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 /lib/ld64.so.1 --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 15 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 876 needed space is 908 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 15) rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x348 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x368 (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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-s390.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ sed -e 's/.*-//' ++ basename ./no-rpath-sh4.sh .sh + 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 /lib/ld64.so.1 --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 15 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 816 needed space is 848 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 15) rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x32c (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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-sh4.sh + ARCH= + PAGESIZE=4096 + '[' -z '' ']' ++ sed -e 's/.*-//' ++ basename ./no-rpath-sparc.sh .sh + 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 /lib/ld64.so.1 --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 15 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 792 needed space is 824 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 15) rewriting section '.note.ABI-tag' from offset 0x1128 (size 32) to offset 0x2f4 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x314 (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 + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-sparc.sh =================== All 27 tests passed =================== make[2]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/tests' make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11/tests' make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.11' make[1]: Nothing to be done for 'check-am'. make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.11' + RPM_EC=0 ++ jobs -p + exit 0 Processing files: patchelf-0.11-1.fc33.s390x Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.J0ag27 + umask 022 + cd /builddir/build/BUILD + cd patchelf-0.11 + DOCDIR=/builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/doc/patchelf + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/doc/patchelf + cp -pr README.md /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/doc/patchelf + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.B0NLD7 + umask 022 + cd /builddir/build/BUILD + cd patchelf-0.11 + LICENSEDIR=/builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/licenses/patchelf + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/licenses/patchelf + cp -pr COPYING /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x/usr/share/licenses/patchelf + RPM_EC=0 ++ jobs -p + exit 0 Provides: patchelf = 0.11-1.fc33 patchelf(s390-64) = 0.11-1.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.26)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) rtld(GNU_HASH) Processing files: patchelf-debugsource-0.11-1.fc33.s390x Provides: patchelf-debugsource = 0.11-1.fc33 patchelf-debugsource(s390-64) = 0.11-1.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: patchelf-debuginfo-0.11-1.fc33.s390x Provides: debuginfo(build-id) = fe1dd266e7fa4b647f3437254a9c8c0b315f6a98 patchelf-debuginfo = 0.11-1.fc33 patchelf-debuginfo(s390-64) = 0.11-1.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: patchelf-debugsource(s390-64) = 0.11-1.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x Wrote: /builddir/build/RPMS/patchelf-0.11-1.fc33.s390x.rpm Wrote: /builddir/build/RPMS/patchelf-debugsource-0.11-1.fc33.s390x.rpm Wrote: /builddir/build/RPMS/patchelf-debuginfo-0.11-1.fc33.s390x.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.1mCqdb + umask 022 + cd /builddir/build/BUILD + cd patchelf-0.11 + /usr/bin/rm -rf /builddir/build/BUILDROOT/patchelf-0.11-1.fc33.s390x + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0