Mock Version: 1.4.20 Mock Version: 1.4.20 Mock Version: 1.4.20 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/patchelf.spec'], chrootPath='/var/lib/mock/1052477-epel-7-x86_64-1570721207.913832/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf']unshare_net=TrueprintOutput=True) ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/patchelf.spec'], chrootPath='/var/lib/mock/1052477-epel-7-x86_64-1570721207.913832/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf'] Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'e405b39680814d2a862e1215b9eaab10', '-D', '/var/lib/mock/1052477-epel-7-x86_64-1570721207.913832/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --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': 'en_US.UTF-8'} and shell False Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'e405b39680814d2a862e1215b9eaab10', '-D', '/var/lib/mock/1052477-epel-7-x86_64-1570721207.913832/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building target platforms: x86_64 Building for target x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/patchelf-0.10-2.el7.src.rpm Wrote: /builddir/build/SRPMS/patchelf-0.10-2.el7.src.rpm Child return code was: 0 Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/patchelf.spec'], chrootPath='/var/lib/mock/1052477-epel-7-x86_64-1570721207.913832/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf']unshare_net=TrueprintOutput=True) ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/patchelf.spec'], chrootPath='/var/lib/mock/1052477-epel-7-x86_64-1570721207.913832/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf'] Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '7c10feaff43a4629a749182fb2309a9d', '-D', '/var/lib/mock/1052477-epel-7-x86_64-1570721207.913832/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --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': 'en_US.UTF-8'} and shell False Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '7c10feaff43a4629a749182fb2309a9d', '-D', '/var/lib/mock/1052477-epel-7-x86_64-1570721207.913832/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.qu_inpve:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building target platforms: x86_64 Building for target x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yEAqqH Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yEAqqH + umask 022 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf patchelf-0.10 + rm -rf patchelf-0.10 + /usr/bin/gzip -dc /builddir/build/SOURCES/patchelf-0.10.tar.gz + /usr/bin/gzip -dc /builddir/build/SOURCES/patchelf-0.10.tar.gz + /usr/bin/tar -xf - + /usr/bin/tar -xf - + STATUS=0 + STATUS=0 + '[' 0 -ne 0 ']' + '[' 0 -ne 0 ']' + cd patchelf-0.10 + cd patchelf-0.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm src/elf.h + rm src/elf.h + exit 0 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Aw6Hj7 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Aw6Hj7 + umask 022 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + cd patchelf-0.10 + cd patchelf-0.10 + sh ./bootstrap.sh + sh ./bootstrap.sh autoreconf: Entering directory `.' autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force --warnings=all autoreconf: running: aclocal --force --warnings=all autoreconf: configure.ac: tracing autoreconf: configure.ac: tracing autoreconf: configure.ac: creating directory build-aux autoreconf: configure.ac: creating directory build-aux autoreconf: configure.ac: not using Libtool autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force --warnings=all autoreconf: running: /usr/bin/autoconf --force --warnings=all autoreconf: configure.ac: not using Autoheader autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing --warnings=all autoreconf: running: automake --add-missing --copy --force-missing --warnings=all configure.ac:6: installing 'build-aux/compile' configure.ac:6: installing 'build-aux/compile' configure.ac:4: installing 'build-aux/install-sh' configure.ac:4: installing 'build-aux/install-sh' configure.ac:4: installing 'build-aux/missing' configure.ac:4: installing 'build-aux/missing' src/Makefile.am: installing 'build-aux/depcomp' src/Makefile.am: installing 'build-aux/depcomp' autoreconf: Leaving directory `.' autoreconf: Leaving directory `.' + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CFLAGS + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CXXFLAGS + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + export LDFLAGS + '[' 1 == 1 ']' + '[' 1 == 1 ']' + '[' x86_64 == ppc64le ']' + '[' x86_64 == ppc64le ']' ++ find . -name config.guess -o -name config.sub ++ find . -name config.guess -o -name config.sub + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-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 + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-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 for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for style of include used by make... GNU checking for x86_64-redhat-linux-gnu-gcc... no checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for gcc... gcc checking whether the C compiler works... yes checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for C compiler default output file name... a.out checking for suffix of executables... checking for suffix of executables... checking whether we are cross compiling... no checking whether we are cross compiling... no checking for suffix of object files... o checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking dependency style of gcc... none checking whether gcc and cc understand -c and -o together... yes checking whether gcc and cc understand -c and -o together... yes checking for x86_64-redhat-linux-gnu-g++... no checking for x86_64-redhat-linux-gnu-g++... no checking for x86_64-redhat-linux-gnu-c++... no checking for x86_64-redhat-linux-gnu-c++... no checking for x86_64-redhat-linux-gnu-gpp... no checking for x86_64-redhat-linux-gnu-gpp... no checking for x86_64-redhat-linux-gnu-aCC... no checking for x86_64-redhat-linux-gnu-aCC... no checking for x86_64-redhat-linux-gnu-CC... no checking for x86_64-redhat-linux-gnu-CC... no checking for x86_64-redhat-linux-gnu-cxx... no checking for x86_64-redhat-linux-gnu-cxx... no checking for x86_64-redhat-linux-gnu-cc++... no checking for x86_64-redhat-linux-gnu-cc++... no checking for x86_64-redhat-linux-gnu-cl.exe... no checking for x86_64-redhat-linux-gnu-cl.exe... no checking for x86_64-redhat-linux-gnu-FCC... no checking for x86_64-redhat-linux-gnu-FCC... no checking for x86_64-redhat-linux-gnu-KCC... no checking for x86_64-redhat-linux-gnu-KCC... no checking for x86_64-redhat-linux-gnu-RCC... no checking for x86_64-redhat-linux-gnu-RCC... no checking for x86_64-redhat-linux-gnu-xlC_r... no checking for x86_64-redhat-linux-gnu-xlC_r... no checking for x86_64-redhat-linux-gnu-xlC... no checking for x86_64-redhat-linux-gnu-xlC... no checking for g++... g++ checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking dependency style of g++... none Setting page size to 4096 Setting page size to 4096 checking that generated files are newer than configure... done checking that generated files are newer than configure... done configure: creating ./config.status configure: creating ./config.status config.status: creating Makefile config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating tests/Makefile config.status: creating patchelf.spec config.status: creating patchelf.spec config.status: executing depfiles commands config.status: executing depfiles commands + make -j2 + make -j2 Making all in src Making all in src make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/src' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/src' g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o patchelf.o patchelf.cc g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o patchelf.o patchelf.cc g++ -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -o patchelf patchelf.o g++ -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -o patchelf patchelf.o make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/src' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/src' Making all in tests Making all in tests make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10' make[1]: Nothing to be done for `all-am'. make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10' + exit 0 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.MLlmOa Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.MLlmOa + umask 022 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 '!=' / ']' + '[' /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 + rm -rf /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 + mkdir /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 + cd patchelf-0.10 + cd patchelf-0.10 + make install DESTDIR=/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 + make install DESTDIR=/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 Making install in src Making install in src make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/src' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/src' make[2]: Entering directory `/builddir/build/BUILD/patchelf-0.10/src' make[2]: Entering directory `/builddir/build/BUILD/patchelf-0.10/src' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/bin' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/bin' /usr/bin/install -c patchelf '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/bin' /usr/bin/install -c patchelf '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/bin' make[2]: Nothing to be done for `install-data-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/src' make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/src' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/src' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/src' Making install in tests Making install in tests make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' make[2]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' make[2]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10' make[2]: Entering directory `/builddir/build/BUILD/patchelf-0.10' make[2]: Entering directory `/builddir/build/BUILD/patchelf-0.10' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf' /usr/bin/install -c -m 644 README '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf' /usr/bin/install -c -m 644 README '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/man/man1' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/man/man1' /usr/bin/install -c -m 644 patchelf.1 '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/man/man1' /usr/bin/install -c -m 644 patchelf.1 '/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/man/man1' make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10' make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10' + rm -rf /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf + rm -rf /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/patchelf-0.10 + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/patchelf-0.10 extracting debug info from /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/bin/patchelf extracting debug info from /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/bin/patchelf dwz: Too few files for multifile optimization dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 118 blocks 118 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.YDv5Af Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.YDv5Af + umask 022 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + cd patchelf-0.10 + cd patchelf-0.10 + make check + make check Making check in src Making check in src make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/src' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/src' make[1]: Nothing to be done for `check'. make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/src' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/src' Making check in tests Making check in tests make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' make simple main main-scoped big-dynstr no-rpath libfoo.so libfoo-scoped.so libbar.so libbar-scoped.so libsimple.so 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.10/tests' make[2]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o simple-simple.o `test -f 'simple.c' || echo './'`simple.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o simple-simple.o `test -f 'simple.c' || echo './'`simple.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -o simple simple-simple.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -o simple simple-simple.o gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c main.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c main.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c foo.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c foo.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c bar.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c bar.c gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-rpath,`pwd`/no-such-path -Wl,-z,relro -o libbar.so bar.o gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-rpath,`pwd`/no-such-path -Wl,-z,relro -o libbar.so bar.o gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -o libfoo.so foo.o -lbar gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -o libfoo.so foo.o -lbar gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -o main main.o -lfoo gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -o main main.o -lfoo gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -o libbar-scoped.so bar.o gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -o libbar-scoped.so bar.o gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -o libfoo-scoped.so foo.o -lbar-scoped gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -o libfoo-scoped.so foo.o -lbar-scoped gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -o main-scoped main.o -lfoo-scoped gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -o main-scoped main.o -lfoo-scoped cat main.c > big-dynstr.c cat main.c > big-dynstr.c for i in $(seq 1 2000); do echo "void f$i(void) { };" >> big-dynstr.c; done 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.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c big-dynstr.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c big-dynstr.c gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -o big-dynstr big-dynstr.o -lfoo gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -Wl,-rpath-link=. -L. -Wl,-z,relro -o big-dynstr big-dynstr.o -lfoo gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o no_rpath-no-rpath.o `test -f 'no-rpath.c' || echo './'`no-rpath.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -o no-rpath no_rpath-no-rpath.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -o no-rpath no_rpath-no-rpath.o make[2]: `libfoo.so' is up to date. make[2]: `libfoo.so' is up to date. make[2]: `libfoo-scoped.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.so' is up to date. make[2]: `libbar-scoped.so' is up to date. make[2]: `libbar-scoped.so' is up to date. gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c simple.c gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.10\" -DPACKAGE_STRING=\"patchelf\ 0.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.10\" -DPAGESIZE=4096 -I. -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c simple.c gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -o libsimple.so simple.o gcc -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,--disable-new-dtags -shared -L. -Wl,-z,relro -o libsimple.so simple.o make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make check-TESTS make check-TESTS make[2]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' make[2]: Entering directory `/builddir/build/BUILD/patchelf-0.10/tests' ./main: error while loading shared libraries: libfoo.so: cannot open shared object file: No such file or directory ./main: error while loading shared libraries: libfoo.so: cannot open shared object file: No such file or directory PASS: plain-fail.sh PASS: plain-fail.sh Hello World Hello World This is foo()! This is foo()! This is bar()! This is bar()! Result is 46 Result is 46 PASS: plain-run.sh PASS: plain-run.sh Kernel page size is 4096 bytes Kernel page size is 4096 bytes RPATH before: /builddir/build/BUILD/patchelf-0.10/tests/no-such-path RPATH before: /builddir/build/BUILD/patchelf-0.10/tests/no-such-path patching ELF file 'scratch/shrink-rpath/libbar.so' patching ELF file 'scratch/shrink-rpath/libbar.so' Kernel page size is 4096 bytes Kernel page size is 4096 bytes removing directory '/builddir/build/BUILD/patchelf-0.10/tests/no-such-path' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.10/tests/no-such-path' from RPATH new rpath is '' new rpath is '' Kernel page size is 4096 bytes Kernel page size is 4096 bytes RPATH after: RPATH after: Hello World Hello World This is foo()! This is foo()! This is bar()! This is bar()! Result is 46 Result is 46 PASS: shrink-rpath.sh PASS: shrink-rpath.sh Hello World Hello World Kernel page size is 4096 bytes Kernel page size is 4096 bytes current interpreter is /lib64/ld-linux-x86-64.so.2 current interpreter is /lib64/ld-linux-x86-64.so.2 patching ELF file 'scratch/set-interpreter-short/simple' patching ELF file 'scratch/set-interpreter-short/simple' Kernel page size is 4096 bytes Kernel page size is 4096 bytes replacing section '.interp' with size 6 replacing section '.interp' with size 6 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' last replaced is 1 last replaced is 1 looking at section '.interp' looking at section '.interp' first reserved offset/addr is 0x254/0x400254 first reserved offset/addr is 0x254/0x400254 first page is 0x400000 first page is 0x400000 needed space is 576 needed space is 576 clearing first 28 bytes clearing first 28 bytes rewriting section '.interp' from offset 0x238 (size 28) to offset 0x238 (size 6) rewriting section '.interp' from offset 0x238 (size 28) to offset 0x238 (size 6) rewriting symbol table section 5 rewriting symbol table section 5 rewriting symbol table section 34 rewriting symbol table section 34 running with missing interpreter... running with missing interpreter... ./set-interpreter-short.sh: scratch/set-interpreter-short/simple: /oops: bad ELF interpreter: No such file or directory ./set-interpreter-short.sh: scratch/set-interpreter-short/simple: /oops: bad ELF interpreter: No such file or directory PASS: set-interpreter-short.sh PASS: set-interpreter-short.sh Hello World Hello World Kernel page size is 4096 bytes Kernel page size is 4096 bytes current interpreter is /lib64/ld-linux-x86-64.so.2 current interpreter is /lib64/ld-linux-x86-64.so.2 running with explicit interpreter... running with explicit interpreter... Hello World Hello World patching ELF file 'scratch/set-interpreter-long/simple' patching ELF file 'scratch/set-interpreter-long/simple' Kernel page size is 4096 bytes Kernel page size is 4096 bytes replacing section '.interp' with size 172 replacing section '.interp' with size 172 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' last replaced is 1 last replaced is 1 looking at section '.interp' looking at section '.interp' first reserved offset/addr is 0x254/0x400254 first reserved offset/addr is 0x254/0x400254 first page is 0x400000 first page is 0x400000 needed space is 744 needed space is 744 needed space is 800 needed space is 800 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4068 bytes clearing first 4068 bytes rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x270 (size 172) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x270 (size 172) rewriting symbol table section 5 rewriting symbol table section 5 rewriting symbol table section 34 rewriting symbol table section 34 running with missing interpreter... running with missing interpreter... ./set-interpreter-long.sh: scratch/set-interpreter-long/simple: /builddir/build/BUILD/patchelf-0.10/tests/scratch/set-interpreter-long/iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii: bad ELF interpreter: No such file or directory ./set-interpreter-long.sh: scratch/set-interpreter-long/simple: /builddir/build/BUILD/patchelf-0.10/tests/scratch/set-interpreter-long/iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii: bad ELF interpreter: No such file or directory running with new interpreter... running with new interpreter... Hello World Hello World running with explicit interpreter... running with explicit interpreter... Hello World Hello World PASS: set-interpreter-long.sh PASS: set-interpreter-long.sh Kernel page size is 4096 bytes Kernel page size is 4096 bytes patching ELF file 'scratch/set-rpath/main' patching ELF file 'scratch/set-rpath/main' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath/libsA:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath/libsB' new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath/libsA:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath/libsB' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 274 replacing section '.dynstr' with size 274 this is an executable this is an executable using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 21 last replaced is 21 looking at section '.interp' looking at section '.interp' replacing section '.interp' which is in the way replacing section '.interp' which is in the way looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x460/0x400460 first reserved offset/addr is 0x460/0x400460 first page is 0x400000 first page is 0x400000 needed space is 1768 needed space is 1768 needed space is 1824 needed space is 1824 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4592 bytes clearing first 4592 bytes rewriting section '.dynamic' from offset 0x1e18 (size 480) to offset 0x270 (size 496) rewriting section '.dynamic' from offset 0x1e18 (size 480) to offset 0x270 (size 496) rewriting section '.dynstr' from offset 0x13d8 (size 136) to offset 0x460 (size 274) rewriting section '.dynstr' from offset 0x13d8 (size 136) to offset 0x460 (size 274) rewriting section '.dynsym' from offset 0x12d0 (size 264) to offset 0x578 (size 264) rewriting section '.dynsym' from offset 0x12d0 (size 264) to offset 0x578 (size 264) rewriting section '.gnu.hash' from offset 0x1298 (size 56) to offset 0x680 (size 56) rewriting section '.gnu.hash' from offset 0x1298 (size 56) to offset 0x680 (size 56) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x6b8 (size 28) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x6b8 (size 28) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x6d8 (size 32) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x6d8 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x6f8 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x6f8 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 34 rewriting symbol table section 34 Hello World Hello World This is foo()! This is foo()! This is bar()! This is bar()! Result is 46 Result is 46 PASS: set-rpath.sh PASS: set-rpath.sh Kernel page size is 4096 bytes Kernel page size is 4096 bytes Kernel page size is 4096 bytes Kernel page size is 4096 bytes patching ELF file 'scratch/no-rpath/no-rpath' patching ELF file 'scratch/no-rpath/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 23 DT_NULL index is 23 replacing section '.dynamic' with size 480 replacing section '.dynamic' with size 480 replacing section '.dynstr' with size 88 replacing section '.dynstr' with size 88 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 21 last replaced is 21 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x356/0x400356 first reserved offset/addr is 0x356/0x400356 first page is 0x400000 first page is 0x400000 needed space is 1368 needed space is 1368 needed space is 1424 needed space is 1424 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4326 bytes clearing first 4326 bytes rewriting section '.dynamic' from offset 0x1e28 (size 464) to offset 0x270 (size 480) rewriting section '.dynamic' from offset 0x1e28 (size 464) to offset 0x270 (size 480) rewriting section '.dynstr' from offset 0x1318 (size 61) to offset 0x450 (size 88) rewriting section '.dynstr' from offset 0x1318 (size 61) to offset 0x450 (size 88) rewriting section '.dynsym' from offset 0x12b8 (size 96) to offset 0x4a8 (size 96) rewriting section '.dynsym' from offset 0x12b8 (size 96) to offset 0x4a8 (size 96) rewriting section '.gnu.hash' from offset 0x1298 (size 28) to offset 0x508 (size 28) rewriting section '.gnu.hash' from offset 0x1298 (size 28) to offset 0x508 (size 28) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x528 (size 28) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x528 (size 28) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x548 (size 32) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x548 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x568 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x568 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 33 rewriting symbol table section 33 Kernel page size is 4096 bytes Kernel page size is 4096 bytes Hello world Hello world PASS: no-rpath.sh PASS: no-rpath.sh Kernel page size is 4096 bytes Kernel page size is 4096 bytes patching ELF file 'scratch/big-dynstr/big-dynstr' patching ELF file 'scratch/big-dynstr/big-dynstr' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/big-dynstr/libsA:/builddir/build/BUILD/patchelf-0.10/tests/scratch/big-dynstr/libsB' new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/big-dynstr/libsA:/builddir/build/BUILD/patchelf-0.10/tests/scratch/big-dynstr/libsB' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 276 replacing section '.dynstr' with size 276 this is an executable this is an executable using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 21 last replaced is 21 looking at section '.interp' looking at section '.interp' replacing section '.interp' which is in the way replacing section '.interp' which is in the way looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x460/0x400460 first reserved offset/addr is 0x460/0x400460 first page is 0x400000 first page is 0x400000 needed space is 1768 needed space is 1768 needed space is 1824 needed space is 1824 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4592 bytes clearing first 4592 bytes rewriting section '.dynamic' from offset 0x19e18 (size 480) to offset 0x270 (size 496) rewriting section '.dynamic' from offset 0x19e18 (size 480) to offset 0x270 (size 496) rewriting section '.dynstr' from offset 0x13d8 (size 136) to offset 0x460 (size 276) rewriting section '.dynstr' from offset 0x13d8 (size 136) to offset 0x460 (size 276) rewriting section '.dynsym' from offset 0x12d0 (size 264) to offset 0x578 (size 264) rewriting section '.dynsym' from offset 0x12d0 (size 264) to offset 0x578 (size 264) rewriting section '.gnu.hash' from offset 0x1298 (size 56) to offset 0x680 (size 56) rewriting section '.gnu.hash' from offset 0x1298 (size 56) to offset 0x680 (size 56) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x6b8 (size 28) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x6b8 (size 28) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x6d8 (size 32) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x6d8 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x6f8 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x6f8 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 34 rewriting symbol table section 34 Hello World Hello World This is foo()! This is foo()! This is bar()! This is bar()! Result is 46 Result is 46 PASS: big-dynstr.sh PASS: big-dynstr.sh Kernel page size is 4096 bytes Kernel page size is 4096 bytes patching ELF file 'scratch/set-rpath-library/main-scoped' patching ELF file 'scratch/set-rpath-library/main-scoped' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsA:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsB' new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsA:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsB' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 297 replacing section '.dynstr' with size 297 this is an executable this is an executable using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 21 last replaced is 21 looking at section '.interp' looking at section '.interp' replacing section '.interp' which is in the way replacing section '.interp' which is in the way looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x468/0x400468 first reserved offset/addr is 0x468/0x400468 first page is 0x400000 first page is 0x400000 needed space is 1792 needed space is 1792 needed space is 1848 needed space is 1848 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4600 bytes clearing first 4600 bytes rewriting section '.dynamic' from offset 0x1e18 (size 480) to offset 0x270 (size 496) rewriting section '.dynamic' from offset 0x1e18 (size 480) to offset 0x270 (size 496) rewriting section '.dynstr' from offset 0x13d8 (size 143) to offset 0x460 (size 297) rewriting section '.dynstr' from offset 0x13d8 (size 143) to offset 0x460 (size 297) rewriting section '.dynsym' from offset 0x12d0 (size 264) to offset 0x590 (size 264) rewriting section '.dynsym' from offset 0x12d0 (size 264) to offset 0x590 (size 264) rewriting section '.gnu.hash' from offset 0x1298 (size 56) to offset 0x698 (size 56) rewriting section '.gnu.hash' from offset 0x1298 (size 56) to offset 0x698 (size 56) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x6d0 (size 28) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x6d0 (size 28) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x6f0 (size 32) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x6f0 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x710 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x710 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 34 rewriting symbol table section 34 ./main-scoped: error while loading shared libraries: libbar-scoped.so: cannot open shared object file: No such file or directory ./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 Kernel page size is 4096 bytes patching ELF file 'scratch/set-rpath-library/libsA/libfoo-scoped.so' patching ELF file 'scratch/set-rpath-library/libsA/libfoo-scoped.so' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsB' new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsB' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 480 replacing section '.dynamic' with size 480 replacing section '.dynstr' with size 299 replacing section '.dynstr' with size 299 this is a dynamic library this is a dynamic library last page is 0x202000 last page is 0x202000 needed space is 888 needed space is 888 rewriting section '.dynamic' from offset 0xe08 (size 464) to offset 0x3000 (size 480) rewriting section '.dynamic' from offset 0xe08 (size 464) to offset 0x3000 (size 480) rewriting section '.dynstr' from offset 0x408 (size 219) to offset 0x31e0 (size 299) rewriting section '.dynstr' from offset 0x408 (size 219) to offset 0x31e0 (size 299) rewriting section '.gnu.hash' from offset 0x260 (size 64) to offset 0x3310 (size 64) rewriting section '.gnu.hash' from offset 0x260 (size 64) to offset 0x3310 (size 64) rewriting section '.note.gnu.build-id' from offset 0x238 (size 36) to offset 0x3350 (size 36) rewriting section '.note.gnu.build-id' from offset 0x238 (size 36) to offset 0x3350 (size 36) rewriting symbol table section 1 rewriting symbol table section 1 rewriting symbol table section 28 rewriting symbol table section 28 Hello World Hello World This is foo()! This is foo()! This is bar()! This is bar()! Result is 46 Result is 46 patching ELF file 'scratch/set-rpath-library/main-scoped' patching ELF file 'scratch/set-rpath-library/main-scoped' Kernel page size is 4096 bytes Kernel page size is 4096 bytes removing directory '/oops' from RPATH removing directory '/oops' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsB' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsB' from RPATH new rpath is '/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsA' new rpath is '/builddir/build/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsA' Kernel page size is 4096 bytes Kernel page size is 4096 bytes Hello World Hello World This is foo()! This is foo()! This is bar()! This is bar()! Result is 46 Result is 46 PASS: set-rpath-library.sh PASS: set-rpath-library.sh patching ELF file 'scratch/soname/libsimple.so' patching ELF file 'scratch/soname/libsimple.so' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new SONAME is 'libsimple.so.1.0' new SONAME is 'libsimple.so.1.0' SONAME is too long, resizing... SONAME is too long, resizing... DT_NULL index is 23 DT_NULL index is 23 replacing section '.dynamic' with size 464 replacing section '.dynamic' with size 464 replacing section '.dynstr' with size 194 replacing section '.dynstr' with size 194 this is a dynamic library this is a dynamic library last page is 0x1202000 last page is 0x1202000 needed space is 768 needed space is 768 rewriting section '.dynamic' from offset 0xe18 (size 448) to offset 0x3000 (size 464) rewriting section '.dynamic' from offset 0xe18 (size 448) to offset 0x3000 (size 464) rewriting section '.dynstr' from offset 0x380 (size 177) to offset 0x31d0 (size 194) rewriting section '.dynstr' from offset 0x380 (size 177) to offset 0x31d0 (size 194) rewriting section '.gnu.hash' from offset 0x1f0 (size 64) to offset 0x3298 (size 64) rewriting section '.gnu.hash' from offset 0x1f0 (size 64) to offset 0x3298 (size 64) rewriting section '.note.gnu.build-id' from offset 0x1c8 (size 36) to offset 0x32d8 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1c8 (size 36) to offset 0x32d8 (size 36) rewriting symbol table section 1 rewriting symbol table section 1 rewriting symbol table section 28 rewriting symbol table section 28 Kernel page size is 4096 bytes Kernel page size is 4096 bytes Kernel page size is 4096 bytes Kernel page size is 4096 bytes patching ELF file 'scratch/soname/libsimple.so' patching ELF file 'scratch/soname/libsimple.so' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new SONAME is 'libsimple.so.1.1' new SONAME is 'libsimple.so.1.1' SONAME is too long, resizing... SONAME is too long, resizing... replacing section '.dynstr' with size 211 replacing section '.dynstr' with size 211 this is a dynamic library this is a dynamic library last page is 0x1203000 last page is 0x1203000 needed space is 552 needed space is 552 rewriting section '.dynstr' from offset 0x31d0 (size 194) to offset 0x4000 (size 211) rewriting section '.dynstr' from offset 0x31d0 (size 194) to offset 0x4000 (size 211) rewriting section '.dynsym' from offset 0x230 (size 336) to offset 0x40d8 (size 336) rewriting section '.dynsym' from offset 0x230 (size 336) to offset 0x40d8 (size 336) rewriting symbol table section 27 rewriting symbol table section 27 rewriting symbol table section 34 rewriting symbol table section 34 Kernel page size is 4096 bytes Kernel page size is 4096 bytes PASS: soname.sh PASS: soname.sh Kernel page size is 4096 bytes Kernel page size is 4096 bytes patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/main' patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/main' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA:/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' new rpath is '/oops:/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA:/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 324 replacing section '.dynstr' with size 324 this is an executable this is an executable using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 21 last replaced is 21 looking at section '.interp' looking at section '.interp' replacing section '.interp' which is in the way replacing section '.interp' which is in the way looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x460/0x400460 first reserved offset/addr is 0x460/0x400460 first page is 0x400000 first page is 0x400000 needed space is 1816 needed space is 1816 needed space is 1872 needed space is 1872 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4592 bytes clearing first 4592 bytes rewriting section '.dynamic' from offset 0x1e18 (size 480) to offset 0x270 (size 496) rewriting section '.dynamic' from offset 0x1e18 (size 480) to offset 0x270 (size 496) rewriting section '.dynstr' from offset 0x13d8 (size 136) to offset 0x460 (size 324) rewriting section '.dynstr' from offset 0x13d8 (size 136) to offset 0x460 (size 324) rewriting section '.dynsym' from offset 0x12d0 (size 264) to offset 0x5a8 (size 264) rewriting section '.dynsym' from offset 0x12d0 (size 264) to offset 0x5a8 (size 264) rewriting section '.gnu.hash' from offset 0x1298 (size 56) to offset 0x6b0 (size 56) rewriting section '.gnu.hash' from offset 0x1298 (size 56) to offset 0x6b0 (size 56) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x6e8 (size 28) rewriting section '.interp' from offset 0x1238 (size 28) to offset 0x6e8 (size 28) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x708 (size 32) rewriting section '.note.ABI-tag' from offset 0x1254 (size 32) to offset 0x708 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x728 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1274 (size 36) to offset 0x728 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 34 rewriting symbol table section 34 patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/main' patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/main' Kernel page size is 4096 bytes Kernel page size is 4096 bytes removing directory '/oops' from RPATH removing directory '/oops' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH new rpath is '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' new rpath is '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/mainA' patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/mainA' Kernel page size is 4096 bytes Kernel page size is 4096 bytes removing directory '/oops' from RPATH removing directory '/oops' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH because of non-allowed prefix removing directory '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH because of non-allowed prefix new rpath is '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' new rpath is '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/mainB' patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/mainB' Kernel page size is 4096 bytes Kernel page size is 4096 bytes removing directory '/oops' from RPATH removing directory '/oops' from RPATH removing directory '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' from RPATH because of non-allowed prefix removing directory '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' from RPATH because of non-allowed prefix new rpath is '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' new rpath is '/builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' Kernel page size is 4096 bytes Kernel page size is 4096 bytes RPATH of scratch/shrink-rpath-with-allowed-prefixes/main after: /builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA RPATH of scratch/shrink-rpath-with-allowed-prefixes/main after: /builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA Kernel page size is 4096 bytes Kernel page size is 4096 bytes RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainA after: /builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainA after: /builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA Kernel page size is 4096 bytes Kernel page size is 4096 bytes RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainB after: /builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainB after: /builddir/build/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB PASS: shrink-rpath-with-allowed-prefixes.sh PASS: shrink-rpath-with-allowed-prefixes.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-amd64.sh .sh ++ basename ./no-rpath-amd64.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=amd64 + ARCH=amd64 + SCRATCH=scratch/no-rpath-amd64 + SCRATCH=scratch/no-rpath-amd64 + '[' -z amd64 ']' + '[' -z amd64 ']' + '[' amd64 = prebuild ']' + '[' amd64 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-amd64 + no_rpath_bin=./no-rpath-prebuild/no-rpath-amd64 + '[' '!' -f ./no-rpath-prebuild/no-rpath-amd64 ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-amd64 ']' + rm -rf scratch/no-rpath-amd64 + rm -rf scratch/no-rpath-amd64 + mkdir -p scratch/no-rpath-amd64 + mkdir -p scratch/no-rpath-amd64 + cp ./no-rpath-prebuild/no-rpath-amd64 scratch/no-rpath-amd64/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-amd64/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-amd64/no-rpath patching ELF file 'scratch/no-rpath-amd64/no-rpath' patching ELF file 'scratch/no-rpath-amd64/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 88 replacing section '.dynstr' with size 88 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x346/0x400346 first reserved offset/addr is 0x346/0x400346 first page is 0x400000 first page is 0x400000 needed space is 1368 needed space is 1368 needed space is 1424 needed space is 1424 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4366 bytes clearing first 4366 bytes rewriting section '.dynamic' from offset 0x16c0 (size 480) to offset 0x238 (size 496) 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 '.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 '.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 '.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 '.hash' from offset 0x1260 (size 36) to offset 0x500 (size 36) rewriting section '.interp' from offset 0x1200 (size 28) to offset 0x528 (size 28) rewriting section '.interp' from offset 0x1200 (size 28) to offset 0x528 (size 28) rewriting section '.note.ABI-tag' from offset 0x121c (size 32) to offset 0x548 (size 32) rewriting section '.note.ABI-tag' from offset 0x121c (size 32) to offset 0x548 (size 32) rewriting section '.note.gnu.build-id' from offset 0x123c (size 36) to offset 0x568 (size 36) rewriting section '.note.gnu.build-id' from offset 0x123c (size 36) to offset 0x568 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 36 rewriting symbol table section 36 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-amd64.sh PASS: no-rpath-amd64.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' ++ basename ./no-rpath-armel.sh .sh ++ basename ./no-rpath-armel.sh .sh + ARCH=armel + ARCH=armel + SCRATCH=scratch/no-rpath-armel + SCRATCH=scratch/no-rpath-armel + '[' -z armel ']' + '[' -z armel ']' + '[' armel = prebuild ']' + '[' armel = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-armel + no_rpath_bin=./no-rpath-prebuild/no-rpath-armel + '[' '!' -f ./no-rpath-prebuild/no-rpath-armel ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-armel ']' + rm -rf scratch/no-rpath-armel + rm -rf scratch/no-rpath-armel + mkdir -p scratch/no-rpath-armel + mkdir -p scratch/no-rpath-armel + cp ./no-rpath-prebuild/no-rpath-armel scratch/no-rpath-armel/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armel/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-armel/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-armel/no-rpath patching ELF file 'scratch/no-rpath-armel/no-rpath' patching ELF file 'scratch/no-rpath-armel/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 92 replacing section '.dynstr' with size 92 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x272/0x8272 first reserved offset/addr is 0x272/0x8272 first page is 0x8000 first page is 0x8000 needed space is 908 needed space is 908 needed space is 940 needed space is 940 needed pages is 1 needed pages is 1 changing alignment of program header 3 from 32768 to 4096 changing alignment of program header 3 from 32768 to 4096 changing alignment of program header 4 from 32768 to 4096 changing alignment of program header 4 from 32768 to 4096 clearing first 4382 bytes clearing first 4382 bytes rewriting section '.dynamic' from offset 0x1494 (size 240) to offset 0x154 (size 248) 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 '.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 '.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 '.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 '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 28) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 28) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x368 (size 32) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x368 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x388 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x388 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 37 rewriting symbol table section 37 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-armel.sh PASS: no-rpath-armel.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-armhf.sh .sh ++ basename ./no-rpath-armhf.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=armhf + ARCH=armhf + SCRATCH=scratch/no-rpath-armhf + SCRATCH=scratch/no-rpath-armhf + '[' -z armhf ']' + '[' -z armhf ']' + '[' armhf = prebuild ']' + '[' armhf = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-armhf + no_rpath_bin=./no-rpath-prebuild/no-rpath-armhf + '[' '!' -f ./no-rpath-prebuild/no-rpath-armhf ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-armhf ']' + rm -rf scratch/no-rpath-armhf + rm -rf scratch/no-rpath-armhf + mkdir -p scratch/no-rpath-armhf + mkdir -p scratch/no-rpath-armhf + cp ./no-rpath-prebuild/no-rpath-armhf scratch/no-rpath-armhf/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armhf/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-armhf/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-armhf/no-rpath patching ELF file 'scratch/no-rpath-armhf/no-rpath' patching ELF file 'scratch/no-rpath-armhf/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 92 replacing section '.dynstr' with size 92 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x27a/0x827a first reserved offset/addr is 0x27a/0x827a first page is 0x8000 first page is 0x8000 needed space is 908 needed space is 908 needed space is 940 needed space is 940 needed pages is 1 needed pages is 1 changing alignment of program header 3 from 32768 to 4096 changing alignment of program header 3 from 32768 to 4096 changing alignment of program header 4 from 32768 to 4096 changing alignment of program header 4 from 32768 to 4096 clearing first 4390 bytes clearing first 4390 bytes rewriting section '.dynamic' from offset 0x1424 (size 240) to offset 0x154 (size 248) 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 '.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 '.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 '.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 '.hash' from offset 0x1194 (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 25) to offset 0x34c (size 28) rewriting section '.interp' from offset 0x1134 (size 25) to offset 0x34c (size 28) rewriting section '.note.ABI-tag' from offset 0x1150 (size 32) to offset 0x368 (size 32) rewriting section '.note.ABI-tag' from offset 0x1150 (size 32) to offset 0x368 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1170 (size 36) to offset 0x388 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1170 (size 36) to offset 0x388 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 37 rewriting symbol table section 37 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-armhf.sh PASS: no-rpath-armhf.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-hurd-i386.sh .sh ++ basename ./no-rpath-hurd-i386.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=i386 + ARCH=i386 + SCRATCH=scratch/no-rpath-i386 + SCRATCH=scratch/no-rpath-i386 + '[' -z i386 ']' + '[' -z i386 ']' + '[' i386 = prebuild ']' + '[' i386 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-i386 + no_rpath_bin=./no-rpath-prebuild/no-rpath-i386 + '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']' + rm -rf scratch/no-rpath-i386 + rm -rf scratch/no-rpath-i386 + mkdir -p scratch/no-rpath-i386 + mkdir -p scratch/no-rpath-i386 + cp ./no-rpath-prebuild/no-rpath-i386 scratch/no-rpath-i386/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath patching ELF file 'scratch/no-rpath-i386/no-rpath' patching ELF file 'scratch/no-rpath-i386/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 101 replacing section '.dynstr' with size 101 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x26e/0x804826e first reserved offset/addr is 0x26e/0x804826e first page is 0x8048000 first page is 0x8048000 needed space is 908 needed space is 908 needed space is 940 needed space is 940 needed pages is 1 needed pages is 1 clearing first 4378 bytes clearing first 4378 bytes rewriting section '.dynamic' from offset 0x1544 (size 240) to offset 0x154 (size 248) 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 '.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 '.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 '.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 '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 28) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 28) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x368 (size 32) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x368 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x388 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x388 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 36 rewriting symbol table section 36 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-hurd-i386.sh PASS: no-rpath-hurd-i386.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-i386.sh .sh ++ basename ./no-rpath-i386.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=i386 + ARCH=i386 + SCRATCH=scratch/no-rpath-i386 + SCRATCH=scratch/no-rpath-i386 + '[' -z i386 ']' + '[' -z i386 ']' + '[' i386 = prebuild ']' + '[' i386 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-i386 + no_rpath_bin=./no-rpath-prebuild/no-rpath-i386 + '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']' + rm -rf scratch/no-rpath-i386 + rm -rf scratch/no-rpath-i386 + mkdir -p scratch/no-rpath-i386 + mkdir -p scratch/no-rpath-i386 + cp ./no-rpath-prebuild/no-rpath-i386 scratch/no-rpath-i386/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath patching ELF file 'scratch/no-rpath-i386/no-rpath' patching ELF file 'scratch/no-rpath-i386/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 101 replacing section '.dynstr' with size 101 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x26e/0x804826e first reserved offset/addr is 0x26e/0x804826e first page is 0x8048000 first page is 0x8048000 needed space is 908 needed space is 908 needed space is 940 needed space is 940 needed pages is 1 needed pages is 1 clearing first 4378 bytes clearing first 4378 bytes rewriting section '.dynamic' from offset 0x1544 (size 240) to offset 0x154 (size 248) 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 '.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 '.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 '.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 '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 28) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 28) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x368 (size 32) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x368 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x388 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x388 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 36 rewriting symbol table section 36 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-i386.sh PASS: no-rpath-i386.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-ia64.sh .sh ++ basename ./no-rpath-ia64.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=ia64 + ARCH=ia64 + SCRATCH=scratch/no-rpath-ia64 + SCRATCH=scratch/no-rpath-ia64 + '[' -z ia64 ']' + '[' -z ia64 ']' + '[' ia64 = prebuild ']' + '[' ia64 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-ia64 + no_rpath_bin=./no-rpath-prebuild/no-rpath-ia64 + '[' '!' -f ./no-rpath-prebuild/no-rpath-ia64 ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-ia64 ']' + rm -rf scratch/no-rpath-ia64 + rm -rf scratch/no-rpath-ia64 + mkdir -p scratch/no-rpath-ia64 + mkdir -p scratch/no-rpath-ia64 + cp ./no-rpath-prebuild/no-rpath-ia64 scratch/no-rpath-ia64/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-ia64/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-ia64/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-ia64/no-rpath patching ELF file 'scratch/no-rpath-ia64/no-rpath' patching ELF file 'scratch/no-rpath-ia64/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 25 DT_NULL index is 25 replacing section '.dynamic' with size 512 replacing section '.dynamic' with size 512 replacing section '.dynstr' with size 73 replacing section '.dynstr' with size 73 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x30e/0x400000000000030e first reserved offset/addr is 0x30e/0x400000000000030e first page is 0x4000000000000000 first page is 0x4000000000000000 needed space is 1336 needed space is 1336 needed space is 1392 needed space is 1392 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 clearing first 4310 bytes clearing first 4310 bytes rewriting section '.dynamic' from offset 0x1ba0 (size 496) to offset 0x238 (size 512) 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 '.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 '.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 '.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 '.hash' from offset 0x1260 (size 24) to offset 0x4f0 (size 24) rewriting section '.interp' from offset 0x1200 (size 24) to offset 0x508 (size 28) rewriting section '.interp' from offset 0x1200 (size 24) to offset 0x508 (size 28) rewriting section '.note.ABI-tag' from offset 0x1218 (size 32) to offset 0x528 (size 32) rewriting section '.note.ABI-tag' from offset 0x1218 (size 32) to offset 0x528 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1238 (size 36) to offset 0x548 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1238 (size 36) to offset 0x548 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 39 rewriting symbol table section 39 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx PASS: no-rpath-ia64.sh PASS: no-rpath-ia64.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-kfreebsd-amd64.sh .sh ++ basename ./no-rpath-kfreebsd-amd64.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=amd64 + ARCH=amd64 + SCRATCH=scratch/no-rpath-amd64 + SCRATCH=scratch/no-rpath-amd64 + '[' -z amd64 ']' + '[' -z amd64 ']' + '[' amd64 = prebuild ']' + '[' amd64 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-amd64 + no_rpath_bin=./no-rpath-prebuild/no-rpath-amd64 + '[' '!' -f ./no-rpath-prebuild/no-rpath-amd64 ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-amd64 ']' + rm -rf scratch/no-rpath-amd64 + rm -rf scratch/no-rpath-amd64 + mkdir -p scratch/no-rpath-amd64 + mkdir -p scratch/no-rpath-amd64 + cp ./no-rpath-prebuild/no-rpath-amd64 scratch/no-rpath-amd64/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-amd64/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-amd64/no-rpath patching ELF file 'scratch/no-rpath-amd64/no-rpath' patching ELF file 'scratch/no-rpath-amd64/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 496 replacing section '.dynamic' with size 496 replacing section '.dynstr' with size 88 replacing section '.dynstr' with size 88 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x346/0x400346 first reserved offset/addr is 0x346/0x400346 first page is 0x400000 first page is 0x400000 needed space is 1368 needed space is 1368 needed space is 1424 needed space is 1424 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 2 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 changing alignment of program header 3 from 2097152 to 4096 clearing first 4366 bytes clearing first 4366 bytes rewriting section '.dynamic' from offset 0x16c0 (size 480) to offset 0x238 (size 496) 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 '.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 '.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 '.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 '.hash' from offset 0x1260 (size 36) to offset 0x500 (size 36) rewriting section '.interp' from offset 0x1200 (size 28) to offset 0x528 (size 28) rewriting section '.interp' from offset 0x1200 (size 28) to offset 0x528 (size 28) rewriting section '.note.ABI-tag' from offset 0x121c (size 32) to offset 0x548 (size 32) rewriting section '.note.ABI-tag' from offset 0x121c (size 32) to offset 0x548 (size 32) rewriting section '.note.gnu.build-id' from offset 0x123c (size 36) to offset 0x568 (size 36) rewriting section '.note.gnu.build-id' from offset 0x123c (size 36) to offset 0x568 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 36 rewriting symbol table section 36 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-kfreebsd-amd64.sh PASS: no-rpath-kfreebsd-amd64.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-kfreebsd-i386.sh .sh ++ basename ./no-rpath-kfreebsd-i386.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=i386 + ARCH=i386 + SCRATCH=scratch/no-rpath-i386 + SCRATCH=scratch/no-rpath-i386 + '[' -z i386 ']' + '[' -z i386 ']' + '[' i386 = prebuild ']' + '[' i386 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-i386 + no_rpath_bin=./no-rpath-prebuild/no-rpath-i386 + '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']' + rm -rf scratch/no-rpath-i386 + rm -rf scratch/no-rpath-i386 + mkdir -p scratch/no-rpath-i386 + mkdir -p scratch/no-rpath-i386 + cp ./no-rpath-prebuild/no-rpath-i386 scratch/no-rpath-i386/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath patching ELF file 'scratch/no-rpath-i386/no-rpath' patching ELF file 'scratch/no-rpath-i386/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 24 DT_NULL index is 24 replacing section '.dynamic' with size 248 replacing section '.dynamic' with size 248 replacing section '.dynstr' with size 101 replacing section '.dynstr' with size 101 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x26e/0x804826e first reserved offset/addr is 0x26e/0x804826e first page is 0x8048000 first page is 0x8048000 needed space is 908 needed space is 908 needed space is 940 needed space is 940 needed pages is 1 needed pages is 1 clearing first 4378 bytes clearing first 4378 bytes rewriting section '.dynamic' from offset 0x1544 (size 240) to offset 0x154 (size 248) 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 '.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 '.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 '.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 '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 28) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 28) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x368 (size 32) rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x368 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x388 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x388 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 36 rewriting symbol table section 36 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-kfreebsd-i386.sh PASS: no-rpath-kfreebsd-i386.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-mips.sh .sh ++ basename ./no-rpath-mips.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=mips + ARCH=mips + SCRATCH=scratch/no-rpath-mips + SCRATCH=scratch/no-rpath-mips + '[' -z mips ']' + '[' -z mips ']' + '[' mips = prebuild ']' + '[' mips = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-mips + no_rpath_bin=./no-rpath-prebuild/no-rpath-mips + '[' '!' -f ./no-rpath-prebuild/no-rpath-mips ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-mips ']' + rm -rf scratch/no-rpath-mips + rm -rf scratch/no-rpath-mips + mkdir -p scratch/no-rpath-mips + mkdir -p scratch/no-rpath-mips + cp ./no-rpath-prebuild/no-rpath-mips scratch/no-rpath-mips/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mips/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-mips/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-mips/no-rpath patching ELF file 'scratch/no-rpath-mips/no-rpath' patching ELF file 'scratch/no-rpath-mips/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 25 DT_NULL index is 25 replacing section '.dynamic' with size 256 replacing section '.dynamic' with size 256 replacing section '.dynstr' with size 160 replacing section '.dynstr' with size 160 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynamic' using replaced section '.dynamic' using replaced section '.dynstr' using replaced section '.dynstr' last replaced is 8 last replaced is 8 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.reginfo' looking at section '.reginfo' replacing section '.reginfo' which is in the way replacing section '.reginfo' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.dynamic' looking at section '.dynamic' looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' first reserved offset/addr is 0x42e/0x40042e first reserved offset/addr is 0x42e/0x40042e first page is 0x400000 first page is 0x400000 needed space is 1116 needed space is 1116 needed space is 1148 needed space is 1148 needed pages is 1 needed pages is 1 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 4 from 65536 to 4096 changing alignment of program header 4 from 65536 to 4096 clearing first 4794 bytes clearing first 4794 bytes rewriting section '.dynamic' from offset 0x11c0 (size 248) to offset 0x174 (size 256) 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 '.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 '.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 '.hash' from offset 0x12b8 (size 64) to offset 0x3c4 (size 64) rewriting section '.interp' from offset 0x1154 (size 13) to offset 0x404 (size 28) rewriting section '.interp' from offset 0x1154 (size 13) to offset 0x404 (size 28) rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x420 (size 32) rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x420 (size 32) rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x440 (size 36) rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x440 (size 36) rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x464 (size 24) rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x464 (size 24) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 41 rewriting symbol table section 41 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-mips.sh PASS: no-rpath-mips.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-mipsel.sh .sh ++ basename ./no-rpath-mipsel.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=mipsel + ARCH=mipsel + SCRATCH=scratch/no-rpath-mipsel + SCRATCH=scratch/no-rpath-mipsel + '[' -z mipsel ']' + '[' -z mipsel ']' + '[' mipsel = prebuild ']' + '[' mipsel = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-mipsel + no_rpath_bin=./no-rpath-prebuild/no-rpath-mipsel + '[' '!' -f ./no-rpath-prebuild/no-rpath-mipsel ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-mipsel ']' + rm -rf scratch/no-rpath-mipsel + rm -rf scratch/no-rpath-mipsel + mkdir -p scratch/no-rpath-mipsel + mkdir -p scratch/no-rpath-mipsel + cp ./no-rpath-prebuild/no-rpath-mipsel scratch/no-rpath-mipsel/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mipsel/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-mipsel/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-mipsel/no-rpath patching ELF file 'scratch/no-rpath-mipsel/no-rpath' patching ELF file 'scratch/no-rpath-mipsel/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 25 DT_NULL index is 25 replacing section '.dynamic' with size 256 replacing section '.dynamic' with size 256 replacing section '.dynstr' with size 160 replacing section '.dynstr' with size 160 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynamic' using replaced section '.dynamic' using replaced section '.dynstr' using replaced section '.dynstr' last replaced is 8 last replaced is 8 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.reginfo' looking at section '.reginfo' replacing section '.reginfo' which is in the way replacing section '.reginfo' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.dynamic' looking at section '.dynamic' looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' first reserved offset/addr is 0x42e/0x40042e first reserved offset/addr is 0x42e/0x40042e first page is 0x400000 first page is 0x400000 needed space is 1116 needed space is 1116 needed space is 1148 needed space is 1148 needed pages is 1 needed pages is 1 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 4 from 65536 to 4096 changing alignment of program header 4 from 65536 to 4096 clearing first 4794 bytes clearing first 4794 bytes rewriting section '.dynamic' from offset 0x11c0 (size 248) to offset 0x174 (size 256) 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 '.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 '.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 '.hash' from offset 0x12b8 (size 64) to offset 0x3c4 (size 64) rewriting section '.interp' from offset 0x1154 (size 13) to offset 0x404 (size 28) rewriting section '.interp' from offset 0x1154 (size 13) to offset 0x404 (size 28) rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x420 (size 32) rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x420 (size 32) rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x440 (size 36) rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x440 (size 36) rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x464 (size 24) rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x464 (size 24) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 41 rewriting symbol table section 41 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-mipsel.sh PASS: no-rpath-mipsel.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-powerpc.sh .sh ++ basename ./no-rpath-powerpc.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=powerpc + ARCH=powerpc + SCRATCH=scratch/no-rpath-powerpc + SCRATCH=scratch/no-rpath-powerpc + '[' -z powerpc ']' + '[' -z powerpc ']' + '[' powerpc = prebuild ']' + '[' powerpc = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-powerpc + no_rpath_bin=./no-rpath-prebuild/no-rpath-powerpc + '[' '!' -f ./no-rpath-prebuild/no-rpath-powerpc ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-powerpc ']' + rm -rf scratch/no-rpath-powerpc + rm -rf scratch/no-rpath-powerpc + mkdir -p scratch/no-rpath-powerpc + mkdir -p scratch/no-rpath-powerpc + cp ./no-rpath-prebuild/no-rpath-powerpc scratch/no-rpath-powerpc/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-powerpc/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-powerpc/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-powerpc/no-rpath patching ELF file 'scratch/no-rpath-powerpc/no-rpath' patching ELF file 'scratch/no-rpath-powerpc/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 21 DT_NULL index is 21 replacing section '.dynamic' with size 224 replacing section '.dynamic' with size 224 replacing section '.dynstr' with size 101 replacing section '.dynstr' with size 101 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x26a/0x1000026a first reserved offset/addr is 0x26a/0x1000026a first page is 0x10000000 first page is 0x10000000 needed space is 884 needed space is 884 needed space is 916 needed space is 916 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 clearing first 4374 bytes clearing first 4374 bytes rewriting section '.dynamic' from offset 0x171c (size 216) to offset 0x154 (size 224) 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 '.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 '.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 '.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 '.hash' from offset 0x1188 (size 40) to offset 0x30c (size 40) rewriting section '.interp' from offset 0x1134 (size 13) to offset 0x334 (size 28) rewriting section '.interp' from offset 0x1134 (size 13) to offset 0x334 (size 28) rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x350 (size 32) rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x350 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x370 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x370 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 38 rewriting symbol table section 38 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-powerpc.sh PASS: no-rpath-powerpc.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-s390.sh .sh ++ basename ./no-rpath-s390.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=s390 + ARCH=s390 + SCRATCH=scratch/no-rpath-s390 + SCRATCH=scratch/no-rpath-s390 + '[' -z s390 ']' + '[' -z s390 ']' + '[' s390 = prebuild ']' + '[' s390 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-s390 + no_rpath_bin=./no-rpath-prebuild/no-rpath-s390 + '[' '!' -f ./no-rpath-prebuild/no-rpath-s390 ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-s390 ']' + rm -rf scratch/no-rpath-s390 + rm -rf scratch/no-rpath-s390 + mkdir -p scratch/no-rpath-s390 + mkdir -p scratch/no-rpath-s390 + cp ./no-rpath-prebuild/no-rpath-s390 scratch/no-rpath-s390/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-s390/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-s390/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-s390/no-rpath patching ELF file 'scratch/no-rpath-s390/no-rpath' patching ELF file 'scratch/no-rpath-s390/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 20 DT_NULL index is 20 replacing section '.dynamic' with size 216 replacing section '.dynamic' with size 216 replacing section '.dynstr' with size 101 replacing section '.dynstr' with size 101 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 22 last replaced is 22 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.gnu.hash' looking at section '.gnu.hash' replacing section '.gnu.hash' which is in the way replacing section '.gnu.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x276/0x400276 first reserved offset/addr is 0x276/0x400276 first page is 0x400000 first page is 0x400000 needed space is 888 needed space is 888 needed space is 920 needed space is 920 needed pages is 1 needed pages is 1 clearing first 4386 bytes clearing first 4386 bytes rewriting section '.dynamic' from offset 0x170c (size 208) to offset 0x154 (size 216) 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 '.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 '.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 '.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 '.hash' from offset 0x1188 (size 40) to offset 0x310 (size 40) rewriting section '.interp' from offset 0x1134 (size 13) to offset 0x338 (size 28) rewriting section '.interp' from offset 0x1134 (size 13) to offset 0x338 (size 28) rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x354 (size 32) rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x354 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x374 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x374 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 35 rewriting symbol table section 35 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-s390.sh PASS: no-rpath-s390.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-sh4.sh .sh ++ basename ./no-rpath-sh4.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=sh4 + ARCH=sh4 + SCRATCH=scratch/no-rpath-sh4 + SCRATCH=scratch/no-rpath-sh4 + '[' -z sh4 ']' + '[' -z sh4 ']' + '[' sh4 = prebuild ']' + '[' sh4 = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-sh4 + no_rpath_bin=./no-rpath-prebuild/no-rpath-sh4 + '[' '!' -f ./no-rpath-prebuild/no-rpath-sh4 ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-sh4 ']' + rm -rf scratch/no-rpath-sh4 + rm -rf scratch/no-rpath-sh4 + mkdir -p scratch/no-rpath-sh4 + mkdir -p scratch/no-rpath-sh4 + cp ./no-rpath-prebuild/no-rpath-sh4 scratch/no-rpath-sh4/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sh4/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-sh4/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-sh4/no-rpath patching ELF file 'scratch/no-rpath-sh4/no-rpath' patching ELF file 'scratch/no-rpath-sh4/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 19 DT_NULL index is 19 replacing section '.dynamic' with size 208 replacing section '.dynamic' with size 208 replacing section '.dynstr' with size 107 replacing section '.dynstr' with size 107 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 19 last replaced is 19 looking at section '.interp' looking at section '.interp' looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x248/0x400248 first reserved offset/addr is 0x248/0x400248 first page is 0x400000 first page is 0x400000 needed space is 828 needed space is 828 needed space is 860 needed space is 860 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 clearing first 4340 bytes clearing first 4340 bytes rewriting section '.dynamic' from offset 0x1600 (size 200) to offset 0x154 (size 208) 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 '.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 '.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 '.hash' from offset 0x116c (size 44) to offset 0x2f0 (size 44) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x31c (size 28) rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x31c (size 28) rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x338 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x338 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 34 rewriting symbol table section 34 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-sh4.sh PASS: no-rpath-sh4.sh + ARCH= + ARCH= + PAGESIZE=4096 + PAGESIZE=4096 + '[' -z '' ']' + '[' -z '' ']' ++ basename ./no-rpath-sparc.sh .sh ++ basename ./no-rpath-sparc.sh .sh ++ sed -e 's/.*-//' ++ sed -e 's/.*-//' + ARCH=sparc + ARCH=sparc + SCRATCH=scratch/no-rpath-sparc + SCRATCH=scratch/no-rpath-sparc + '[' -z sparc ']' + '[' -z sparc ']' + '[' sparc = prebuild ']' + '[' sparc = prebuild ']' + no_rpath_bin=./no-rpath-prebuild/no-rpath-sparc + no_rpath_bin=./no-rpath-prebuild/no-rpath-sparc + '[' '!' -f ./no-rpath-prebuild/no-rpath-sparc ']' + '[' '!' -f ./no-rpath-prebuild/no-rpath-sparc ']' + rm -rf scratch/no-rpath-sparc + rm -rf scratch/no-rpath-sparc + mkdir -p scratch/no-rpath-sparc + mkdir -p scratch/no-rpath-sparc + cp ./no-rpath-prebuild/no-rpath-sparc scratch/no-rpath-sparc/no-rpath + 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 ++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sparc/no-rpath Kernel page size is 4096 bytes Kernel page size is 4096 bytes + oldRPath= + oldRPath= + test -n '' + test -n '' ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf ++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf Kernel page size is 4096 bytes Kernel page size is 4096 bytes + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-sparc/no-rpath + ../src/patchelf --page-size 4096 --set-interpreter /lib64/ld-linux-x86-64.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-sparc/no-rpath patching ELF file 'scratch/no-rpath-sparc/no-rpath' patching ELF file 'scratch/no-rpath-sparc/no-rpath' Kernel page size is 4096 bytes Kernel page size is 4096 bytes new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx' rpath is too long, resizing... rpath is too long, resizing... DT_NULL index is 19 DT_NULL index is 19 replacing section '.dynamic' with size 208 replacing section '.dynamic' with size 208 replacing section '.dynstr' with size 101 replacing section '.dynstr' with size 101 replacing section '.interp' with size 28 replacing section '.interp' with size 28 this is an executable this is an executable using replaced section '.interp' using replaced section '.interp' using replaced section '.dynstr' using replaced section '.dynstr' using replaced section '.dynamic' using replaced section '.dynamic' last replaced is 19 last replaced is 19 looking at section '.interp' looking at section '.interp' looking at section '.note.ABI-tag' looking at section '.note.ABI-tag' replacing section '.note.ABI-tag' which is in the way replacing section '.note.ABI-tag' which is in the way looking at section '.note.gnu.build-id' looking at section '.note.gnu.build-id' replacing section '.note.gnu.build-id' which is in the way replacing section '.note.gnu.build-id' which is in the way looking at section '.hash' looking at section '.hash' replacing section '.hash' which is in the way replacing section '.hash' which is in the way looking at section '.dynsym' looking at section '.dynsym' replacing section '.dynsym' which is in the way replacing section '.dynsym' which is in the way looking at section '.dynstr' looking at section '.dynstr' looking at section '.gnu.version' looking at section '.gnu.version' first reserved offset/addr is 0x22e/0x1022e first reserved offset/addr is 0x22e/0x1022e first page is 0x10000 first page is 0x10000 needed space is 804 needed space is 804 needed space is 836 needed space is 836 needed pages is 1 needed pages is 1 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 2 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 changing alignment of program header 3 from 65536 to 4096 clearing first 4346 bytes clearing first 4346 bytes rewriting section '.dynamic' from offset 0x1588 (size 200) to offset 0x134 (size 208) 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 '.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 '.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 '.hash' from offset 0x116c (size 40) to offset 0x2bc (size 40) rewriting section '.interp' from offset 0x1114 (size 19) to offset 0x2e4 (size 28) rewriting section '.interp' from offset 0x1114 (size 19) to offset 0x2e4 (size 28) rewriting section '.note.ABI-tag' from offset 0x1128 (size 32) to offset 0x300 (size 32) rewriting section '.note.ABI-tag' from offset 0x1128 (size 32) to offset 0x300 (size 32) rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x320 (size 36) rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x320 (size 36) rewriting symbol table section 3 rewriting symbol table section 3 rewriting symbol table section 35 rewriting symbol table section 35 ++ ../src/patchelf --page-size 4096 --print-rpath 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 Kernel page size is 4096 bytes + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + newRPath=/foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + echo /foo:/bar:/xxxxxxxxxxxxxxx + grep -q /foo:/bar + grep -q /foo:/bar PASS: no-rpath-sparc.sh PASS: no-rpath-sparc.sh =================== =================== All 25 tests passed All 25 tests passed =================== =================== make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[2]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10/tests' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10' make[1]: Entering directory `/builddir/build/BUILD/patchelf-0.10' make[1]: Nothing to be done for `check-am'. make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10' make[1]: Leaving directory `/builddir/build/BUILD/patchelf-0.10' + exit 0 + exit 0 Processing files: patchelf-0.10-2.el7.x86_64 Processing files: patchelf-0.10-2.el7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Myt25t Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Myt25t + umask 022 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + cd patchelf-0.10 + cd patchelf-0.10 + DOCDIR=/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf-0.10 + DOCDIR=/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf-0.10 + export DOCDIR + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf-0.10 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf-0.10 + cp -pr README /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf-0.10 + cp -pr README /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/doc/patchelf-0.10 + exit 0 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.gLwwCI Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.gLwwCI + umask 022 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + cd patchelf-0.10 + cd patchelf-0.10 + LICENSEDIR=/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/licenses/patchelf-0.10 + LICENSEDIR=/builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/licenses/patchelf-0.10 + export LICENSEDIR + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/licenses/patchelf-0.10 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/licenses/patchelf-0.10 + cp -pr COPYING /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/licenses/patchelf-0.10 + cp -pr COPYING /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64/usr/share/licenses/patchelf-0.10 + exit 0 + exit 0 Provides: patchelf = 0.10-2.el7 patchelf(x86-64) = 0.10-2.el7 Provides: patchelf = 0.10-2.el7 patchelf(x86-64) = 0.10-2.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 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.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(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.9)(64bit) rtld(GNU_HASH) Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(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.9)(64bit) rtld(GNU_HASH) Processing files: patchelf-debuginfo-0.10-2.el7.x86_64 Processing files: patchelf-debuginfo-0.10-2.el7.x86_64 Provides: patchelf-debuginfo = 0.10-2.el7 patchelf-debuginfo(x86-64) = 0.10-2.el7 Provides: patchelf-debuginfo = 0.10-2.el7 patchelf-debuginfo(x86-64) = 0.10-2.el7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 Wrote: /builddir/build/RPMS/patchelf-0.10-2.el7.x86_64.rpm Wrote: /builddir/build/RPMS/patchelf-0.10-2.el7.x86_64.rpm Wrote: /builddir/build/RPMS/patchelf-debuginfo-0.10-2.el7.x86_64.rpm Wrote: /builddir/build/RPMS/patchelf-debuginfo-0.10-2.el7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.oy1qLr Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.oy1qLr + umask 022 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + cd patchelf-0.10 + cd patchelf-0.10 + /usr/bin/rm -rf /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 + /usr/bin/rm -rf /builddir/build/BUILDROOT/patchelf-0.10-2.el7.x86_64 + exit 0 + exit 0 Child return code was: 0 Child return code was: 0