wrap-buddy-1.0.1
checks.x86_64-linux.test-sanitizers
· build #29
· raw
unpackPhase
1unpacking source archive /nix/store/4zznh878gcxdzzfan3cbl03ky2xz5y8a-source2source root is sourceconfigurePhase
3no configure script, doing nothingbuildPhase
4build flags: -j24 SHELL=/nix/store/9ipfvwnqp1q8ijnmi5sxvlx9r8w34lw3-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/w88q44gqd1qg5wmkk7v0h97rpiqvam0l-gcc-wrapper-15.3.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib BUILD_32BIT=15gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -o loader.elf src/loader/loader.c6gcc -DRELOCATABLE_MODE=0 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"/nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/lib/wrap-buddy/loader.bin"' -o stub.elf src/stub/stub.c7gcc -DRELOCATABLE_MODE=1 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -Iinclude -DLOADER_PATH='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -o stub_reloc.elf src/stub/stub.c8gcc -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -m32 -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -o loader32.elf src/loader/loader.c9gcc -DRELOCATABLE_MODE=0 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -m32 -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -DLOADER_PATH='"/nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/lib/wrap-buddy/loader32.bin"' -o stub32.elf src/stub/stub.c10gcc -DRELOCATABLE_MODE=1 -Wall -nostdlib -nostdinc -fPIC -fno-stack-protector -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin -Oz -Iinclude -m32 -Wl,-T,src/preamble.ld -Wl,-e,_start -Wl,-Ttext=0 -DLOADER_PATH='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -o stub32_reloc.elf src/stub/stub.c11/nix/store/5pa1282x1sasbwhmnah6bny1g9pc2lj1-binutils-2.46/bin/ld.bfd: warning: stub.elf has a LOAD segment with RWX permissions12objcopy -O binary --only-section=.all stub.elf stub.bin13/nix/store/5pa1282x1sasbwhmnah6bny1g9pc2lj1-binutils-2.46/bin/ld.bfd: warning: stub_reloc.elf has a LOAD segment with RWX permissions14xxd -i stub.bin > src/patcher/stub_64.h15objcopy -O binary --only-section=.all stub_reloc.elf stub_reloc.bin16/nix/store/5pa1282x1sasbwhmnah6bny1g9pc2lj1-binutils-2.46/bin/ld.bfd: warning: stub32.elf has a LOAD segment with RWX permissions17/nix/store/5pa1282x1sasbwhmnah6bny1g9pc2lj1-binutils-2.46/bin/ld.bfd: warning: stub32_reloc.elf has a LOAD segment with RWX permissions18objcopy -O binary --only-section=.all stub32.elf stub32.bin19xxd -i stub_reloc.bin > src/patcher/stub_64_reloc.h20objcopy -O binary --only-section=.all stub32_reloc.elf stub32_reloc.bin21xxd -i stub32.bin > src/patcher/stub_32.h22xxd -i stub32_reloc.bin > src/patcher/stub_32_reloc.h23/nix/store/w88q44gqd1qg5wmkk7v0h97rpiqvam0l-gcc-wrapper-15.3.0/bin/c++ -std=c++23 -Wall -Wextra -O2 -Iinclude -DRELOCATABLE_LOADER_PATH_PLACEHOLDER='"880031aabab70d51f1ff08762ad3c457bdaa2bf2687f4e864a33f63889a5ed1b571bebc01e6d248e9e4ac63c86b696712f07a701983375bd95910df9afa9a636"' -DLIBDIR='"/nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/lib/wrap-buddy"' -fsanitize=address,undefined -fno-omit-frame-pointer -fno-sanitize-recover=all -DHAVE_STUB_32 -DDEFAULT_INTERP='"/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.2"' -DDEFAULT_LIBC_LIB='"/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib"' -Isrc/patcher -o wrap-buddy src/patcher/main.cc24/nix/store/5pa1282x1sasbwhmnah6bny1g9pc2lj1-binutils-2.46/bin/ld.bfd: warning: loader32.elf has a LOAD segment with RWX permissions25objcopy -O binary --only-section=.all loader32.elf loader32.bin26/nix/store/5pa1282x1sasbwhmnah6bny1g9pc2lj1-binutils-2.46/bin/ld.bfd: warning: loader.elf has a LOAD segment with RWX permissions27objcopy -O binary --only-section=.all loader.elf loader.bininstallPhase
28install flags: -j24 SHELL=/nix/store/9ipfvwnqp1q8ijnmi5sxvlx9r8w34lw3-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/w88q44gqd1qg5wmkk7v0h97rpiqvam0l-gcc-wrapper-15.3.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib BUILD_32BIT=1 install29install -d /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/bin30install -m 755 wrap-buddy /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/bin/31install -d /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/lib/wrap-buddy32install -m 644 loader.bin stub.bin stub_reloc.bin loader32.bin stub32.bin /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/lib/wrap-buddy/fixupPhase
33shrinking RPATHs of ELF executables and libraries in /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.134shrinking /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/bin/wrap-buddy35checking for references to /build/ in /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1...36patching script interpreter paths in /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.137stripping (with command strip and flags -S -p) in /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/lib /nix/store/xc3lxx48igh14i21li060djdbs3nh1mk-wrap-buddy-1.0.1/bininstallCheckPhase
38installcheck flags: -j24 SHELL=/nix/store/9ipfvwnqp1q8ijnmi5sxvlx9r8w34lw3-bash-5.3p15/bin/bash CXX_FOR_BUILD=/nix/store/w88q44gqd1qg5wmkk7v0h97rpiqvam0l-gcc-wrapper-15.3.0/bin/c++ BINDIR=\$\(out\)/bin LIBDIR=\$\(out\)/lib/wrap-buddy INTERP=/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib BUILD_32BIT=1 INTERP=/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.2 LIBC_LIB=/nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib check39bash tests/test.sh --interp /nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.2 --libs /nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib40=== Test: basic patching ===41Using interpreter: /nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.24264-bit stub: 375 bytes4332-bit stub: 441 bytes44Patching: /build/tmp.oivp7MFOcb/basic45 ELF class: 64-bit46 Original entry: 0x1150 (file offset: 0x1150)47 Available space at entry: 4345 bytes48 Stub size: 375 bytes (padded to 384)49 Wrote config to /build/tmp.oivp7MFOcb/.basic.wrapbuddy50 Overwrote 384 bytes at entry point51 Converted PT_INTERP to PT_NULL52Patched: /build/tmp.oivp7MFOcb/basic53PASS: basic patching54=== Test: --needed injection ===55Using interpreter: /nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.25664-bit stub: 375 bytes5732-bit stub: 441 bytes58Patching: /build/tmp.oivp7MFOcb/check59 ELF class: 64-bit60 Original entry: 0x10f0 (file offset: 0x10f0)61 Available space at entry: 4345 bytes62 Stub size: 375 bytes (padded to 384)63 Wrote config to /build/tmp.oivp7MFOcb/.check.wrapbuddy64 Overwrote 384 bytes at entry point65 Converted PT_INTERP to PT_NULL66Patched: /build/tmp.oivp7MFOcb/check67PASS: --needed injection68=== Test: --relocatable ===69Using interpreter: /nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.27064-bit stub: 577 bytes7132-bit stub: 609 bytes72Patching: /build/tmp.oivp7MFOcb/relocatable73 ELF class: 64-bit74 Original entry: 0x1150 (file offset: 0x1150)75 Available space at entry: 4345 bytes76 Stub size: 577 bytes (padded to 592)77 Wrote config to /build/tmp.oivp7MFOcb/.relocatable.wrapbuddy78 Overwrote 592 bytes at entry point79 Converted PT_INTERP to PT_NULL80Patched: /build/tmp.oivp7MFOcb/relocatable81PASS: --relocatable patching82=== Test: --relocatable binary movement ===83Using interpreter: /nix/store/n51dhmdbik1kfrsm62j5knavmigwrl1a-glibc-2.42-84/lib/ld-linux-x86-64.so.28464-bit stub: 577 bytes8532-bit stub: 609 bytes86Patching: /build/tmp.oivp7MFOcb/staging/bin/movable87 ELF class: 64-bit88 Original entry: 0x1150 (file offset: 0x1150)89 Available space at entry: 4345 bytes90 Stub size: 577 bytes (padded to 592)91 Wrote config to /build/tmp.oivp7MFOcb/staging/bin/.movable.wrapbuddy92 Overwrote 592 bytes at entry point93 Converted PT_INTERP to PT_NULL94Patched: /build/tmp.oivp7MFOcb/staging/bin/movable95PASS: --relocatable binary movement96=== All tests passed ===