<86>Jan 31 11:32:43 userdel[2135498]: delete user 'rooter'
<86>Jan 31 11:32:43 groupadd[2135510]: group added to /etc/group: name=rooter, GID=699
<86>Jan 31 11:32:43 groupadd[2135510]: group added to /etc/gshadow: name=rooter
<86>Jan 31 11:32:43 groupadd[2135510]: new group: name=rooter, GID=699
<86>Jan 31 11:32:43 useradd[2135522]: new user: name=rooter, UID=699, GID=699, home=/root, shell=/bin/bash
<86>Jan 31 11:32:43 userdel[2135541]: delete user 'builder'
<86>Jan 31 11:32:43 userdel[2135541]: removed group 'builder' owned by 'builder'
<86>Jan 31 11:32:43 userdel[2135541]: removed shadow group 'builder' owned by 'builder'
<86>Jan 31 11:32:43 groupadd[2135562]: group added to /etc/group: name=builder, GID=700
<86>Jan 31 11:32:43 groupadd[2135562]: group added to /etc/gshadow: name=builder
<86>Jan 31 11:32:43 groupadd[2135562]: new group: name=builder, GID=700
<86>Jan 31 11:32:43 useradd[2135574]: new user: name=builder, UID=700, GID=700, home=/usr/src, shell=/bin/bash
<13>Jan 31 11:32:45 rpmi: gcc-c++-common-1.4.23-alt1 sisyphus+221902.2500.4.1 1550596716 installed
<13>Jan 31 11:32:46 rpmi: libstdc++8-devel-8.4.1-alt0.p9.1 p9+247559.100.2.1 1585587912 installed
<13>Jan 31 11:32:47 rpmi: gcc8-c++-8.4.1-alt0.p9.1 p9+247559.100.2.1 1585587912 installed
<13>Jan 31 11:32:47 rpmi: gcc-c++-8-alt2 p9+246536.100.3.1 1582643803 installed
Building target platforms: i586
Building for target i586
Wrote: /usr/src/in/nosrpm/patchelf-0.10-alt1.nosrc.rpm
Installing patchelf-0.10-alt1.src.rpm
Building target platforms: i586
Building for target i586
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.1890
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf patchelf-0.10
+ echo 'Source #0 (patchelf-0.10.tar):'
Source #0 (patchelf-0.10.tar):
+ /bin/tar -xf /usr/src/RPM/SOURCES/patchelf-0.10.tar
+ cd patchelf-0.10
+ /bin/chmod -c -Rf u+rwX,go-w .
+ rm src/elf.h
+ exit 0
Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.69815
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd patchelf-0.10
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export FFLAGS
+ FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export FCFLAGS
+ '[' -n '' ']'
++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g'
++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ ASFLAGS=' -march=i586 -mtune=generic'
+ export ASFLAGS
+ export lt_cv_deplibs_check_method=pass_all
+ lt_cv_deplibs_check_method=pass_all
+ readlink -e -- ./configure
+ xargs -ri dirname -- '{}'
+ sort -u
+ xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess
+ xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n'
+ ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --without-included-gettext
configure: WARNING: unrecognized options: --without-included-gettext
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
checking for i586-alt-linux-gcc... i586-alt-linux-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i586-alt-linux-gcc accepts -g... yes
checking for i586-alt-linux-gcc option to accept ISO C89... none needed
checking whether i586-alt-linux-gcc understands -c and -o together... yes
checking dependency style of i586-alt-linux-gcc... none
checking for i586-alt-linux-g++... i586-alt-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i586-alt-linux-g++ accepts -g... yes
checking dependency style of i586-alt-linux-g++... none
Setting page size to 4096
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating patchelf.spec
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --without-included-gettext
+ make -j8
Making all in src
make[1]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o patchelf.o patchelf.cc
In file included from /usr/include/c++/8/cassert:44,
                 from patchelf.cc:32:
patchelf.cc: In instantiation of 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Verneed>::rewriteSectionsLibrary() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long long unsigned int; Elf_Off = long long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Verneed = Elf64_Verneed]':
patchelf.cc:906:9:   required from 'void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Verneed>::rewriteSections() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long long unsigned int; Elf_Off = long long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym; Elf_Verneed = Elf64_Verneed]'
patchelf.cc:1604:9:   required from 'void patchElf2(ElfFile&&, std::__cxx11::string) [with ElfFile = ElfFile<Elf64_Ehdr, Elf64_Phdr, Elf64_Shdr, long long unsigned int, long long unsigned int, Elf64_Dyn, Elf64_Sym, Elf64_Verneed>; std::__cxx11::string = std::__cxx11::basic_string<char>]'
patchelf.cc:1623:150:   required from here
patchelf.cc:767:19: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'off_t' {aka 'long long int'} [-Wsign-compare]
     assert(curOff == startOffset + neededSpace);
            ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
make[1]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
i586-alt-linux-g++ -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic   -o patchelf patchelf.o  
make[1]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
Making all in tests
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'all-am'.
+ exit 0
Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.6030
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ /bin/chmod -Rf u+rwX -- /usr/src/tmp/patchelf-buildroot
+ :
+ /bin/rm -rf -- /usr/src/tmp/patchelf-buildroot
+ cd patchelf-0.10
+ make 'INSTALL=/bin/install -p' install DESTDIR=/usr/src/tmp/patchelf-buildroot
make: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10'
Making install in src
make[1]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
make[2]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
 /bin/mkdir -p '/usr/src/tmp/patchelf-buildroot/usr/bin'
  /bin/install -p patchelf '/usr/src/tmp/patchelf-buildroot/usr/bin'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
make[1]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
Making install in tests
make[1]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10/tests'
make[2]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10/tests'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/tests'
make[1]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/tests'
make[1]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10'
make[2]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/src/tmp/patchelf-buildroot/usr/share/doc/patchelf'
 /bin/install -p -m 644 README '/usr/src/tmp/patchelf-buildroot/usr/share/doc/patchelf'
 /bin/mkdir -p '/usr/src/tmp/patchelf-buildroot/usr/share/man/man1'
 /bin/install -p -m 644 patchelf.1 '/usr/src/tmp/patchelf-buildroot/usr/share/man/man1'
make[2]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10'
make[1]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10'
make: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10'
+ rm -rf /usr/src/tmp/patchelf-buildroot/usr/share/doc/patchelf
+ /usr/lib/rpm/brp-alt
Cleaning files in /usr/src/tmp/patchelf-buildroot (auto)
Verifying and fixing files in /usr/src/tmp/patchelf-buildroot (binconfig,pkgconfig,libtool,desktop)
Checking contents of files in /usr/src/tmp/patchelf-buildroot/ (default)
Compressing files in /usr/src/tmp/patchelf-buildroot (auto)
Verifying ELF objects in /usr/src/tmp/patchelf-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal)
Hardlinking identical .pyc and .pyo files
Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.42520
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd patchelf-0.10
+ rc=0
+ make check
make: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10'
Making check in src
make[1]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/src'
Making check in tests
make[1]: Entering directory '/usr/src/RPM/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[2]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10/tests'
i586-alt-linux-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.     -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o simple-simple.o `test -f 'simple.c' || echo './'`simple.c
i586-alt-linux-gcc  -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic   -o simple simple-simple.o  
i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o main.o main.c
i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o foo.o foo.c
i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o bar.o bar.c
i586-alt-linux-gcc -fpic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -Wl,--disable-new-dtags -shared -L.  -Wl,-rpath,`pwd`/no-such-path  -o libbar.so bar.o  
i586-alt-linux-gcc -fpic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -Wl,--disable-new-dtags -shared -L.   -o libfoo.so foo.o -lbar  
i586-alt-linux-gcc -fpic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -Wl,--disable-new-dtags -Wl,-rpath-link=. -L.   -o main main.o -lfoo  
i586-alt-linux-gcc -fpic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -Wl,--disable-new-dtags -shared -L.   -o libbar-scoped.so bar.o  
i586-alt-linux-gcc -fpic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -Wl,--disable-new-dtags -shared -L.   -o libfoo-scoped.so foo.o -lbar-scoped  
i586-alt-linux-gcc -fpic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -Wl,--disable-new-dtags -Wl,-rpath-link=. -L.   -o main-scoped main.o -lfoo-scoped  
cat main.c > big-dynstr.c
for i in $(seq 1 2000); do echo "void f$i(void) { };" >> big-dynstr.c; done
i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o big-dynstr.o big-dynstr.c
i586-alt-linux-gcc -fpic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -Wl,--disable-new-dtags -Wl,-rpath-link=. -L.   -o big-dynstr big-dynstr.o -lfoo  
i586-alt-linux-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.     -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o no_rpath-no-rpath.o `test -f 'no-rpath.c' || echo './'`no-rpath.c
i586-alt-linux-gcc  -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic   -o no-rpath no_rpath-no-rpath.o  
make[2]: 'libfoo.so' is up to date.
make[2]: 'libfoo-scoped.so' is up to date.
make[2]: 'libbar.so' is up to date.
make[2]: 'libbar-scoped.so' is up to date.
i586-alt-linux-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 -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o simple.o simple.c
i586-alt-linux-gcc -fpic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -Wl,--disable-new-dtags -shared -L.   -o libsimple.so simple.o  
make[2]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/tests'
make  check-TESTS
make[2]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10/tests'
./main: error while loading shared libraries: libfoo.so: cannot open shared object file: No such file or directory
PASS: plain-fail.sh
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: plain-run.sh
Kernel page size is 4096 bytes
RPATH before: /usr/src/RPM/BUILD/patchelf-0.10/tests/no-such-path
patching ELF file 'scratch/shrink-rpath/libbar.so'
Kernel page size is 4096 bytes
removing directory '/usr/src/RPM/BUILD/patchelf-0.10/tests/no-such-path' from RPATH
new rpath is ''
Kernel page size is 4096 bytes
RPATH after: 
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: shrink-rpath.sh
Hello World
Kernel page size is 4096 bytes
current interpreter is /lib/ld-linux.so.2
patching ELF file 'scratch/set-interpreter-short/simple'
Kernel page size is 4096 bytes
replacing section '.interp' with size 6
this is an executable
using replaced section '.interp'
last replaced is 1
looking at section '.interp'
first reserved offset/addr is 0x1a8/0x80481a8
first page is 0x8048000
needed space is 412
clearing first 20 bytes
rewriting section '.interp' from offset 0x194 (size 19) to offset 0x194 (size 6)
rewriting symbol table section 5
rewriting symbol table section 35
running with missing interpreter...
./set-interpreter-short.sh: line 16: scratch/set-interpreter-short/simple: No such file or directory
PASS: set-interpreter-short.sh
Hello World
Kernel page size is 4096 bytes
current interpreter is /lib/ld-linux.so.2
running with explicit interpreter...
Hello World
patching ELF file 'scratch/set-interpreter-long/simple'
Kernel page size is 4096 bytes
replacing section '.interp' with size 169
this is an executable
using replaced section '.interp'
last replaced is 1
looking at section '.interp'
first reserved offset/addr is 0x1a8/0x80481a8
first page is 0x8048000
needed space is 576
needed space is 608
needed pages is 1
clearing first 4084 bytes
rewriting section '.interp' from offset 0x1194 (size 19) to offset 0x1b4 (size 169)
rewriting symbol table section 5
rewriting symbol table section 35
running with missing interpreter...
./set-interpreter-long.sh: line 22: scratch/set-interpreter-long/simple: No such file or directory
running with new interpreter...
Hello World
running with explicit interpreter...
Hello World
PASS: set-interpreter-long.sh
Kernel page size is 4096 bytes
patching ELF file 'scratch/set-rpath/main'
Kernel page size is 4096 bytes
new rpath is '/oops:/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/set-rpath/libsA:/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/set-rpath/libsB'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 248
replacing section '.dynstr' with size 257
this is an executable
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 21
looking at section '.interp'
replacing section '.interp' which is in the way
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x32a/0x804832a
first page is 0x8048000
needed space is 1192
needed space is 1224
needed pages is 1
clearing first 4470 bytes
rewriting section '.dynamic' from offset 0x3f0c (size 240) to offset 0x1b4 (size 248)
rewriting section '.dynstr' from offset 0x12ac (size 125) to offset 0x2ac (size 257)
rewriting section '.dynsym' from offset 0x121c (size 144) to offset 0x3b0 (size 144)
rewriting section '.gnu.hash' from offset 0x11ec (size 48) to offset 0x440 (size 48)
rewriting section '.interp' from offset 0x1194 (size 19) to offset 0x470 (size 19)
rewriting section '.note.ABI-tag' from offset 0x11a8 (size 32) to offset 0x484 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x11c8 (size 36) to offset 0x4a4 (size 36)
rewriting symbol table section 3
rewriting symbol table section 35
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: set-rpath.sh
Kernel page size is 4096 bytes
Kernel page size is 4096 bytes
patching ELF file 'scratch/no-rpath/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 23
replacing section '.dynamic' with size 240
replacing section '.dynstr' with size 101
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 21
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x2a6/0x80482a6
first page is 0x8048000
needed space is 948
needed space is 980
needed pages is 1
clearing first 4338 bytes
rewriting section '.dynamic' from offset 0x3f14 (size 232) to offset 0x1b4 (size 240)
rewriting section '.dynstr' from offset 0x125c (size 74) to offset 0x2a4 (size 101)
rewriting section '.dynsym' from offset 0x120c (size 80) to offset 0x30c (size 80)
rewriting section '.gnu.hash' from offset 0x11ec (size 32) to offset 0x35c (size 32)
rewriting section '.interp' from offset 0x1194 (size 19) to offset 0x37c (size 19)
rewriting section '.note.ABI-tag' from offset 0x11a8 (size 32) to offset 0x390 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x11c8 (size 36) to offset 0x3b0 (size 36)
rewriting symbol table section 3
rewriting symbol table section 35
Kernel page size is 4096 bytes
Hello world
PASS: no-rpath.sh
Kernel page size is 4096 bytes
patching ELF file 'scratch/big-dynstr/big-dynstr'
Kernel page size is 4096 bytes
new rpath is '/oops:/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/big-dynstr/libsA:/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/big-dynstr/libsB'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 248
replacing section '.dynstr' with size 259
this is an executable
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 21
looking at section '.interp'
replacing section '.interp' which is in the way
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x32a/0x804832a
first page is 0x8048000
needed space is 1192
needed space is 1224
needed pages is 1
clearing first 4470 bytes
rewriting section '.dynamic' from offset 0x17f0c (size 240) to offset 0x1b4 (size 248)
rewriting section '.dynstr' from offset 0x12ac (size 125) to offset 0x2ac (size 259)
rewriting section '.dynsym' from offset 0x121c (size 144) to offset 0x3b0 (size 144)
rewriting section '.gnu.hash' from offset 0x11ec (size 48) to offset 0x440 (size 48)
rewriting section '.interp' from offset 0x1194 (size 19) to offset 0x470 (size 19)
rewriting section '.note.ABI-tag' from offset 0x11a8 (size 32) to offset 0x484 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x11c8 (size 36) to offset 0x4a4 (size 36)
rewriting symbol table section 3
rewriting symbol table section 35
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: big-dynstr.sh
Kernel page size is 4096 bytes
patching ELF file 'scratch/set-rpath-library/main-scoped'
Kernel page size is 4096 bytes
new rpath is '/oops:/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsA:/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsB'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 248
replacing section '.dynstr' with size 280
this is an executable
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 21
looking at section '.interp'
replacing section '.interp' which is in the way
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x330/0x8048330
first page is 0x8048000
needed space is 1212
needed space is 1244
needed pages is 1
clearing first 4476 bytes
rewriting section '.dynamic' from offset 0x3f0c (size 240) to offset 0x1b4 (size 248)
rewriting section '.dynstr' from offset 0x12ac (size 132) to offset 0x2ac (size 280)
rewriting section '.dynsym' from offset 0x121c (size 144) to offset 0x3c4 (size 144)
rewriting section '.gnu.hash' from offset 0x11ec (size 48) to offset 0x454 (size 48)
rewriting section '.interp' from offset 0x1194 (size 19) to offset 0x484 (size 19)
rewriting section '.note.ABI-tag' from offset 0x11a8 (size 32) to offset 0x498 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x11c8 (size 36) to offset 0x4b8 (size 36)
rewriting symbol table section 3
rewriting symbol table section 35
./main-scoped: error while loading shared libraries: libbar-scoped.so: cannot open shared object file: No such file or directory
Kernel page size is 4096 bytes
patching ELF file 'scratch/set-rpath-library/libsA/libfoo-scoped.so'
Kernel page size is 4096 bytes
new rpath is '/oops:/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsB'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 240
replacing section '.dynstr' with size 262
this is a dynamic library
last page is 0x5000
needed space is 540
shifting new PT_LOAD segment by 0 bytes to work around a Linux kernel bug
rewriting section '.dynamic' from offset 0x2f08 (size 232) to offset 0x5000 (size 240)
rewriting section '.dynstr' from offset 0x2a4 (size 185) to offset 0x50f0 (size 262)
rewriting section '.note.gnu.build-id' from offset 0x194 (size 36) to offset 0x51f8 (size 36)
rewriting symbol table section 2
rewriting symbol table section 31
Hello World
This is foo()!
This is bar()!
Result is 46
patching ELF file 'scratch/set-rpath-library/main-scoped'
Kernel page size is 4096 bytes
removing directory '/oops' from RPATH
removing directory '/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsB' from RPATH
new rpath is '/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/set-rpath-library/libsA'
Kernel page size is 4096 bytes
Hello World
This is foo()!
This is bar()!
Result is 46
PASS: set-rpath-library.sh
patching ELF file 'scratch/soname/libsimple.so'
Kernel page size is 4096 bytes
new SONAME is 'libsimple.so.1.0'
SONAME is too long, resizing...
DT_NULL index is 23
replacing section '.dynamic' with size 232
replacing section '.dynstr' with size 160
this is a dynamic library
last page is 0x1005000
needed space is 428
rewriting section '.dynamic' from offset 0x2f10 (size 224) to offset 0x5000 (size 232)
rewriting section '.dynstr' from offset 0x250 (size 143) to offset 0x50e8 (size 160)
rewriting section '.note.gnu.build-id' from offset 0x154 (size 36) to offset 0x5188 (size 36)
rewriting symbol table section 2
rewriting symbol table section 30
Kernel page size is 4096 bytes
Kernel page size is 4096 bytes
patching ELF file 'scratch/soname/libsimple.so'
Kernel page size is 4096 bytes
new SONAME is 'libsimple.so.1.1'
SONAME is too long, resizing...
replacing section '.dynstr' with size 177
this is a dynamic library
last page is 0x1006000
needed space is 236
rewriting section '.dynstr' from offset 0x50e8 (size 160) to offset 0x6000 (size 177)
rewriting section '.gnu.hash' from offset 0x178 (size 56) to offset 0x60b4 (size 56)
rewriting symbol table section 1
rewriting symbol table section 29
Kernel page size is 4096 bytes
PASS: soname.sh
Kernel page size is 4096 bytes
patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/main'
Kernel page size is 4096 bytes
new rpath is '/oops:/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA:/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 248
replacing section '.dynstr' with size 307
this is an executable
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 21
looking at section '.interp'
replacing section '.interp' which is in the way
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x32a/0x804832a
first page is 0x8048000
needed space is 1240
needed space is 1272
needed pages is 1
clearing first 4470 bytes
rewriting section '.dynamic' from offset 0x3f0c (size 240) to offset 0x1b4 (size 248)
rewriting section '.dynstr' from offset 0x12ac (size 125) to offset 0x2ac (size 307)
rewriting section '.dynsym' from offset 0x121c (size 144) to offset 0x3e0 (size 144)
rewriting section '.gnu.hash' from offset 0x11ec (size 48) to offset 0x470 (size 48)
rewriting section '.interp' from offset 0x1194 (size 19) to offset 0x4a0 (size 19)
rewriting section '.note.ABI-tag' from offset 0x11a8 (size 32) to offset 0x4b4 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x11c8 (size 36) to offset 0x4d4 (size 36)
rewriting symbol table section 3
rewriting symbol table section 35
patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/main'
Kernel page size is 4096 bytes
removing directory '/oops' from RPATH
removing directory '/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH
new rpath is '/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA'
patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/mainA'
Kernel page size is 4096 bytes
removing directory '/oops' from RPATH
removing directory '/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB' from RPATH because of non-allowed prefix
new rpath is '/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA'
patching ELF file 'scratch/shrink-rpath-with-allowed-prefixes/mainB'
Kernel page size is 4096 bytes
removing directory '/oops' from RPATH
removing directory '/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA' from RPATH because of non-allowed prefix
new rpath is '/usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB'
Kernel page size is 4096 bytes
RPATH of scratch/shrink-rpath-with-allowed-prefixes/main after: /usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA
Kernel page size is 4096 bytes
RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainA after: /usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsA
Kernel page size is 4096 bytes
RPATH of scratch/shrink-rpath-with-allowed-prefixes/mainB after: /usr/src/RPM/BUILD/patchelf-0.10/tests/scratch/shrink-rpath-with-allowed-prefixes/libsB
PASS: shrink-rpath-with-allowed-prefixes.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-amd64.sh .sh
++ sed -e 's/.*-//'
+ ARCH=amd64
+ SCRATCH=scratch/no-rpath-amd64
+ '[' -z amd64 ']'
+ '[' amd64 = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-amd64
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-amd64 ']'
+ rm -rf scratch/no-rpath-amd64
+ mkdir -p scratch/no-rpath-amd64
+ cp ./no-rpath-prebuild/no-rpath-amd64 scratch/no-rpath-amd64/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-amd64/no-rpath
patching ELF file 'scratch/no-rpath-amd64/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 496
replacing section '.dynstr' with size 88
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x346/0x400346
first page is 0x400000
needed space is 1360
needed space is 1416
needed pages is 1
changing alignment of program header 2 from 2097152 to 0
changing alignment of program header 3 from 2097152 to 0
clearing first 4366 bytes
rewriting section '.dynamic' from offset 0x16c0 (size 0) to offset 0x1e0 (size 0)
rewriting section '.dynstr' from offset 0x1308 (size 0) to offset 0x3d (size 0)
rewriting section '.dynsym' from offset 0x12a8 (size 0) to offset 0x60 (size 0)
rewriting section '.gnu.hash' from offset 0x1288 (size 0) to offset 0x1c (size 0)
rewriting section '.hash' from offset 0x1260 (size 0) to offset 0x24 (size 0)
rewriting section '.interp' from offset 0x1200 (size 0) to offset 0x1c (size 0)
rewriting section '.note.ABI-tag' from offset 0x121c (size 0) to offset 0x20 (size 0)
rewriting section '.note.gnu.build-id' from offset 0x123c (size 0) to offset 0x24 (size 0)
rewriting symbol table section 3
rewriting symbol table section 36
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-amd64.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-armel.sh .sh
++ sed -e 's/.*-//'
+ ARCH=armel
+ SCRATCH=scratch/no-rpath-armel
+ '[' -z armel ']'
+ '[' armel = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-armel
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-armel ']'
+ rm -rf scratch/no-rpath-armel
+ mkdir -p scratch/no-rpath-armel
+ cp ./no-rpath-prebuild/no-rpath-armel scratch/no-rpath-armel/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armel/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-armel/no-rpath
patching ELF file 'scratch/no-rpath-armel/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 248
replacing section '.dynstr' with size 92
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x272/0x8272
first page is 0x8000
needed space is 900
needed space is 932
needed pages is 1
changing alignment of program header 3 from 32768 to 4096
changing alignment of program header 4 from 32768 to 4096
clearing first 4382 bytes
rewriting section '.dynamic' from offset 0x1494 (size 240) to offset 0x154 (size 248)
rewriting section '.dynstr' from offset 0x1230 (size 65) to offset 0x24c (size 92)
rewriting section '.dynsym' from offset 0x11e0 (size 80) to offset 0x2a8 (size 80)
rewriting section '.gnu.hash' from offset 0x11b4 (size 44) to offset 0x2f8 (size 44)
rewriting section '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40)
rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 19)
rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x360 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x380 (size 36)
rewriting symbol table section 3
rewriting symbol table section 37
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armel/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
PASS: no-rpath-armel.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-armhf.sh .sh
++ sed -e 's/.*-//'
+ ARCH=armhf
+ SCRATCH=scratch/no-rpath-armhf
+ '[' -z armhf ']'
+ '[' armhf = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-armhf
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-armhf ']'
+ rm -rf scratch/no-rpath-armhf
+ mkdir -p scratch/no-rpath-armhf
+ cp ./no-rpath-prebuild/no-rpath-armhf scratch/no-rpath-armhf/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armhf/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-armhf/no-rpath
patching ELF file 'scratch/no-rpath-armhf/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 248
replacing section '.dynstr' with size 92
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x27a/0x827a
first page is 0x8000
needed space is 900
needed space is 932
needed pages is 1
changing alignment of program header 3 from 32768 to 4096
changing alignment of program header 4 from 32768 to 4096
clearing first 4390 bytes
rewriting section '.dynamic' from offset 0x1424 (size 240) to offset 0x154 (size 248)
rewriting section '.dynstr' from offset 0x1238 (size 65) to offset 0x24c (size 92)
rewriting section '.dynsym' from offset 0x11e8 (size 80) to offset 0x2a8 (size 80)
rewriting section '.gnu.hash' from offset 0x11bc (size 44) to offset 0x2f8 (size 44)
rewriting section '.hash' from offset 0x1194 (size 40) to offset 0x324 (size 40)
rewriting section '.interp' from offset 0x1134 (size 25) to offset 0x34c (size 19)
rewriting section '.note.ABI-tag' from offset 0x1150 (size 32) to offset 0x360 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x1170 (size 36) to offset 0x380 (size 36)
rewriting symbol table section 3
rewriting symbol table section 37
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-armhf/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-armhf.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-hurd-i386.sh .sh
++ sed -e 's/.*-//'
+ ARCH=i386
+ SCRATCH=scratch/no-rpath-i386
+ '[' -z i386 ']'
+ '[' i386 = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-i386
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']'
+ rm -rf scratch/no-rpath-i386
+ mkdir -p scratch/no-rpath-i386
+ cp ./no-rpath-prebuild/no-rpath-i386 scratch/no-rpath-i386/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath
patching ELF file 'scratch/no-rpath-i386/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 248
replacing section '.dynstr' with size 101
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x26e/0x804826e
first page is 0x8048000
needed space is 900
needed space is 932
needed pages is 1
clearing first 4378 bytes
rewriting section '.dynamic' from offset 0x1544 (size 240) to offset 0x154 (size 248)
rewriting section '.dynstr' from offset 0x1224 (size 74) to offset 0x24c (size 101)
rewriting section '.dynsym' from offset 0x11d4 (size 80) to offset 0x2b4 (size 80)
rewriting section '.gnu.hash' from offset 0x11b4 (size 32) to offset 0x304 (size 32)
rewriting section '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40)
rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 19)
rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x360 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x380 (size 36)
rewriting symbol table section 3
rewriting symbol table section 36
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-hurd-i386.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-i386.sh .sh
++ sed -e 's/.*-//'
+ ARCH=i386
+ SCRATCH=scratch/no-rpath-i386
+ '[' -z i386 ']'
+ '[' i386 = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-i386
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']'
+ rm -rf scratch/no-rpath-i386
+ mkdir -p scratch/no-rpath-i386
+ cp ./no-rpath-prebuild/no-rpath-i386 scratch/no-rpath-i386/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath
patching ELF file 'scratch/no-rpath-i386/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 248
replacing section '.dynstr' with size 101
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x26e/0x804826e
first page is 0x8048000
needed space is 900
needed space is 932
needed pages is 1
clearing first 4378 bytes
rewriting section '.dynamic' from offset 0x1544 (size 240) to offset 0x154 (size 248)
rewriting section '.dynstr' from offset 0x1224 (size 74) to offset 0x24c (size 101)
rewriting section '.dynsym' from offset 0x11d4 (size 80) to offset 0x2b4 (size 80)
rewriting section '.gnu.hash' from offset 0x11b4 (size 32) to offset 0x304 (size 32)
rewriting section '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40)
rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 19)
rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x360 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x380 (size 36)
rewriting symbol table section 3
rewriting symbol table section 36
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-i386.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-ia64.sh .sh
++ sed -e 's/.*-//'
+ ARCH=ia64
+ SCRATCH=scratch/no-rpath-ia64
+ '[' -z ia64 ']'
+ '[' ia64 = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-ia64
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-ia64 ']'
+ rm -rf scratch/no-rpath-ia64
+ mkdir -p scratch/no-rpath-ia64
+ cp ./no-rpath-prebuild/no-rpath-ia64 scratch/no-rpath-ia64/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-ia64/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-ia64/no-rpath
patching ELF file 'scratch/no-rpath-ia64/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 25
replacing section '.dynamic' with size 512
replacing section '.dynstr' with size 73
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x30e/0x400000000000030e
first page is 0x4000000000000000
needed space is 1328
needed space is 1384
needed pages is 1
changing alignment of program header 2 from 65536 to 0
changing alignment of program header 3 from 65536 to 0
clearing first 4310 bytes
rewriting section '.dynamic' from offset 0x1ba0 (size 0) to offset 0x1f0 (size 0)
rewriting section '.dynstr' from offset 0x12e0 (size 0) to offset 0x2e (size 0)
rewriting section '.dynsym' from offset 0x1298 (size 0) to offset 0x48 (size 0)
rewriting section '.gnu.hash' from offset 0x1278 (size 0) to offset 0x1c (size 0)
rewriting section '.hash' from offset 0x1260 (size 0) to offset 0x18 (size 0)
rewriting section '.interp' from offset 0x1200 (size 0) to offset 0x18 (size 0)
rewriting section '.note.ABI-tag' from offset 0x1218 (size 0) to offset 0x20 (size 0)
rewriting section '.note.gnu.build-id' from offset 0x1238 (size 0) to offset 0x24 (size 0)
rewriting symbol table section 3
rewriting symbol table section 39
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-ia64/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-ia64.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-kfreebsd-amd64.sh .sh
++ sed -e 's/.*-//'
+ ARCH=amd64
+ SCRATCH=scratch/no-rpath-amd64
+ '[' -z amd64 ']'
+ '[' amd64 = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-amd64
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-amd64 ']'
+ rm -rf scratch/no-rpath-amd64
+ mkdir -p scratch/no-rpath-amd64
+ cp ./no-rpath-prebuild/no-rpath-amd64 scratch/no-rpath-amd64/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-amd64/no-rpath
patching ELF file 'scratch/no-rpath-amd64/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 496
replacing section '.dynstr' with size 88
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x346/0x400346
first page is 0x400000
needed space is 1360
needed space is 1416
needed pages is 1
changing alignment of program header 2 from 2097152 to 0
changing alignment of program header 3 from 2097152 to 0
clearing first 4366 bytes
rewriting section '.dynamic' from offset 0x16c0 (size 0) to offset 0x1e0 (size 0)
rewriting section '.dynstr' from offset 0x1308 (size 0) to offset 0x3d (size 0)
rewriting section '.dynsym' from offset 0x12a8 (size 0) to offset 0x60 (size 0)
rewriting section '.gnu.hash' from offset 0x1288 (size 0) to offset 0x1c (size 0)
rewriting section '.hash' from offset 0x1260 (size 0) to offset 0x24 (size 0)
rewriting section '.interp' from offset 0x1200 (size 0) to offset 0x1c (size 0)
rewriting section '.note.ABI-tag' from offset 0x121c (size 0) to offset 0x20 (size 0)
rewriting section '.note.gnu.build-id' from offset 0x123c (size 0) to offset 0x24 (size 0)
rewriting symbol table section 3
rewriting symbol table section 36
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-amd64/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-kfreebsd-amd64.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-kfreebsd-i386.sh .sh
++ sed -e 's/.*-//'
+ ARCH=i386
+ SCRATCH=scratch/no-rpath-i386
+ '[' -z i386 ']'
+ '[' i386 = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-i386
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-i386 ']'
+ rm -rf scratch/no-rpath-i386
+ mkdir -p scratch/no-rpath-i386
+ cp ./no-rpath-prebuild/no-rpath-i386 scratch/no-rpath-i386/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-i386/no-rpath
patching ELF file 'scratch/no-rpath-i386/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 24
replacing section '.dynamic' with size 248
replacing section '.dynstr' with size 101
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x26e/0x804826e
first page is 0x8048000
needed space is 900
needed space is 932
needed pages is 1
clearing first 4378 bytes
rewriting section '.dynamic' from offset 0x1544 (size 240) to offset 0x154 (size 248)
rewriting section '.dynstr' from offset 0x1224 (size 74) to offset 0x24c (size 101)
rewriting section '.dynsym' from offset 0x11d4 (size 80) to offset 0x2b4 (size 80)
rewriting section '.gnu.hash' from offset 0x11b4 (size 32) to offset 0x304 (size 32)
rewriting section '.hash' from offset 0x118c (size 40) to offset 0x324 (size 40)
rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x34c (size 19)
rewriting section '.note.ABI-tag' from offset 0x1148 (size 32) to offset 0x360 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x1168 (size 36) to offset 0x380 (size 36)
rewriting symbol table section 3
rewriting symbol table section 36
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-i386/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-kfreebsd-i386.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-mips.sh .sh
++ sed -e 's/.*-//'
+ ARCH=mips
+ SCRATCH=scratch/no-rpath-mips
+ '[' -z mips ']'
+ '[' mips = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-mips
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-mips ']'
+ rm -rf scratch/no-rpath-mips
+ mkdir -p scratch/no-rpath-mips
+ cp ./no-rpath-prebuild/no-rpath-mips scratch/no-rpath-mips/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mips/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-mips/no-rpath
patching ELF file 'scratch/no-rpath-mips/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 25
replacing section '.dynamic' with size 256
replacing section '.dynstr' with size 160
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynamic'
using replaced section '.dynstr'
last replaced is 8
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.reginfo'
replacing section '.reginfo' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.dynamic'
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
first reserved offset/addr is 0x42e/0x40042e
first page is 0x400000
needed space is 1108
needed space is 1140
needed pages is 1
changing alignment of program header 3 from 65536 to 4096
changing alignment of program header 4 from 65536 to 4096
clearing first 4794 bytes
rewriting section '.dynamic' from offset 0x11c0 (size 248) to offset 0x174 (size 256)
rewriting section '.dynstr' from offset 0x13a8 (size 133) to offset 0x274 (size 160)
rewriting section '.dynsym' from offset 0x12f8 (size 176) to offset 0x314 (size 176)
rewriting section '.hash' from offset 0x12b8 (size 64) to offset 0x3c4 (size 64)
rewriting section '.interp' from offset 0x1154 (size 13) to offset 0x404 (size 19)
rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x418 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x438 (size 36)
rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x45c (size 24)
rewriting symbol table section 3
rewriting symbol table section 41
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mips/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-mips.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-mipsel.sh .sh
++ sed -e 's/.*-//'
+ ARCH=mipsel
+ SCRATCH=scratch/no-rpath-mipsel
+ '[' -z mipsel ']'
+ '[' mipsel = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-mipsel
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-mipsel ']'
+ rm -rf scratch/no-rpath-mipsel
+ mkdir -p scratch/no-rpath-mipsel
+ cp ./no-rpath-prebuild/no-rpath-mipsel scratch/no-rpath-mipsel/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mipsel/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-mipsel/no-rpath
patching ELF file 'scratch/no-rpath-mipsel/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 25
replacing section '.dynamic' with size 256
replacing section '.dynstr' with size 160
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynamic'
using replaced section '.dynstr'
last replaced is 8
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.reginfo'
replacing section '.reginfo' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.dynamic'
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
first reserved offset/addr is 0x42e/0x40042e
first page is 0x400000
needed space is 1108
needed space is 1140
needed pages is 1
changing alignment of program header 3 from 65536 to 4096
changing alignment of program header 4 from 65536 to 4096
clearing first 4794 bytes
rewriting section '.dynamic' from offset 0x11c0 (size 248) to offset 0x174 (size 256)
rewriting section '.dynstr' from offset 0x13a8 (size 133) to offset 0x274 (size 160)
rewriting section '.dynsym' from offset 0x12f8 (size 176) to offset 0x314 (size 176)
rewriting section '.hash' from offset 0x12b8 (size 64) to offset 0x3c4 (size 64)
rewriting section '.interp' from offset 0x1154 (size 13) to offset 0x404 (size 19)
rewriting section '.note.ABI-tag' from offset 0x1164 (size 32) to offset 0x418 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x119c (size 36) to offset 0x438 (size 36)
rewriting section '.reginfo' from offset 0x1184 (size 24) to offset 0x45c (size 24)
rewriting symbol table section 3
rewriting symbol table section 41
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-mipsel/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-mipsel.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-powerpc.sh .sh
++ sed -e 's/.*-//'
+ ARCH=powerpc
+ SCRATCH=scratch/no-rpath-powerpc
+ '[' -z powerpc ']'
+ '[' powerpc = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-powerpc
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-powerpc ']'
+ rm -rf scratch/no-rpath-powerpc
+ mkdir -p scratch/no-rpath-powerpc
+ cp ./no-rpath-prebuild/no-rpath-powerpc scratch/no-rpath-powerpc/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-powerpc/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-powerpc/no-rpath
patching ELF file 'scratch/no-rpath-powerpc/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 21
replacing section '.dynamic' with size 224
replacing section '.dynstr' with size 101
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x26a/0x1000026a
first page is 0x10000000
needed space is 876
needed space is 908
needed pages is 1
changing alignment of program header 2 from 65536 to 4096
changing alignment of program header 3 from 65536 to 4096
clearing first 4374 bytes
rewriting section '.dynamic' from offset 0x171c (size 216) to offset 0x154 (size 224)
rewriting section '.dynstr' from offset 0x1220 (size 74) to offset 0x234 (size 101)
rewriting section '.dynsym' from offset 0x11d0 (size 80) to offset 0x29c (size 80)
rewriting section '.gnu.hash' from offset 0x11b0 (size 32) to offset 0x2ec (size 32)
rewriting section '.hash' from offset 0x1188 (size 40) to offset 0x30c (size 40)
rewriting section '.interp' from offset 0x1134 (size 13) to offset 0x334 (size 19)
rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x348 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x368 (size 36)
rewriting symbol table section 3
rewriting symbol table section 38
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-powerpc/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-powerpc.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-s390.sh .sh
++ sed -e 's/.*-//'
+ ARCH=s390
+ SCRATCH=scratch/no-rpath-s390
+ '[' -z s390 ']'
+ '[' s390 = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-s390
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-s390 ']'
+ rm -rf scratch/no-rpath-s390
+ mkdir -p scratch/no-rpath-s390
+ cp ./no-rpath-prebuild/no-rpath-s390 scratch/no-rpath-s390/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-s390/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-s390/no-rpath
patching ELF file 'scratch/no-rpath-s390/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 20
replacing section '.dynamic' with size 216
replacing section '.dynstr' with size 101
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 22
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.gnu.hash'
replacing section '.gnu.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x276/0x400276
first page is 0x400000
needed space is 880
needed space is 912
needed pages is 1
clearing first 4386 bytes
rewriting section '.dynamic' from offset 0x170c (size 208) to offset 0x154 (size 216)
rewriting section '.dynstr' from offset 0x122c (size 74) to offset 0x22c (size 101)
rewriting section '.dynsym' from offset 0x11dc (size 80) to offset 0x294 (size 80)
rewriting section '.gnu.hash' from offset 0x11b0 (size 44) to offset 0x2e4 (size 44)
rewriting section '.hash' from offset 0x1188 (size 40) to offset 0x310 (size 40)
rewriting section '.interp' from offset 0x1134 (size 13) to offset 0x338 (size 19)
rewriting section '.note.ABI-tag' from offset 0x1144 (size 32) to offset 0x34c (size 32)
rewriting section '.note.gnu.build-id' from offset 0x1164 (size 36) to offset 0x36c (size 36)
rewriting symbol table section 3
rewriting symbol table section 35
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-s390/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-s390.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-sh4.sh .sh
++ sed -e 's/.*-//'
+ ARCH=sh4
+ SCRATCH=scratch/no-rpath-sh4
+ '[' -z sh4 ']'
+ '[' sh4 = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-sh4
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-sh4 ']'
+ rm -rf scratch/no-rpath-sh4
+ mkdir -p scratch/no-rpath-sh4
+ cp ./no-rpath-prebuild/no-rpath-sh4 scratch/no-rpath-sh4/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sh4/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-sh4/no-rpath
patching ELF file 'scratch/no-rpath-sh4/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 19
replacing section '.dynamic' with size 208
replacing section '.dynstr' with size 107
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 19
looking at section '.interp'
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x248/0x400248
first page is 0x400000
needed space is 820
needed space is 852
needed pages is 1
changing alignment of program header 2 from 65536 to 4096
changing alignment of program header 3 from 65536 to 4096
clearing first 4340 bytes
rewriting section '.dynamic' from offset 0x1600 (size 200) to offset 0x154 (size 208)
rewriting section '.dynstr' from offset 0x11f8 (size 80) to offset 0x224 (size 107)
rewriting section '.dynsym' from offset 0x1198 (size 96) to offset 0x290 (size 96)
rewriting section '.hash' from offset 0x116c (size 44) to offset 0x2f0 (size 44)
rewriting section '.interp' from offset 0x1134 (size 19) to offset 0x31c (size 19)
rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x330 (size 36)
rewriting symbol table section 3
rewriting symbol table section 34
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sh4/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-sh4.sh
+ ARCH=
+ PAGESIZE=4096
+ '[' -z '' ']'
++ basename ./no-rpath-sparc.sh .sh
++ sed -e 's/.*-//'
+ ARCH=sparc
+ SCRATCH=scratch/no-rpath-sparc
+ '[' -z sparc ']'
+ '[' sparc = prebuild ']'
+ no_rpath_bin=./no-rpath-prebuild/no-rpath-sparc
+ '[' '!' -f ./no-rpath-prebuild/no-rpath-sparc ']'
+ rm -rf scratch/no-rpath-sparc
+ mkdir -p scratch/no-rpath-sparc
+ cp ./no-rpath-prebuild/no-rpath-sparc scratch/no-rpath-sparc/no-rpath
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sparc/no-rpath
Kernel page size is 4096 bytes
+ oldRPath=
+ test -n ''
++ ../src/patchelf --page-size 4096 --print-interpreter ../src/patchelf
Kernel page size is 4096 bytes
+ ../src/patchelf --page-size 4096 --set-interpreter /lib/ld-linux.so.2 --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx scratch/no-rpath-sparc/no-rpath
patching ELF file 'scratch/no-rpath-sparc/no-rpath'
Kernel page size is 4096 bytes
new rpath is '/foo:/bar:/xxxxxxxxxxxxxxx'
rpath is too long, resizing...
DT_NULL index is 19
replacing section '.dynamic' with size 208
replacing section '.dynstr' with size 101
replacing section '.interp' with size 19
this is an executable
using replaced section '.interp'
using replaced section '.dynstr'
using replaced section '.dynamic'
last replaced is 19
looking at section '.interp'
looking at section '.note.ABI-tag'
replacing section '.note.ABI-tag' which is in the way
looking at section '.note.gnu.build-id'
replacing section '.note.gnu.build-id' which is in the way
looking at section '.hash'
replacing section '.hash' which is in the way
looking at section '.dynsym'
replacing section '.dynsym' which is in the way
looking at section '.dynstr'
looking at section '.gnu.version'
first reserved offset/addr is 0x22e/0x1022e
first page is 0x10000
needed space is 796
needed space is 828
needed pages is 1
changing alignment of program header 2 from 65536 to 4096
changing alignment of program header 3 from 65536 to 4096
clearing first 4346 bytes
rewriting section '.dynamic' from offset 0x1588 (size 200) to offset 0x134 (size 208)
rewriting section '.dynstr' from offset 0x11e4 (size 74) to offset 0x204 (size 101)
rewriting section '.dynsym' from offset 0x1194 (size 80) to offset 0x26c (size 80)
rewriting section '.hash' from offset 0x116c (size 40) to offset 0x2bc (size 40)
rewriting section '.interp' from offset 0x1114 (size 19) to offset 0x2e4 (size 19)
rewriting section '.note.ABI-tag' from offset 0x1128 (size 32) to offset 0x2f8 (size 32)
rewriting section '.note.gnu.build-id' from offset 0x1148 (size 36) to offset 0x318 (size 36)
rewriting symbol table section 3
rewriting symbol table section 35
++ ../src/patchelf --page-size 4096 --print-rpath scratch/no-rpath-sparc/no-rpath
Kernel page size is 4096 bytes
+ newRPath=/foo:/bar:/xxxxxxxxxxxxxxx
+ echo /foo:/bar:/xxxxxxxxxxxxxxx
+ grep -q /foo:/bar
PASS: no-rpath-sparc.sh
===================
All 25 tests passed
===================
make[2]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/tests'
make[1]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10/tests'
make[1]: Entering directory '/usr/src/RPM/BUILD/patchelf-0.10'
make[1]: Nothing to be done for 'check-am'.
make[1]: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10'
make: Leaving directory '/usr/src/RPM/BUILD/patchelf-0.10'
+ '[' 0 = 0 ']'
+ exit 0
Processing files: patchelf-0.10-alt1
Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.82437
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd patchelf-0.10
+ DOCDIR=/usr/src/tmp/patchelf-buildroot/usr/share/doc/patchelf-0.10
+ export DOCDIR
+ rm -rf /usr/src/tmp/patchelf-buildroot/usr/share/doc/patchelf-0.10
+ /bin/mkdir -p /usr/src/tmp/patchelf-buildroot/usr/share/doc/patchelf-0.10
+ cp -prL COPYING README /usr/src/tmp/patchelf-buildroot/usr/share/doc/patchelf-0.10
+ chmod -R go-w /usr/src/tmp/patchelf-buildroot/usr/share/doc/patchelf-0.10
+ chmod -R a+rX /usr/src/tmp/patchelf-buildroot/usr/share/doc/patchelf-0.10
+ exit 0
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.1yy3fj
find-provides: running scripts (debuginfo,lib,pam,perl,pkgconfig,python,shell)
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.d10ypH
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks,systemd-services)
Requires: /lib/ld-linux.so.2, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.2), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libgcc_s.so.1(GCC_3.0), libgcc_s.so.1(GLIBC_2.0), libstdc++.so.6(CXXABI_1.3), libstdc++.so.6(GLIBCXX_3.4), libstdc++.so.6(GLIBCXX_3.4.21), libstdc++.so.6(GLIBCXX_3.4.9), rtld(GNU_HASH)
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.c1iQPp
Creating patchelf-debuginfo package
Processing files: patchelf-debuginfo-0.10-alt1
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.gKWPCq
find-provides: running scripts (debuginfo)
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.6excHw
find-requires: running scripts (debuginfo)
Requires: patchelf = 0.10-alt1, /usr/lib/debug/lib/ld-linux.so.2.debug, debug(libc.so.6), debug(libgcc_s.so.1), debug(libstdc++.so.6)
Adding to patchelf-debuginfo a strict dependency on patchelf
Wrote: /usr/src/RPM/RPMS/i586/patchelf-0.10-alt1.i586.rpm
Wrote: /usr/src/RPM/RPMS/i586/patchelf-debuginfo-0.10-alt1.i586.rpm
15.05user 1.36system 0:21.61elapsed 75%CPU (0avgtext+0avgdata 190380maxresident)k
0inputs+0outputs (0major+492524minor)pagefaults 0swaps
19.85user 3.83system 0:29.15elapsed 81%CPU (0avgtext+0avgdata 190380maxresident)k
0inputs+0outputs (0major+772075minor)pagefaults 0swaps