check flags: building check-recursive Making check in src make[1]: Entering directory `/tmp/nix-28114-3/patchelf-0.1/src' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/tmp/nix-28114-3/patchelf-0.1/src' Making check in tests building check-am make[1]: Entering directory `/tmp/nix-28114-3/patchelf-0.1/tests' make main simple big-dynstr building main.o make[2]: Entering directory `/tmp/nix-28114-3/patchelf-0.1/tests' gcc -fpic -o main.o -c main.c building foo.o gcc -fpic -o foo.o -c foo.c building bar.o gcc -fpic -o bar.o -c bar.c building libbar.so NIX_DONT_SET_RPATH=1 gcc -shared -o libbar.so bar.o -L . -Wl,-rpath,`pwd`/no-such-path building libfoo.so gcc -shared -o libfoo.so foo.o -L . -lbar building main LD_LIBRARY_PATH=. gcc -o main main.o -L . -lfoo building simple.o if gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.1\"\" -DPACKAGE_STRING=\"patchelf\ \"0.1\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.1\"\" -I. -I. -g -O2 -MT simple.o -MD -MP -MF ".deps/simple.Tpo" -c -o simple.o simple.c; \ then mv -f ".deps/simple.Tpo" ".deps/simple.Po"; else rm -f ".deps/simple.Tpo"; exit 1; fi building simple gcc -g -O2 -o simple simple.o  building big-dynstr.o if gcc -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"\"0.1\"\" -DPACKAGE_STRING=\"patchelf\ \"0.1\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"\"0.1\"\" -I. -I. -g -O2 -MT big-dynstr.o -MD -MP -MF ".deps/big-dynstr.Tpo" -c -o big-dynstr.o big-dynstr.c; \ then mv -f ".deps/big-dynstr.Tpo" ".deps/big-dynstr.Po"; else rm -f ".deps/big-dynstr.Tpo"; exit 1; fi building big-dynstr LD_LIBRARY_PATH=. gcc -o big-dynstr big-dynstr.o -L . -lfoo make[2]: Leaving directory `/tmp/nix-28114-3/patchelf-0.1/tests' make check-TESTS building check-TESTS make[2]: Entering directory `/tmp/nix-28114-3/patchelf-0.1/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 RPATH before: /tmp/nix-28114-3/patchelf-0.1/tests/no-such-path:/nix/store/fx3vma2dp1c8b60awmfivd0v1rwlpr1y-patchelf/lib patching ELF file `scratch/libbar.so' removing directory `/tmp/nix-28114-3/patchelf-0.1/tests/no-such-path' from RPATH removing directory `/nix/store/fx3vma2dp1c8b60awmfivd0v1rwlpr1y-patchelf/lib' from RPATH new rpath is `' RPATH after: PASS: shrink.sh Hello World current interpreter is /nix/store/b93s40lbax6lmk79c0bbnqhr7shs337n-glibc-2.3.5/lib/ld-linux.so.2 patching ELF file `scratch/simple' replacing section `.interp' with size 6 last replaced is 1 looking at section `.interp' first reserved offset/addr is 0x160/0x8048160 first page is 0x8048000 needed space is 284 rewriting section `.interp' to offset 276 using replaced section `.interp' running with missing interpreter... ./set-interpreter-short.sh: scratch/simple: /oops: bad ELF interpreter: No such file or directory PASS: set-interpreter-short.sh Hello World current interpreter is /nix/store/b93s40lbax6lmk79c0bbnqhr7shs337n-glibc-2.3.5/lib/ld-linux.so.2 patching ELF file `scratch/simple' replacing section `.interp' with size 145 last replaced is 1 looking at section `.interp' first reserved offset/addr is 0x160/0x8048160 first page is 0x8048000 needed space is 424 needed space is 456 needed pages is 1 rewriting section `.interp' to offset 308 using replaced section `.interp' running with missing interpreter... ./set-interpreter-long.sh: scratch/simple: /tmp/nix-28114-3/patchelf-0.1/tests/scratch/iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii: bad ELF interpreter: No such file or directory running with new interpreter... Hello World PASS: set-interpreter-long.sh patching ELF file `scratch/main' new rpath is `/nix/store/fx3vma2dp1c8b60awmfivd0v1rwlpr1y-patchelf/lib:/nix/store/sw3iafyq0biblhms99nsy5qi6fz3vshc-gcc-3.4.4/lib:/nix/store/b93s40lbax6lmk79c0bbnqhr7shs337n-glibc-2.3.5/lib:/tmp/nix-28114-3/patchelf-0.1/tests/scratch/libsA:/tmp/nix-28114-3/patchelf-0.1/tests/scratch/libsB' rpath is too long, resizing... replacing section `.dynstr' with size 605 last replaced is 5 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 `.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 0x3e2/0x80483e2 first page is 0x8048000 needed space is 1272 needed space is 1304 needed pages is 1 rewriting section `.dynstr' to offset 308 rewriting section `.dynsym' to offset 916 rewriting section `.hash' to offset 1124 rewriting section `.interp' to offset 1196 rewriting section `.note.ABI-tag' to offset 1272 using replaced section `.dynstr' Hello World This is foo()! This is bar()! Result is 46 PASS: set-rpath.sh patching ELF file `scratch/no-rpath' 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 103 replacing section `.interp' with size 74 last replaced is 17 looking at section `.interp' looking at section `.note.ABI-tag' replacing section `.note.ABI-tag' which is in the way looking at section `.hash' replacing section `.hash' which is in the way looking at section `.dynsym' replacing section `.dynsym' which is in the way looking at section `.dynstr' looking at section `.gnu.version' first reserved offset/addr is 0x1ec/0x80481ec first page is 0x8048000 needed space is 784 needed space is 816 needed pages is 1 rewriting section `.dynamic' to offset 276 rewriting section `.dynstr' to offset 484 rewriting section `.dynsym' to offset 588 rewriting section `.hash' to offset 668 rewriting section `.interp' to offset 708 rewriting section `.note.ABI-tag' to offset 784 using replaced section `.interp' using replaced section `.dynstr' using replaced section `.dynamic' Hello World PASS: no-rpath.sh patching ELF file `scratch/big-dynstr' new rpath is `/nix/store/fx3vma2dp1c8b60awmfivd0v1rwlpr1y-patchelf/lib:/nix/store/sw3iafyq0biblhms99nsy5qi6fz3vshc-gcc-3.4.4/lib:/nix/store/b93s40lbax6lmk79c0bbnqhr7shs337n-glibc-2.3.5/lib:/tmp/nix-28114-3/patchelf-0.1/tests/scratch/libsA:/tmp/nix-28114-3/patchelf-0.1/tests/scratch/libsB' rpath is too long, resizing... replacing section `.dynstr' with size 610 last replaced is 5 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 `.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 0x3fc/0x80483fc first page is 0x8048000 needed space is 1296 needed space is 1328 needed pages is 1 rewriting section `.dynstr' to offset 308 rewriting section `.dynsym' to offset 920 rewriting section `.hash' to offset 1144 rewriting section `.interp' to offset 1220 rewriting section `.note.ABI-tag' to offset 1296 using replaced section `.dynstr' Hello World This is foo()! This is bar()! Result is 46 PASS: big-dynstr.sh ================== All 8 tests passed ================== make[2]: Leaving directory `/tmp/nix-28114-3/patchelf-0.1/tests' make[1]: Leaving directory `/tmp/nix-28114-3/patchelf-0.1/tests' make[1]: Entering directory `/tmp/nix-28114-3/patchelf-0.1' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/tmp/nix-28114-3/patchelf-0.1'