Start testing: Nov 13 20:02 CET ---------------------------------------------------------- 2/322 Testing: x86_64-x86_64_emulation-deduction 2/322 Test: x86_64-x86_64_emulation-deduction Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_emulation-deduction.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_emulation-deduction" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_emulation-deduction.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_emulation-deduction.sh .sh ++ testname=x86_64_emulation-deduction ++ echo -n 'Testing x86_64_emulation-deduction ... ' Testing x86_64_emulation-deduction ... ++ t=out/test/elf/x86_64/x86_64_emulation-deduction ++ mkdir -p out/test/elf/x86_64/x86_64_emulation-deduction + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_emulation-deduction/a.o -c -xc - + ./mold -o out/test/elf/x86_64/x86_64_emulation-deduction/exe out/test/elf/x86_64/x86_64_emulation-deduction/a.o + readelf --file-header out/test/elf/x86_64/x86_64_emulation-deduction/exe + grep -qi x86-64 + on_exit + echo OK OK + exit 0 Test time = 0.07 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_emulation-deduction" end time: Nov 13 20:02 CET "x86_64-x86_64_emulation-deduction" time elapsed: 00:00:00 ---------------------------------------------------------- 1/322 Testing: x86_64-x86_64_empty-mergeable-section 1/322 Test: x86_64-x86_64_empty-mergeable-section Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_empty-mergeable-section.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_empty-mergeable-section" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_empty-mergeable-section.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_empty-mergeable-section.sh .sh ++ testname=x86_64_empty-mergeable-section ++ echo -n 'Testing x86_64_empty-mergeable-section ... ' Testing x86_64_empty-mergeable-section ... ++ t=out/test/elf/x86_64/x86_64_empty-mergeable-section ++ mkdir -p out/test/elf/x86_64/x86_64_empty-mergeable-section + cat + cc -o out/test/elf/x86_64/x86_64_empty-mergeable-section/a.o -c -xassembler - + cat + cc -o out/test/elf/x86_64/x86_64_empty-mergeable-section/b.o -c -xassembler - + cat + cc -o out/test/elf/x86_64/x86_64_empty-mergeable-section/c.o -c -xc - + cc -B. -o out/test/elf/x86_64/x86_64_empty-mergeable-section/exe out/test/elf/x86_64/x86_64_empty-mergeable-section/a.o out/test/elf/x86_64/x86_64_empty-mergeable-section/b.o out/test/elf/x86_64/x86_64_empty-mergeable-section/c.o + out/test/elf/x86_64/x86_64_empty-mergeable-section/exe + readelf -SW out/test/elf/x86_64/x86_64_empty-mergeable-section/exe + grep -q '.rodata.str1.1 .* AMS ' out/test/elf/x86_64/x86_64_empty-mergeable-section/log + grep -q '.rodata.str1.1 .* AM ' out/test/elf/x86_64/x86_64_empty-mergeable-section/log + on_exit + echo OK OK + exit 0 Test time = 0.15 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_empty-mergeable-section" end time: Nov 13 20:02 CET "x86_64-x86_64_empty-mergeable-section" time elapsed: 00:00:00 ---------------------------------------------------------- 5/322 Testing: x86_64-x86_64_execstack-if-needed 5/322 Test: x86_64-x86_64_execstack-if-needed Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_execstack-if-needed.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_execstack-if-needed" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_execstack-if-needed.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_execstack-if-needed.sh .sh ++ testname=x86_64_execstack-if-needed ++ echo -n 'Testing x86_64_execstack-if-needed ... ' Testing x86_64_execstack-if-needed ... ++ t=out/test/elf/x86_64/x86_64_execstack-if-needed ++ mkdir -p out/test/elf/x86_64/x86_64_execstack-if-needed + '[' x86_64 = x86_64 ']' + cat + cc -c -xassembler -o out/test/elf/x86_64/x86_64_execstack-if-needed/a.o - + cc -B. -o out/test/elf/x86_64/x86_64_execstack-if-needed/exe out/test/elf/x86_64/x86_64_execstack-if-needed/a.o + readelf --segments -W out/test/elf/x86_64/x86_64_execstack-if-needed/exe + grep -q 'GNU_STACK.* RW ' + cc -B. -o out/test/elf/x86_64/x86_64_execstack-if-needed/exe out/test/elf/x86_64/x86_64_execstack-if-needed/a.o -Wl,-z,execstack-if-needed + readelf --segments -W out/test/elf/x86_64/x86_64_execstack-if-needed/exe + grep -q 'GNU_STACK.* RWE ' + on_exit + echo OK OK + exit 0 Test time = 0.17 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_execstack-if-needed" end time: Nov 13 20:02 CET "x86_64-x86_64_execstack-if-needed" time elapsed: 00:00:00 ---------------------------------------------------------- 6/322 Testing: x86_64-x86_64_gnu-linkonce 6/322 Test: x86_64-x86_64_gnu-linkonce Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_gnu-linkonce.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_gnu-linkonce" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_gnu-linkonce.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_gnu-linkonce.sh .sh ++ testname=x86_64_gnu-linkonce ++ echo -n 'Testing x86_64_gnu-linkonce ... ' Testing x86_64_gnu-linkonce ... ++ t=out/test/elf/x86_64/x86_64_gnu-linkonce ++ mkdir -p out/test/elf/x86_64/x86_64_gnu-linkonce + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_gnu-linkonce/a.o -c -x assembler - + cat + cc -o out/test/elf/x86_64/x86_64_gnu-linkonce/b.o -c -x assembler - + cat + cc -o out/test/elf/x86_64/x86_64_gnu-linkonce/c.o -c -xc - + cc -B. -o out/test/elf/x86_64/x86_64_gnu-linkonce/exe out/test/elf/x86_64/x86_64_gnu-linkonce/a.o out/test/elf/x86_64/x86_64_gnu-linkonce/b.o out/test/elf/x86_64/x86_64_gnu-linkonce/c.o + objdump -d out/test/elf/x86_64/x86_64_gnu-linkonce/exe + grep -A1 '<__x86.get_pc_thunk.bx>:' + grep -Fq 'puts$plt' + on_exit + echo OK OK + exit 0 Test time = 0.20 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_gnu-linkonce" end time: Nov 13 20:02 CET "x86_64-x86_64_gnu-linkonce" time elapsed: 00:00:00 ---------------------------------------------------------- 4/322 Testing: x86_64-x86_64_exception-mcmodel-large 4/322 Test: x86_64-x86_64_exception-mcmodel-large Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_exception-mcmodel-large.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_exception-mcmodel-large" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_exception-mcmodel-large.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_exception-mcmodel-large.sh .sh ++ testname=x86_64_exception-mcmodel-large ++ echo -n 'Testing x86_64_exception-mcmodel-large ... ' Testing x86_64_exception-mcmodel-large ... ++ t=out/test/elf/x86_64/x86_64_exception-mcmodel-large ++ mkdir -p out/test/elf/x86_64/x86_64_exception-mcmodel-large + '[' x86_64 = x86_64 ']' + cat + c++ -c -o out/test/elf/x86_64/x86_64_exception-mcmodel-large/a.o -xc++ -fPIC - + c++ -B. -o out/test/elf/x86_64/x86_64_exception-mcmodel-large/exe out/test/elf/x86_64/x86_64_exception-mcmodel-large/a.o -mcmodel=large + out/test/elf/x86_64/x86_64_exception-mcmodel-large/exe + echo 'int main() {}' + cc -o /dev/null -xc - -static + c++ -B. -o out/test/elf/x86_64/x86_64_exception-mcmodel-large/exe out/test/elf/x86_64/x86_64_exception-mcmodel-large/a.o -static -mcmodel=large + out/test/elf/x86_64/x86_64_exception-mcmodel-large/exe + on_exit + echo OK OK + exit 0 Test time = 0.30 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_exception-mcmodel-large" end time: Nov 13 20:02 CET "x86_64-x86_64_exception-mcmodel-large" time elapsed: 00:00:00 ---------------------------------------------------------- 9/322 Testing: x86_64-x86_64_ifunc-alias 9/322 Test: x86_64-x86_64_ifunc-alias Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_ifunc-alias.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_ifunc-alias" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_ifunc-alias.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_ifunc-alias.sh .sh ++ testname=x86_64_ifunc-alias ++ echo -n 'Testing x86_64_ifunc-alias ... ' Testing x86_64_ifunc-alias ... ++ t=out/test/elf/x86_64/x86_64_ifunc-alias ++ mkdir -p out/test/elf/x86_64/x86_64_ifunc-alias + supports_ifunc + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + cc -c -o /dev/null -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.12 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-x86_64_ifunc-alias" end time: Nov 13 20:02 CET "x86_64-x86_64_ifunc-alias" time elapsed: 00:00:00 ---------------------------------------------------------- 10/322 Testing: x86_64-x86_64_incompatible-libs 10/322 Test: x86_64-x86_64_incompatible-libs Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_incompatible-libs.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_incompatible-libs" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_incompatible-libs.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_incompatible-libs.sh .sh ++ testname=x86_64_incompatible-libs ++ echo -n 'Testing x86_64_incompatible-libs ... ' Testing x86_64_incompatible-libs ... ++ t=out/test/elf/x86_64/x86_64_incompatible-libs ++ mkdir -p out/test/elf/x86_64/x86_64_incompatible-libs + '[' x86_64 = x86_64 ']' + echo 'int main() {}' + cc -m32 -o out/test/elf/x86_64/x86_64_incompatible-libs/exe -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.21 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-x86_64_incompatible-libs" end time: Nov 13 20:02 CET "x86_64-x86_64_incompatible-libs" time elapsed: 00:00:00 ---------------------------------------------------------- 3/322 Testing: x86_64-x86_64_endbr 3/322 Test: x86_64-x86_64_endbr Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_endbr.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_endbr" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_endbr.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_endbr.sh .sh ++ testname=x86_64_endbr ++ echo -n 'Testing x86_64_endbr ... ' Testing x86_64_endbr ... ++ t=out/test/elf/x86_64/x86_64_endbr ++ mkdir -p out/test/elf/x86_64/x86_64_endbr + '[' x86_64 = x86_64 ']' + test_cflags -fcf-protection + echo 'int main() {}' + cc -fcf-protection -o /dev/null -xc - + cat + cc -o out/test/elf/x86_64/x86_64_endbr/a.o -c -xc - -ffunction-sections -O -fcf-protection + cat + cc -o out/test/elf/x86_64/x86_64_endbr/b.o -c -xc - -ffunction-sections -O -fcf-protection + cc -B. -o out/test/elf/x86_64/x86_64_endbr/exe1 out/test/elf/x86_64/x86_64_endbr/a.o out/test/elf/x86_64/x86_64_endbr/b.o + objdump -dr out/test/elf/x86_64/x86_64_endbr/exe1 + grep -A1 ':' out/test/elf/x86_64/x86_64_endbr/log1 + grep -q endbr64 + grep -A1 ':' out/test/elf/x86_64/x86_64_endbr/log1 + grep -q endbr64 + grep -A1 '
:' out/test/elf/x86_64/x86_64_endbr/log1 + grep -q endbr64 + cc -B. -o out/test/elf/x86_64/x86_64_endbr/exe2 out/test/elf/x86_64/x86_64_endbr/a.o out/test/elf/x86_64/x86_64_endbr/b.o -Wl,-z,rewrite-endbr + objdump -dr out/test/elf/x86_64/x86_64_endbr/exe2 + grep -A1 ':' out/test/elf/x86_64/x86_64_endbr/log2 + grep -q nop + grep -A1 ':' out/test/elf/x86_64/x86_64_endbr/log2 + grep -q nop + grep -A1 '
:' out/test/elf/x86_64/x86_64_endbr/log2 + grep -q endbr64 + on_exit + echo OK OK + exit 0 Test time = 0.55 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_endbr" end time: Nov 13 20:02 CET "x86_64-x86_64_endbr" time elapsed: 00:00:00 ---------------------------------------------------------- 11/322 Testing: x86_64-x86_64_incompatible-libs2 11/322 Test: x86_64-x86_64_incompatible-libs2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_incompatible-libs2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_incompatible-libs2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_incompatible-libs2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_incompatible-libs2.sh .sh ++ testname=x86_64_incompatible-libs2 ++ echo -n 'Testing x86_64_incompatible-libs2 ... ' Testing x86_64_incompatible-libs2 ... ++ t=out/test/elf/x86_64/x86_64_incompatible-libs2 ++ mkdir -p out/test/elf/x86_64/x86_64_incompatible-libs2 + '[' x86_64 = x86_64 ']' + echo 'int main() {}' + cc -m32 -o out/test/elf/x86_64/x86_64_incompatible-libs2/exe -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.26 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-x86_64_incompatible-libs2" end time: Nov 13 20:02 CET "x86_64-x86_64_incompatible-libs2" time elapsed: 00:00:00 ---------------------------------------------------------- 8/322 Testing: x86_64-x86_64_gotpcrelx 8/322 Test: x86_64-x86_64_gotpcrelx Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_gotpcrelx.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_gotpcrelx" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_gotpcrelx.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_gotpcrelx.sh .sh ++ testname=x86_64_gotpcrelx ++ echo -n 'Testing x86_64_gotpcrelx ... ' Testing x86_64_gotpcrelx ... ++ t=out/test/elf/x86_64/x86_64_gotpcrelx ++ mkdir -p out/test/elf/x86_64/x86_64_gotpcrelx + cat + cc -o out/test/elf/x86_64/x86_64_gotpcrelx/a.o -c -xc - -fPIC + cat + cc -o out/test/elf/x86_64/x86_64_gotpcrelx/b.o -c -xc - -fPIC + cc -B. -o out/test/elf/x86_64/x86_64_gotpcrelx/exe out/test/elf/x86_64/x86_64_gotpcrelx/a.o out/test/elf/x86_64/x86_64_gotpcrelx/b.o + out/test/elf/x86_64/x86_64_gotpcrelx/exe 0 0 + on_exit + echo OK OK + exit 0 Test time = 0.36 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_gotpcrelx" end time: Nov 13 20:02 CET "x86_64-x86_64_gotpcrelx" time elapsed: 00:00:00 ---------------------------------------------------------- 12/322 Testing: x86_64-x86_64_incompatible-obj 12/322 Test: x86_64-x86_64_incompatible-obj Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_incompatible-obj.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_incompatible-obj" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_incompatible-obj.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_incompatible-obj.sh .sh ++ testname=x86_64_incompatible-obj ++ echo -n 'Testing x86_64_incompatible-obj ... ' Testing x86_64_incompatible-obj ... ++ t=out/test/elf/x86_64/x86_64_incompatible-obj ++ mkdir -p out/test/elf/x86_64/x86_64_incompatible-obj + '[' x86_64 = x86_64 ']' + echo 'int main() {}' + cc -m32 -o out/test/elf/x86_64/x86_64_incompatible-obj/exe -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.33 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-x86_64_incompatible-obj" end time: Nov 13 20:02 CET "x86_64-x86_64_incompatible-obj" time elapsed: 00:00:00 ---------------------------------------------------------- 23/322 Testing: x86_64-x86_64_preinit-array 23/322 Test: x86_64-x86_64_preinit-array Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_preinit-array.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_preinit-array" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_preinit-array.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_preinit-array.sh .sh ++ testname=x86_64_preinit-array ++ echo -n 'Testing x86_64_preinit-array ... ' Testing x86_64_preinit-array ... ++ t=out/test/elf/x86_64/x86_64_preinit-array ++ mkdir -p out/test/elf/x86_64/x86_64_preinit-array + is_musl + ldd --help + grep -q musl + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.13 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-x86_64_preinit-array" end time: Nov 13 20:02 CET "x86_64-x86_64_preinit-array" time elapsed: 00:00:00 ---------------------------------------------------------- 14/322 Testing: x86_64-x86_64_init-array 14/322 Test: x86_64-x86_64_init-array Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_init-array.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_init-array" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_init-array.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_init-array.sh .sh ++ testname=x86_64_init-array ++ echo -n 'Testing x86_64_init-array ... ' Testing x86_64_init-array ... ++ t=out/test/elf/x86_64/x86_64_init-array ++ mkdir -p out/test/elf/x86_64/x86_64_init-array + '[' x86_64 = x86_64 ']' + cat + cc -c -o out/test/elf/x86_64/x86_64_init-array/a.o -x assembler - + cat + cc -c -o out/test/elf/x86_64/x86_64_init-array/b.o -xc - + cc -B. -o out/test/elf/x86_64/x86_64_init-array/exe out/test/elf/x86_64/x86_64_init-array/a.o out/test/elf/x86_64/x86_64_init-array/b.o + out/test/elf/x86_64/x86_64_init-array/exe + grep -q 'init1 init2 fini2 fini1' + on_exit + echo OK OK + exit 0 Test time = 0.44 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_init-array" end time: Nov 13 20:02 CET "x86_64-x86_64_init-array" time elapsed: 00:00:00 ---------------------------------------------------------- 7/322 Testing: x86_64-x86_64_gnu-retain 7/322 Test: x86_64-x86_64_gnu-retain Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_gnu-retain.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_gnu-retain" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_gnu-retain.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_gnu-retain.sh .sh ++ testname=x86_64_gnu-retain ++ echo -n 'Testing x86_64_gnu-retain ... ' Testing x86_64_gnu-retain ... ++ t=out/test/elf/x86_64/x86_64_gnu-retain ++ mkdir -p out/test/elf/x86_64/x86_64_gnu-retain + '[' x86_64 = x86_64 ']' + echo '.section foo,"R"' + cc -o /dev/null -c -xassembler - + cat + cc -o out/test/elf/x86_64/x86_64_gnu-retain/a.o -c -xc - + cat + cc -o out/test/elf/x86_64/x86_64_gnu-retain/b.o -c -xassembler - + cat + cc -o out/test/elf/x86_64/x86_64_gnu-retain/c.o -c -xassembler - + cc -B. -o out/test/elf/x86_64/x86_64_gnu-retain/exe1 out/test/elf/x86_64/x86_64_gnu-retain/a.o out/test/elf/x86_64/x86_64_gnu-retain/b.o -Wl,-gc-sections + nm out/test/elf/x86_64/x86_64_gnu-retain/exe1 + grep -q foo + cc -B. -o out/test/elf/x86_64/x86_64_gnu-retain/exe1 out/test/elf/x86_64/x86_64_gnu-retain/a.o out/test/elf/x86_64/x86_64_gnu-retain/c.o -Wl,-gc-sections + nm out/test/elf/x86_64/x86_64_gnu-retain/exe1 + grep -q foo out/test/elf/x86_64/x86_64_gnu-retain/log + on_exit + echo OK OK + exit 0 Test time = 0.68 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_gnu-retain" end time: Nov 13 20:02 CET "x86_64-x86_64_gnu-retain" time elapsed: 00:00:00 ---------------------------------------------------------- 13/322 Testing: x86_64-x86_64_init-array-readonly 13/322 Test: x86_64-x86_64_init-array-readonly Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_init-array-readonly.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_init-array-readonly" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_init-array-readonly.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_init-array-readonly.sh .sh ++ testname=x86_64_init-array-readonly ++ echo -n 'Testing x86_64_init-array-readonly ... ' Testing x86_64_init-array-readonly ... ++ t=out/test/elf/x86_64/x86_64_init-array-readonly ++ mkdir -p out/test/elf/x86_64/x86_64_init-array-readonly + '[' x86_64 = x86_64 ']' + cat + cc -c -o out/test/elf/x86_64/x86_64_init-array-readonly/a.o -x assembler - + cat + cc -c -o out/test/elf/x86_64/x86_64_init-array-readonly/b.o -x assembler - + sed -i -e s/init_xxxxx/init_array/g out/test/elf/x86_64/x86_64_init-array-readonly/b.o + cat + cc -c -o out/test/elf/x86_64/x86_64_init-array-readonly/c.o -xc - + cc -B. -o out/test/elf/x86_64/x86_64_init-array-readonly/exe out/test/elf/x86_64/x86_64_init-array-readonly/a.o out/test/elf/x86_64/x86_64_init-array-readonly/b.o out/test/elf/x86_64/x86_64_init-array-readonly/c.o + out/test/elf/x86_64/x86_64_init-array-readonly/exe + grep -q 'init1 init2' + on_exit + echo OK OK + exit 0 Test time = 0.57 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_init-array-readonly" end time: Nov 13 20:02 CET "x86_64-x86_64_init-array-readonly" time elapsed: 00:00:00 ---------------------------------------------------------- 22/322 Testing: x86_64-x86_64_plt 22/322 Test: x86_64-x86_64_plt Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_plt.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_plt" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_plt.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_plt.sh .sh ++ testname=x86_64_plt ++ echo -n 'Testing x86_64_plt ... ' Testing x86_64_plt ... ++ t=out/test/elf/x86_64/x86_64_plt ++ mkdir -p out/test/elf/x86_64/x86_64_plt + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_plt/a.o -c -x assembler - + cc -B. -o out/test/elf/x86_64/x86_64_plt/exe out/test/elf/x86_64/x86_64_plt/a.o + readelf --sections out/test/elf/x86_64/x86_64_plt/exe + grep -Fq .got + readelf --sections out/test/elf/x86_64/x86_64_plt/exe + grep -Fq .got.plt + out/test/elf/x86_64/x86_64_plt/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.47 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_plt" end time: Nov 13 20:02 CET "x86_64-x86_64_plt" time elapsed: 00:00:00 ---------------------------------------------------------- 15/322 Testing: x86_64-x86_64_large-bss 15/322 Test: x86_64-x86_64_large-bss Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_large-bss.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_large-bss" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_large-bss.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_large-bss.sh .sh ++ testname=x86_64_large-bss ++ echo -n 'Testing x86_64_large-bss ... ' Testing x86_64_large-bss ... ++ t=out/test/elf/x86_64/x86_64_large-bss ++ mkdir -p out/test/elf/x86_64/x86_64_large-bss + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_large-bss/a.o -c -xc - -mcmodel=large + cat + cc -o out/test/elf/x86_64/x86_64_large-bss/b.o -c -xc - -mcmodel=large + cc -B. -o out/test/elf/x86_64/x86_64_large-bss/exe out/test/elf/x86_64/x86_64_large-bss/a.o out/test/elf/x86_64/x86_64_large-bss/b.o + grep -Eq '^1 c0000000$' + out/test/elf/x86_64/x86_64_large-bss/exe + on_exit + echo OK OK + exit 0 Test time = 0.68 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_large-bss" end time: Nov 13 20:02 CET "x86_64-x86_64_large-bss" time elapsed: 00:00:00 ---------------------------------------------------------- 25/322 Testing: x86_64-x86_64_reloc-overflow 25/322 Test: x86_64-x86_64_reloc-overflow Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_reloc-overflow.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_reloc-overflow" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_reloc-overflow.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_reloc-overflow.sh .sh ++ testname=x86_64_reloc-overflow ++ echo -n 'Testing x86_64_reloc-overflow ... ' Testing x86_64_reloc-overflow ... ++ t=out/test/elf/x86_64/x86_64_reloc-overflow ++ mkdir -p out/test/elf/x86_64/x86_64_reloc-overflow + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_reloc-overflow/a.o -c -x assembler - + ./mold -e foo -o out/test/elf/x86_64/x86_64_reloc-overflow/exe out/test/elf/x86_64/x86_64_reloc-overflow/a.o + grep -Fq 'relocation R_X86_64_16 against foo out of range' out/test/elf/x86_64/x86_64_reloc-overflow/log + on_exit + echo OK OK + exit 0 Test time = 0.46 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_reloc-overflow" end time: Nov 13 20:02 CET "x86_64-x86_64_reloc-overflow" time elapsed: 00:00:00 ---------------------------------------------------------- 18/322 Testing: x86_64-x86_64_note-property 18/322 Test: x86_64-x86_64_note-property Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note-property.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_note-property" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note-property.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note-property.sh .sh ++ testname=x86_64_note-property ++ echo -n 'Testing x86_64_note-property ... ' Testing x86_64_note-property ... ++ t=out/test/elf/x86_64/x86_64_note-property ++ mkdir -p out/test/elf/x86_64/x86_64_note-property + '[' x86_64 = x86_64 ']' + cc -fcf-protection=branch -c /dev/null -o /dev/null -xc + cat + cc -fcf-protection=branch -c -o out/test/elf/x86_64/x86_64_note-property/a.o -xc - + cat + cc -fcf-protection=none -c -o out/test/elf/x86_64/x86_64_note-property/b.o -xc - + ./mold -o out/test/elf/x86_64/x86_64_note-property/exe out/test/elf/x86_64/x86_64_note-property/a.o + + grep -q 'x86 feature: IBT' readelf -n out/test/elf/x86_64/x86_64_note-property/exe + ./mold -o out/test/elf/x86_64/x86_64_note-property/exe out/test/elf/x86_64/x86_64_note-property/b.o + + grep readelf -q -n 'x86 feature: IBT' out/test/elf/x86_64/x86_64_note-property/exe + on_exit + echo OK OK + exit 0 Test time = 0.79 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_note-property" end time: Nov 13 20:02 CET "x86_64-x86_64_note-property" time elapsed: 00:00:00 ---------------------------------------------------------- 17/322 Testing: x86_64-x86_64_mergeable-strings 17/322 Test: x86_64-x86_64_mergeable-strings Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_mergeable-strings.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_mergeable-strings" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_mergeable-strings.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_mergeable-strings.sh .sh ++ testname=x86_64_mergeable-strings ++ echo -n 'Testing x86_64_mergeable-strings ... ' Testing x86_64_mergeable-strings ... ++ t=out/test/elf/x86_64/x86_64_mergeable-strings ++ mkdir -p out/test/elf/x86_64/x86_64_mergeable-strings + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_mergeable-strings/a.o -c -x assembler - + cc -B. -static -o out/test/elf/x86_64/x86_64_mergeable-strings/exe out/test/elf/x86_64/x86_64_mergeable-strings/a.o + out/test/elf/x86_64/x86_64_mergeable-strings/exe + grep -q 'Hello world' + readelf -sW out/test/elf/x86_64/x86_64_mergeable-strings/exe + grep -Eq '[0-9] foo$' + on_exit + echo OK OK + exit 0 Test time = 0.88 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_mergeable-strings" end time: Nov 13 20:02 CET "x86_64-x86_64_mergeable-strings" time elapsed: 00:00:00 ---------------------------------------------------------- 16/322 Testing: x86_64-x86_64_mergeable-records 16/322 Test: x86_64-x86_64_mergeable-records Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_mergeable-records.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_mergeable-records" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_mergeable-records.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_mergeable-records.sh .sh ++ testname=x86_64_mergeable-records ++ echo -n 'Testing x86_64_mergeable-records ... ' Testing x86_64_mergeable-records ... ++ t=out/test/elf/x86_64/x86_64_mergeable-records ++ mkdir -p out/test/elf/x86_64/x86_64_mergeable-records + '[' x86_64 = x86_64 ']' + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + cat + cc -o out/test/elf/x86_64/x86_64_mergeable-records/a.o -c -x assembler - + cc -B. -static -o out/test/elf/x86_64/x86_64_mergeable-records/exe out/test/elf/x86_64/x86_64_mergeable-records/a.o + out/test/elf/x86_64/x86_64_mergeable-records/exe + grep -q '^abcdef$' + out/test/elf/x86_64/x86_64_mergeable-records/exe + grep -q '^bcdef$' + out/test/elf/x86_64/x86_64_mergeable-records/exe + grep -q '^ijkl$' + out/test/elf/x86_64/x86_64_mergeable-records/exe + grep -q '^pqr$' + out/test/elf/x86_64/x86_64_mergeable-records/exe + grep -q '^mnopqr$' + on_exit + echo OK OK + exit 0 Test time = 1.00 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_mergeable-records" end time: Nov 13 20:02 CET "x86_64-x86_64_mergeable-records" time elapsed: 00:00:00 ---------------------------------------------------------- 37/322 Testing: x86_64-x86_64_warn-shared-textrel 37/322 Test: x86_64-x86_64_warn-shared-textrel Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_warn-shared-textrel.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_warn-shared-textrel" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_warn-shared-textrel.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_warn-shared-textrel.sh .sh ++ testname=x86_64_warn-shared-textrel ++ echo -n 'Testing x86_64_warn-shared-textrel ... ' Testing x86_64_warn-shared-textrel ... ++ t=out/test/elf/x86_64/x86_64_warn-shared-textrel ++ mkdir -p out/test/elf/x86_64/x86_64_warn-shared-textrel + is_musl + ldd --help + grep -q musl + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.32 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-x86_64_warn-shared-textrel" end time: Nov 13 20:02 CET "x86_64-x86_64_warn-shared-textrel" time elapsed: 00:00:00 ---------------------------------------------------------- 26/322 Testing: x86_64-x86_64_reloc-zero 26/322 Test: x86_64-x86_64_reloc-zero Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_reloc-zero.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_reloc-zero" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_reloc-zero.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_reloc-zero.sh .sh ++ testname=x86_64_reloc-zero ++ echo -n 'Testing x86_64_reloc-zero ... ' Testing x86_64_reloc-zero ... ++ t=out/test/elf/x86_64/x86_64_reloc-zero ++ mkdir -p out/test/elf/x86_64/x86_64_reloc-zero + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_reloc-zero/a.o -c -x assembler - + cat + cc -o out/test/elf/x86_64/x86_64_reloc-zero/b.o -c -xc - + cc -B. -no-pie -o out/test/elf/x86_64/x86_64_reloc-zero/exe out/test/elf/x86_64/x86_64_reloc-zero/a.o out/test/elf/x86_64/x86_64_reloc-zero/b.o + on_exit + echo OK OK + exit 0 Test time = 0.88 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_reloc-zero" end time: Nov 13 20:02 CET "x86_64-x86_64_reloc-zero" time elapsed: 00:00:00 ---------------------------------------------------------- 28/322 Testing: x86_64-x86_64_section-alignment 28/322 Test: x86_64-x86_64_section-alignment Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_section-alignment.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_section-alignment" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_section-alignment.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_section-alignment.sh .sh ++ testname=x86_64_section-alignment ++ echo -n 'Testing x86_64_section-alignment ... ' Testing x86_64_section-alignment ... ++ t=out/test/elf/x86_64/x86_64_section-alignment ++ mkdir -p out/test/elf/x86_64/x86_64_section-alignment + '[' x86_64 = x86_64 ']' + cat + cc -c -o out/test/elf/x86_64/x86_64_section-alignment/a.o -xc - + cc -B. -o out/test/elf/x86_64/x86_64_section-alignment/exe out/test/elf/x86_64/x86_64_section-alignment/a.o + out/test/elf/x86_64/x86_64_section-alignment/exe + grep -q '^0 0 0$' + on_exit + echo OK OK + exit 0 Test time = 0.84 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_section-alignment" end time: Nov 13 20:02 CET "x86_64-x86_64_section-alignment" time elapsed: 00:00:00 ---------------------------------------------------------- 38/322 Testing: x86_64-x86_64_warn-textrel 38/322 Test: x86_64-x86_64_warn-textrel Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_warn-textrel.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_warn-textrel" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_warn-textrel.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_warn-textrel.sh .sh ++ testname=x86_64_warn-textrel ++ echo -n 'Testing x86_64_warn-textrel ... ' Testing x86_64_warn-textrel ... ++ t=out/test/elf/x86_64/x86_64_warn-textrel ++ mkdir -p out/test/elf/x86_64/x86_64_warn-textrel + is_musl + ldd --help + grep -q musl + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.46 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-x86_64_warn-textrel" end time: Nov 13 20:02 CET "x86_64-x86_64_warn-textrel" time elapsed: 00:00:00 ---------------------------------------------------------- 21/322 Testing: x86_64-x86_64_note2 21/322 Test: x86_64-x86_64_note2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_note2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note2.sh .sh ++ testname=x86_64_note2 ++ echo -n 'Testing x86_64_note2 ... ' Testing x86_64_note2 ... ++ t=out/test/elf/x86_64/x86_64_note2 ++ mkdir -p out/test/elf/x86_64/x86_64_note2 + '[' x86_64 = x86_64 ']' + test_cflags -Xassembler -mx86-used-note=no + echo 'int main() {}' + cc -Xassembler -mx86-used-note=no -o /dev/null -xc - + CFLAGS='-Xassembler -mx86-used-note=no' + cat + cc -Xassembler -mx86-used-note=no -o out/test/elf/x86_64/x86_64_note2/a.o -c -x assembler - + cc -Xassembler -mx86-used-note=no -o out/test/elf/x86_64/x86_64_note2/b.o -c -x assembler - + cat + cat + cc -Xassembler -mx86-used-note=no -o out/test/elf/x86_64/x86_64_note2/c.o -c -x assembler - + cat + cc -Xassembler -mx86-used-note=no -o out/test/elf/x86_64/x86_64_note2/d.o -c -xc - + ./mold -o out/test/elf/x86_64/x86_64_note2/exe out/test/elf/x86_64/x86_64_note2/a.o out/test/elf/x86_64/x86_64_note2/b.o out/test/elf/x86_64/x86_64_note2/c.o out/test/elf/x86_64/x86_64_note2/d.o + readelf --segments out/test/elf/x86_64/x86_64_note2/exe + grep -Fq '01 .note.a .note.c .note.b' out/test/elf/x86_64/x86_64_note2/log + on_exit + echo OK OK + exit 0 Test time = 1.23 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_note2" end time: Nov 13 20:02 CET "x86_64-x86_64_note2" time elapsed: 00:00:01 ---------------------------------------------------------- 42/322 Testing: x86_64-x86_64_z-text 42/322 Test: x86_64-x86_64_z-text Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-text.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_z-text" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-text.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-text.sh .sh ++ testname=x86_64_z-text ++ echo -n 'Testing x86_64_z-text ... ' Testing x86_64_z-text ... ++ t=out/test/elf/x86_64/x86_64_z-text ++ mkdir -p out/test/elf/x86_64/x86_64_z-text + is_musl + ldd --help + grep -q musl + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.39 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-x86_64_z-text" end time: Nov 13 20:02 CET "x86_64-x86_64_z-text" time elapsed: 00:00:00 ---------------------------------------------------------- 35/322 Testing: x86_64-x86_64_unique 35/322 Test: x86_64-x86_64_unique Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_unique.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_unique" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_unique.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_unique.sh .sh ++ testname=x86_64_unique ++ echo -n 'Testing x86_64_unique ... ' Testing x86_64_unique ... ++ t=out/test/elf/x86_64/x86_64_unique ++ mkdir -p out/test/elf/x86_64/x86_64_unique + '[' x86_64 = x86_64 ']' + cat + cc -c -o out/test/elf/x86_64/x86_64_unique/a.o -x assembler - + cc -B. -o out/test/elf/x86_64/x86_64_unique/exe out/test/elf/x86_64/x86_64_unique/a.o -nostdlib '-Wl,-unique=*foo*' + readelf -x .data.foo.1 out/test/elf/x86_64/x86_64_unique/exe + grep -q ab + readelf -x .data.foo.2 out/test/elf/x86_64/x86_64_unique/exe + grep -q c + grep -q de + readelf -x .data out/test/elf/x86_64/x86_64_unique/exe + on_exit + echo OK OK + exit 0 Test time = 0.73 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_unique" end time: Nov 13 20:02 CET "x86_64-x86_64_unique" time elapsed: 00:00:00 ---------------------------------------------------------- 32/322 Testing: x86_64-x86_64_tls-large-tbss 32/322 Test: x86_64-x86_64_tls-large-tbss Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-large-tbss.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_tls-large-tbss" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-large-tbss.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-large-tbss.sh .sh ++ testname=x86_64_tls-large-tbss ++ echo -n 'Testing x86_64_tls-large-tbss ... ' Testing x86_64_tls-large-tbss ... ++ t=out/test/elf/x86_64/x86_64_tls-large-tbss ++ mkdir -p out/test/elf/x86_64/x86_64_tls-large-tbss + '[' x86_64 = x86_64 ']' + cat + cc -c -o out/test/elf/x86_64/x86_64_tls-large-tbss/a.o -x assembler - + cat + cc -c -o out/test/elf/x86_64/x86_64_tls-large-tbss/b.o -xc - + cc -B. -o out/test/elf/x86_64/x86_64_tls-large-tbss/exe out/test/elf/x86_64/x86_64_tls-large-tbss/a.o out/test/elf/x86_64/x86_64_tls-large-tbss/b.o + out/test/elf/x86_64/x86_64_tls-large-tbss/exe + grep -q '^3 0 5 0 0 0$' + on_exit + echo OK OK + exit 0 Test time = 0.95 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_tls-large-tbss" end time: Nov 13 20:02 CET "x86_64-x86_64_tls-large-tbss" time elapsed: 00:00:00 ---------------------------------------------------------- 20/322 Testing: x86_64-x86_64_note 20/322 Test: x86_64-x86_64_note Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_note" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note.sh .sh ++ testname=x86_64_note ++ echo -n 'Testing x86_64_note ... ' Testing x86_64_note ... ++ t=out/test/elf/x86_64/x86_64_note ++ mkdir -p out/test/elf/x86_64/x86_64_note + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + '[' x86_64 = x86_64 ']' + test_cflags -Xassembler -mx86-used-note=no + cc -Xassembler -mx86-used-note=no -o /dev/null -xc - + echo 'int main() {}' + CFLAGS='-Xassembler -mx86-used-note=no' + cat + cc -Xassembler -mx86-used-note=no -o out/test/elf/x86_64/x86_64_note/a.o -c -x assembler - + ./mold -static -o out/test/elf/x86_64/x86_64_note/exe out/test/elf/x86_64/x86_64_note/a.o + readelf -W --sections out/test/elf/x86_64/x86_64_note/exe + grep -Eq '.note.bar\s+NOTE.+000008 00 A 0 0 4' out/test/elf/x86_64/x86_64_note/log + grep -Eq '.note.baz\s+NOTE.+000008 00 A 0 0 8' out/test/elf/x86_64/x86_64_note/log + grep -Eq '.note.nonalloc\s+NOTE.+000008 00 0 0 1' out/test/elf/x86_64/x86_64_note/log + readelf --segments out/test/elf/x86_64/x86_64_note/exe + grep -Fq '01 .note.baz .note.foo .note.bar' out/test/elf/x86_64/x86_64_note/log + grep -q 'NOTE.*0x0000000000000000 0x0000000000000000' out/test/elf/x86_64/x86_64_note/log + on_exit + echo OK OK + exit 0 Test time = 1.43 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_note" end time: Nov 13 20:02 CET "x86_64-x86_64_note" time elapsed: 00:00:01 ---------------------------------------------------------- 29/322 Testing: x86_64-x86_64_section-name 29/322 Test: x86_64-x86_64_section-name Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_section-name.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_section-name" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_section-name.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_section-name.sh .sh ++ testname=x86_64_section-name ++ echo -n 'Testing x86_64_section-name ... ' Testing x86_64_section-name ... ++ t=out/test/elf/x86_64/x86_64_section-name ++ mkdir -p out/test/elf/x86_64/x86_64_section-name + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_section-name/a.o -c -x assembler - + ./mold -o out/test/elf/x86_64/x86_64_section-name/exe out/test/elf/x86_64/x86_64_section-name/a.o -z keep-text-section-prefix + readelf -p .text.hot out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq '.text.hot .text.hot.foo' + readelf -p .text.unknown out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq '.text.unknown .text.unknown.foo' + readelf -p .text.unlikely out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq '.text.unlikely .text.unlikely.foo' + readelf -p .text.startup out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq '.text.startup .text.startup.foo' + readelf -p .text.exit out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq '.text.exit .text.exit.foo' + readelf -p .text out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq '.text .text.foo' + readelf -p .data.rel.ro out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq '.data.rel.ro .data.rel.ro.foo' + readelf -p .data out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq '.data .data.foo' + readelf -p .rodata out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq '.rodata .rodata.foo' + ./mold -o out/test/elf/x86_64/x86_64_section-name/exe out/test/elf/x86_64/x86_64_section-name/a.o + readelf --sections out/test/elf/x86_64/x86_64_section-name/exe + grep -Fq .text.hot + ./mold -o out/test/elf/x86_64/x86_64_section-name/exe out/test/elf/x86_64/x86_64_section-name/a.o -z nokeep-text-section-prefix + grep -Fq .text.hot + readelf --sections out/test/elf/x86_64/x86_64_section-name/exe + on_exit + echo OK OK + exit 0 Test time = 1.11 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_section-name" end time: Nov 13 20:02 CET "x86_64-x86_64_section-name" time elapsed: 00:00:01 ---------------------------------------------------------- 36/322 Testing: x86_64-x86_64_warn-execstack 36/322 Test: x86_64-x86_64_warn-execstack Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_warn-execstack.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_warn-execstack" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_warn-execstack.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_warn-execstack.sh .sh ++ testname=x86_64_warn-execstack ++ echo -n 'Testing x86_64_warn-execstack ... ' Testing x86_64_warn-execstack ... ++ t=out/test/elf/x86_64/x86_64_warn-execstack ++ mkdir -p out/test/elf/x86_64/x86_64_warn-execstack + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_warn-execstack/a.o -c -xassembler - + cat + cc -o out/test/elf/x86_64/x86_64_warn-execstack/b.o -c -xc - + gcc -B. -o out/test/elf/x86_64/x86_64_warn-execstack/exe out/test/elf/x86_64/x86_64_warn-execstack/a.o out/test/elf/x86_64/x86_64_warn-execstack/b.o + grep -q 'may cause a segmentation fault' + on_exit + echo OK OK + exit 0 Test time = 0.84 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_warn-execstack" end time: Nov 13 20:02 CET "x86_64-x86_64_warn-execstack" time elapsed: 00:00:00 ---------------------------------------------------------- 24/322 Testing: x86_64-x86_64_relax 24/322 Test: x86_64-x86_64_relax Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_relax.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_relax" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_relax.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_relax.sh .sh ++ testname=x86_64_relax ++ echo -n 'Testing x86_64_relax ... ' Testing x86_64_relax ... ++ t=out/test/elf/x86_64/x86_64_relax ++ mkdir -p out/test/elf/x86_64/x86_64_relax + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_relax/a.o -c -x assembler -Wa,-mrelax-relocations=yes - + cat + cc -o out/test/elf/x86_64/x86_64_relax/b.o -c -xc - + cc -B. -o out/test/elf/x86_64/x86_64_relax/exe out/test/elf/x86_64/x86_64_relax/a.o out/test/elf/x86_64/x86_64_relax/b.o + objdump -d out/test/elf/x86_64/x86_64_relax/exe + grep -A20 ':' + grep -Eq 'lea \s*0x.+\(%rip\),%rax .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%rcx .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%rdx .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%rbx .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%rbp .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%rsi .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%rdi .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%r8 .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%r9 .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%r10 .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%r11 .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%r12 .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%r13 .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%r14 .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'lea \s*0x.+\(%rip\),%r15 .*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'call.*' out/test/elf/x86_64/x86_64_relax/log + grep -Eq 'jmp.*' out/test/elf/x86_64/x86_64_relax/log + on_exit + echo OK OK + exit 0 Test time = 1.58 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_relax" end time: Nov 13 20:02 CET "x86_64-x86_64_relax" time elapsed: 00:00:01 ---------------------------------------------------------- 39/322 Testing: x86_64-x86_64_z-ibt 39/322 Test: x86_64-x86_64_z-ibt Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-ibt.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_z-ibt" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-ibt.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-ibt.sh .sh ++ testname=x86_64_z-ibt ++ echo -n 'Testing x86_64_z-ibt ... ' Testing x86_64_z-ibt ... ++ t=out/test/elf/x86_64/x86_64_z-ibt ++ mkdir -p out/test/elf/x86_64/x86_64_z-ibt + '[' x86_64 = x86_64 ']' + cc -o out/test/elf/x86_64/x86_64_z-ibt/a.o -c -x assembler - + cat + cc -B. -o out/test/elf/x86_64/x86_64_z-ibt/exe out/test/elf/x86_64/x86_64_z-ibt/a.o + readelf --notes out/test/elf/x86_64/x86_64_z-ibt/exe + grep -qw SHSTK out/test/elf/x86_64/x86_64_z-ibt/log + cc -B. -o out/test/elf/x86_64/x86_64_z-ibt/exe out/test/elf/x86_64/x86_64_z-ibt/a.o -Wl,-z,ibt + readelf --notes out/test/elf/x86_64/x86_64_z-ibt/exe + grep -qw IBT + on_exit + echo OK OK + exit 0 Test time = 1.09 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_z-ibt" end time: Nov 13 20:02 CET "x86_64-x86_64_z-ibt" time elapsed: 00:00:01 ---------------------------------------------------------- 41/322 Testing: x86_64-x86_64_z-shstk 41/322 Test: x86_64-x86_64_z-shstk Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-shstk.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_z-shstk" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-shstk.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-shstk.sh .sh ++ testname=x86_64_z-shstk ++ echo -n 'Testing x86_64_z-shstk ... ' Testing x86_64_z-shstk ... ++ t=out/test/elf/x86_64/x86_64_z-shstk ++ mkdir -p out/test/elf/x86_64/x86_64_z-shstk + '[' x86_64 = x86_64 ']' + cat + cc -o out/test/elf/x86_64/x86_64_z-shstk/a.o -c -x assembler - + cc -B. -o out/test/elf/x86_64/x86_64_z-shstk/exe out/test/elf/x86_64/x86_64_z-shstk/a.o + readelf --notes out/test/elf/x86_64/x86_64_z-shstk/exe + grep -qw SHSTK out/test/elf/x86_64/x86_64_z-shstk/log + cc -B. -o out/test/elf/x86_64/x86_64_z-shstk/exe out/test/elf/x86_64/x86_64_z-shstk/a.o -Wl,-z,shstk + readelf --notes out/test/elf/x86_64/x86_64_z-shstk/exe + grep -qw SHSTK + on_exit + echo OK OK + exit 0 Test time = 1.10 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_z-shstk" end time: Nov 13 20:02 CET "x86_64-x86_64_z-shstk" time elapsed: 00:00:01 ---------------------------------------------------------- 51/322 Testing: x86_64-auxiliary 51/322 Test: x86_64-auxiliary Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/auxiliary.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-auxiliary" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/auxiliary.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/auxiliary.sh .sh ++ testname=auxiliary ++ echo -n 'Testing auxiliary ... ' Testing auxiliary ... ++ t=out/test/elf/x86_64/auxiliary ++ mkdir -p out/test/elf/x86_64/auxiliary + cat + cc -o out/test/elf/x86_64/auxiliary/a.o -c -x assembler - + ./mold -o out/test/elf/x86_64/auxiliary/b.so out/test/elf/x86_64/auxiliary/a.o -auxiliary foo -f bar -shared + readelf --dynamic out/test/elf/x86_64/auxiliary/b.so + grep -Fq 'Auxiliary library: [foo]' out/test/elf/x86_64/auxiliary/log + grep -Fq 'Auxiliary library: [bar]' out/test/elf/x86_64/auxiliary/log + on_exit + echo OK OK + exit 0 Test time = 0.69 sec ---------------------------------------------------------- Test Passed. "x86_64-auxiliary" end time: Nov 13 20:02 CET "x86_64-auxiliary" time elapsed: 00:00:00 ---------------------------------------------------------- 33/322 Testing: x86_64-x86_64_tls-ld-mcmodel-large 33/322 Test: x86_64-x86_64_tls-ld-mcmodel-large Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-ld-mcmodel-large.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_tls-ld-mcmodel-large" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-ld-mcmodel-large.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-ld-mcmodel-large.sh .sh ++ testname=x86_64_tls-ld-mcmodel-large ++ echo -n 'Testing x86_64_tls-ld-mcmodel-large ... ' Testing x86_64_tls-ld-mcmodel-large ... ++ t=out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large ++ mkdir -p out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large + '[' x86_64 = x86_64 ']' + cat + gcc -ftls-model=local-dynamic -fPIC -c -o out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/a.o -xc - -mcmodel=large + cat + gcc -ftls-model=local-dynamic -fPIC -c -o out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/b.o -xc - -mcmodel=large + cc -B. -o out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/exe out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/a.o out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/b.o -mcmodel=large + out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/exe + grep -q '3 5 3 5' + cc -B. -o out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/exe out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/a.o out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/b.o -Wl,-no-relax -mcmodel=large + grep -q '3 5 3 5' + out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/exe + on_exit + echo OK OK + exit 0 Test time = 1.54 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_tls-ld-mcmodel-large" end time: Nov 13 20:02 CET "x86_64-x86_64_tls-ld-mcmodel-large" time elapsed: 00:00:01 ---------------------------------------------------------- 43/322 Testing: x86_64-abs-error 43/322 Test: x86_64-abs-error Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/abs-error.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-abs-error" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/abs-error.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/abs-error.sh .sh ++ testname=abs-error ++ echo -n 'Testing abs-error ... ' Testing abs-error ... ++ t=out/test/elf/x86_64/abs-error ++ mkdir -p out/test/elf/x86_64/abs-error + '[' x86_64 = aarch64 ']' + '[' x86_64 = ppc64 ']' + '[' x86_64 = ppc64le ']' + '[' x86_64 = s390x ']' + '[' x86_64 = alpha ']' + [[ x86_64 = loongarch* ]] + cat + cc -fPIC -c -o out/test/elf/x86_64/abs-error/a.o -xassembler - + cc -fno-PIC -c -o out/test/elf/x86_64/abs-error/b.o -xc - + cat + cc -B. -o out/test/elf/x86_64/abs-error/exe -pie out/test/elf/x86_64/abs-error/a.o out/test/elf/x86_64/abs-error/b.o -Wl,-z,text + grep -q 'recompile with -fPIC' out/test/elf/x86_64/abs-error/log + on_exit + echo OK OK + exit 0 Test time = 1.18 sec ---------------------------------------------------------- Test Passed. "x86_64-abs-error" end time: Nov 13 20:02 CET "x86_64-abs-error" time elapsed: 00:00:01 ---------------------------------------------------------- 44/322 Testing: x86_64-absolute-symbols 44/322 Test: x86_64-absolute-symbols Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/absolute-symbols.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-absolute-symbols" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/absolute-symbols.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/absolute-symbols.sh .sh ++ testname=absolute-symbols ++ echo -n 'Testing absolute-symbols ... ' Testing absolute-symbols ... ++ t=out/test/elf/x86_64/absolute-symbols ++ mkdir -p out/test/elf/x86_64/absolute-symbols + '[' x86_64 = sparc64 ']' + cat + cc -o out/test/elf/x86_64/absolute-symbols/a.o -c -x assembler - + cat + cc -o out/test/elf/x86_64/absolute-symbols/b.o -c -fno-PIC -xc - + cc -B. -o out/test/elf/x86_64/absolute-symbols/exe -no-pie out/test/elf/x86_64/absolute-symbols/a.o out/test/elf/x86_64/absolute-symbols/b.o + out/test/elf/x86_64/absolute-symbols/exe + grep -q '^ip=0x80000.$' + on_exit + echo OK OK + exit 0 Test time = 1.19 sec ---------------------------------------------------------- Test Passed. "x86_64-absolute-symbols" end time: Nov 13 20:02 CET "x86_64-absolute-symbols" time elapsed: 00:00:01 ---------------------------------------------------------- 55/322 Testing: x86_64-bug178 55/322 Test: x86_64-bug178 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bug178.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-bug178" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bug178.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bug178.sh .sh ++ testname=bug178 ++ echo -n 'Testing bug178 ... ' Testing bug178 ... ++ t=out/test/elf/x86_64/bug178 ++ mkdir -p out/test/elf/x86_64/bug178 + cat + cc -x assembler -c -o out/test/elf/x86_64/bug178/a.o - + rm -f out/test/elf/x86_64/bug178/a.a + ar rcs out/test/elf/x86_64/bug178/a.a out/test/elf/x86_64/bug178/a.o + ./mold -o out/test/elf/x86_64/bug178/exe out/test/elf/x86_64/bug178/a.a + on_exit + echo OK OK + exit 0 Test time = 0.80 sec ---------------------------------------------------------- Test Passed. "x86_64-bug178" end time: Nov 13 20:02 CET "x86_64-bug178" time elapsed: 00:00:00 ---------------------------------------------------------- 40/322 Testing: x86_64-x86_64_z-ibtplt 40/322 Test: x86_64-x86_64_z-ibtplt Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-ibtplt.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_z-ibtplt" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-ibtplt.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_z-ibtplt.sh .sh ++ testname=x86_64_z-ibtplt ++ echo -n 'Testing x86_64_z-ibtplt ... ' Testing x86_64_z-ibtplt ... ++ t=out/test/elf/x86_64/x86_64_z-ibtplt ++ mkdir -p out/test/elf/x86_64/x86_64_z-ibtplt + '[' x86_64 = x86_64 ']' + cat + cc -fPIC -o out/test/elf/x86_64/x86_64_z-ibtplt/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/x86_64_z-ibtplt/b.so -shared out/test/elf/x86_64/x86_64_z-ibtplt/a.o -Wl,-z,ibtplt + cat + cc -o out/test/elf/x86_64/x86_64_z-ibtplt/c.o -c -xc - + cc -B. -o out/test/elf/x86_64/x86_64_z-ibtplt/exe out/test/elf/x86_64/x86_64_z-ibtplt/c.o out/test/elf/x86_64/x86_64_z-ibtplt/b.so -Wl,-z,ibtplt + grep -q 'Hello world' + out/test/elf/x86_64/x86_64_z-ibtplt/exe + on_exit + echo OK OK + exit 0 Test time = 1.57 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_z-ibtplt" end time: Nov 13 20:02 CET "x86_64-x86_64_z-ibtplt" time elapsed: 00:00:01 ---------------------------------------------------------- 19/322 Testing: x86_64-x86_64_note-property2 19/322 Test: x86_64-x86_64_note-property2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note-property2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_note-property2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note-property2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_note-property2.sh .sh ++ testname=x86_64_note-property2 ++ echo -n 'Testing x86_64_note-property2 ... ' Testing x86_64_note-property2 ... ++ t=out/test/elf/x86_64/x86_64_note-property2 ++ mkdir -p out/test/elf/x86_64/x86_64_note-property2 + nm mold + grep -q __tsan_init + '[' x86_64 = x86_64 ']' + test_cflags -Xassembler -mx86-used-note=no + echo 'int main() {}' + cc -Xassembler -mx86-used-note=no -o /dev/null -xc - + CFLAGS='-Xassembler -mx86-used-note=no' + readelf -v + grep -q -E 'GNU readelf .+ (2\.3[6-9]|2\.[4-9]|[3-9])' + cat + cc -Xassembler -mx86-used-note=no -c -o out/test/elf/x86_64/x86_64_note-property2/a.o -xassembler-with-cpp - + cat + cc -Xassembler -mx86-used-note=no -c -o out/test/elf/x86_64/x86_64_note-property2/b.o -xassembler-with-cpp - + cat + cc -Xassembler -mx86-used-note=no -c -o out/test/elf/x86_64/x86_64_note-property2/c.o -xassembler-with-cpp - + ./mold -nostdlib -o out/test/elf/x86_64/x86_64_note-property2/exe1 out/test/elf/x86_64/x86_64_note-property2/a.o out/test/elf/x86_64/x86_64_note-property2/b.o + readelf -n out/test/elf/x86_64/x86_64_note-property2/exe1 + grep -q 'x86 feature: SHSTK' + readelf -n out/test/elf/x86_64/x86_64_note-property2/exe1 + grep -q 'x86 ISA needed: x86-64-baseline, x86-64-v2, x86-64-v3, x86-64-v4' + readelf -n out/test/elf/x86_64/x86_64_note-property2/exe1 + grep -q 'x86 ISA used: x86-64-baseline, x86-64-v2, x86-64-v3, x86-64-v4' + ./mold -nostdlib -o out/test/elf/x86_64/x86_64_note-property2/exe2 out/test/elf/x86_64/x86_64_note-property2/a.o out/test/elf/x86_64/x86_64_note-property2/b.o out/test/elf/x86_64/x86_64_note-property2/c.o + readelf -n out/test/elf/x86_64/x86_64_note-property2/exe2 + grep -q 'x86 feature: SHSTK' + readelf -n out/test/elf/x86_64/x86_64_note-property2/exe2 + grep -q 'x86 ISA needed: x86-64-baseline, x86-64-v2, x86-64-v3, x86-64-v4' + readelf -n out/test/elf/x86_64/x86_64_note-property2/exe2 + grep -q 'x86 ISA used: x86-64-baseline, x86-64-v2, x86-64-v3, x86-64-v4' + ./mold --relocatable -o out/test/elf/x86_64/x86_64_note-property2/d.o out/test/elf/x86_64/x86_64_note-property2/a.o out/test/elf/x86_64/x86_64_note-property2/b.o + readelf -n out/test/elf/x86_64/x86_64_note-property2/d.o + grep -q 'x86 feature: SHSTK' + readelf -n out/test/elf/x86_64/x86_64_note-property2/d.o + grep -q 'x86 ISA needed: x86-64-baseline, x86-64-v2, x86-64-v3, x86-64-v4' + grep -q 'x86 ISA used: x86-64-baseline, x86-64-v2, x86-64-v3, x86-64-v4' + readelf -n out/test/elf/x86_64/x86_64_note-property2/d.o + on_exit + echo OK OK + exit 0 Test time = 2.46 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_note-property2" end time: Nov 13 20:02 CET "x86_64-x86_64_note-property2" time elapsed: 00:00:02 ---------------------------------------------------------- 58/322 Testing: x86_64-cmdline 58/322 Test: x86_64-cmdline Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/cmdline.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-cmdline" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/cmdline.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/cmdline.sh .sh ++ testname=cmdline ++ echo -n 'Testing cmdline ... ' Testing cmdline ... ++ t=out/test/elf/x86_64/cmdline ++ mkdir -p out/test/elf/x86_64/cmdline + grep -q 'unknown command line option: -zfoo' + grep -q 'unknown command line option: -z foo' + grep -q 'unknown command line option: -abcdefg' + grep -q 'unknown command line option: --abcdefg' + on_exit + echo OK OK + exit 0 Test time = 0.59 sec ---------------------------------------------------------- Test Passed. "x86_64-cmdline" end time: Nov 13 20:02 CET "x86_64-cmdline" time elapsed: 00:00:00 ---------------------------------------------------------- 45/322 Testing: x86_64-allow-multiple-definition 45/322 Test: x86_64-allow-multiple-definition Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/allow-multiple-definition.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-allow-multiple-definition" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/allow-multiple-definition.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/allow-multiple-definition.sh .sh ++ testname=allow-multiple-definition ++ echo -n 'Testing allow-multiple-definition ... ' Testing allow-multiple-definition ... ++ t=out/test/elf/x86_64/allow-multiple-definition ++ mkdir -p out/test/elf/x86_64/allow-multiple-definition + echo 'int main() { return 0; }' + cc -c -o out/test/elf/x86_64/allow-multiple-definition/a.o -xc - + echo 'int main() { return 1; }' + cc -c -o out/test/elf/x86_64/allow-multiple-definition/b.o -xc - + cc -B. -o out/test/elf/x86_64/allow-multiple-definition/exe out/test/elf/x86_64/allow-multiple-definition/a.o out/test/elf/x86_64/allow-multiple-definition/b.o + cc -B. -o out/test/elf/x86_64/allow-multiple-definition/exe out/test/elf/x86_64/allow-multiple-definition/a.o out/test/elf/x86_64/allow-multiple-definition/b.o -Wl,-allow-multiple-definition + cc -B. -o out/test/elf/x86_64/allow-multiple-definition/exe out/test/elf/x86_64/allow-multiple-definition/a.o out/test/elf/x86_64/allow-multiple-definition/b.o -Wl,-z,muldefs + on_exit + echo OK OK + exit 0 Test time = 1.61 sec ---------------------------------------------------------- Test Passed. "x86_64-allow-multiple-definition" end time: Nov 13 20:02 CET "x86_64-allow-multiple-definition" time elapsed: 00:00:01 ---------------------------------------------------------- 46/322 Testing: x86_64-ar-alignment 46/322 Test: x86_64-ar-alignment Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ar-alignment.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ar-alignment" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ar-alignment.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ar-alignment.sh .sh ++ testname=ar-alignment ++ echo -n 'Testing ar-alignment ... ' Testing ar-alignment ... ++ t=out/test/elf/x86_64/ar-alignment ++ mkdir -p out/test/elf/x86_64/ar-alignment + cat + cc -o out/test/elf/x86_64/ar-alignment/a.o -c -xc - + head -c 1 /dev/zero + cat + cc -o out/test/elf/x86_64/ar-alignment/b.o -c -xc - + cat + cc -o out/test/elf/x86_64/ar-alignment/c.o -c -xc - + rm -f out/test/elf/x86_64/ar-alignment/d.a + ar rcs out/test/elf/x86_64/ar-alignment/d.a out/test/elf/x86_64/ar-alignment/a.o out/test/elf/x86_64/ar-alignment/b.o + cc -B. -o out/test/elf/x86_64/ar-alignment/exe out/test/elf/x86_64/ar-alignment/c.o out/test/elf/x86_64/ar-alignment/d.a + on_exit + echo OK OK + exit 0 Test time = 1.67 sec ---------------------------------------------------------- Test Passed. "x86_64-ar-alignment" end time: Nov 13 20:02 CET "x86_64-ar-alignment" time elapsed: 00:00:01 ---------------------------------------------------------- 30/322 Testing: x86_64-x86_64_tls-gd-mcmodel-large 30/322 Test: x86_64-x86_64_tls-gd-mcmodel-large Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-gd-mcmodel-large.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_tls-gd-mcmodel-large" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-gd-mcmodel-large.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-gd-mcmodel-large.sh .sh ++ testname=x86_64_tls-gd-mcmodel-large ++ echo -n 'Testing x86_64_tls-gd-mcmodel-large ... ' Testing x86_64_tls-gd-mcmodel-large ... ++ t=out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large ++ mkdir -p out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large + '[' x86_64 = x86_64 ']' + cat + gcc -mtls-dialect=gnu -fPIC -c -o out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/a.o -xc - -mcmodel=large + cat + gcc -mtls-dialect=gnu -fPIC -c -o out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/b.o -xc - -mcmodel=large + cat + gcc -mtls-dialect=gnu -fPIC -c -o out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/c.o -xc - -mcmodel=large + cc -B. -shared -o out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/d.so out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/b.o -mcmodel=large + cc -B. -shared -o out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/e.so out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/c.o -Wl,--no-relax -mcmodel=large + cc -B. -o out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/exe out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/a.o out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/d.so out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/e.so -mcmodel=large + out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/exe + grep -q '1 2 3 4 5 6' + cc -B. -o out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/exe out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/a.o out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/d.so out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/e.so -Wl,-no-relax -mcmodel=large + out/test/elf/x86_64/x86_64_tls-gd-mcmodel-large/exe + grep -q '1 2 3 4 5 6' + on_exit + echo OK OK + exit 0 Test time = 2.55 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_tls-gd-mcmodel-large" end time: Nov 13 20:02 CET "x86_64-x86_64_tls-gd-mcmodel-large" time elapsed: 00:00:02 ---------------------------------------------------------- 52/322 Testing: x86_64-bno-symbolic 52/322 Test: x86_64-bno-symbolic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bno-symbolic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-bno-symbolic" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bno-symbolic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bno-symbolic.sh .sh ++ testname=bno-symbolic ++ echo -n 'Testing bno-symbolic ... ' Testing bno-symbolic ... ++ t=out/test/elf/x86_64/bno-symbolic ++ mkdir -p out/test/elf/x86_64/bno-symbolic + '[' x86_64 = s390x ']' + cat + cc -c -fPIC -oout/test/elf/x86_64/bno-symbolic/a.o -xc - + cc -B. -shared -fPIC -o out/test/elf/x86_64/bno-symbolic/b.so out/test/elf/x86_64/bno-symbolic/a.o -Wl,-Bsymbolic -Wl,-Bno-symbolic + cat + cc -c -o out/test/elf/x86_64/bno-symbolic/c.o -xc - -fno-PIE + cc -B. -no-pie -o out/test/elf/x86_64/bno-symbolic/exe out/test/elf/x86_64/bno-symbolic/c.o out/test/elf/x86_64/bno-symbolic/b.so + out/test/elf/x86_64/bno-symbolic/exe + grep -q '3 3 1' + on_exit + echo OK OK + exit 0 Test time = 1.57 sec ---------------------------------------------------------- Test Passed. "x86_64-bno-symbolic" end time: Nov 13 20:02 CET "x86_64-bno-symbolic" time elapsed: 00:00:01 ---------------------------------------------------------- 53/322 Testing: x86_64-bsymbolic-functions 53/322 Test: x86_64-bsymbolic-functions Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bsymbolic-functions.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-bsymbolic-functions" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bsymbolic-functions.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bsymbolic-functions.sh .sh ++ testname=bsymbolic-functions ++ echo -n 'Testing bsymbolic-functions ... ' Testing bsymbolic-functions ... ++ t=out/test/elf/x86_64/bsymbolic-functions ++ mkdir -p out/test/elf/x86_64/bsymbolic-functions + cc -c -o out/test/elf/x86_64/bsymbolic-functions/a.o -fPIC -xc - + cat + cc -B. -shared -o out/test/elf/x86_64/bsymbolic-functions/b.so out/test/elf/x86_64/bsymbolic-functions/a.o -Wl,-Bsymbolic-functions + cat + cc -c -o out/test/elf/x86_64/bsymbolic-functions/c.o -xc - -fno-PIE + cc -B. -no-pie -o out/test/elf/x86_64/bsymbolic-functions/exe out/test/elf/x86_64/bsymbolic-functions/c.o out/test/elf/x86_64/bsymbolic-functions/b.so + grep -q '3 3 0' + out/test/elf/x86_64/bsymbolic-functions/exe + on_exit + echo OK OK + exit 0 Test time = 1.60 sec ---------------------------------------------------------- Test Passed. "x86_64-bsymbolic-functions" end time: Nov 13 20:02 CET "x86_64-bsymbolic-functions" time elapsed: 00:00:01 ---------------------------------------------------------- 54/322 Testing: x86_64-bsymbolic 54/322 Test: x86_64-bsymbolic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bsymbolic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-bsymbolic" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bsymbolic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/bsymbolic.sh .sh ++ testname=bsymbolic ++ echo -n 'Testing bsymbolic ... ' Testing bsymbolic ... ++ t=out/test/elf/x86_64/bsymbolic ++ mkdir -p out/test/elf/x86_64/bsymbolic + cat + cc -c -fPIC -oout/test/elf/x86_64/bsymbolic/a.o -xc - + cc -B. -shared -fPIC -o out/test/elf/x86_64/bsymbolic/b.so out/test/elf/x86_64/bsymbolic/a.o -Wl,-Bsymbolic + cc -c -o out/test/elf/x86_64/bsymbolic/c.o -xc - -fno-PIE + cat + cc -B. -no-pie -o out/test/elf/x86_64/bsymbolic/exe out/test/elf/x86_64/bsymbolic/c.o out/test/elf/x86_64/bsymbolic/b.so + grep -q '3 4' + out/test/elf/x86_64/bsymbolic/exe + on_exit + echo OK OK + exit 0 Test time = 1.63 sec ---------------------------------------------------------- Test Passed. "x86_64-bsymbolic" end time: Nov 13 20:02 CET "x86_64-bsymbolic" time elapsed: 00:00:01 ---------------------------------------------------------- 60/322 Testing: x86_64-comment 60/322 Test: x86_64-comment Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/comment.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-comment" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/comment.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/comment.sh .sh ++ testname=comment ++ echo -n 'Testing comment ... ' Testing comment ... ++ t=out/test/elf/x86_64/comment ++ mkdir -p out/test/elf/x86_64/comment + cat + cc -c -o out/test/elf/x86_64/comment/a.o -xc - + cc -B. -o out/test/elf/x86_64/comment/exe out/test/elf/x86_64/comment/a.o + grep -q '[ms]old' + readelf -p .comment out/test/elf/x86_64/comment/exe + readelf -SW out/test/elf/x86_64/comment/exe + grep -Eq '\.comment.*\bMS\b' + on_exit + echo OK OK + exit 0 Test time = 1.07 sec ---------------------------------------------------------- Test Passed. "x86_64-comment" end time: Nov 13 20:02 CET "x86_64-comment" time elapsed: 00:00:01 ---------------------------------------------------------- 47/322 Testing: x86_64-as-needed-dso 47/322 Test: x86_64-as-needed-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-as-needed-dso" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed-dso.sh .sh ++ testname=as-needed-dso ++ echo -n 'Testing as-needed-dso ... ' Testing as-needed-dso ... ++ t=out/test/elf/x86_64/as-needed-dso ++ mkdir -p out/test/elf/x86_64/as-needed-dso + cat + cc -o out/test/elf/x86_64/as-needed-dso/libfoo.so -shared -fPIC -Wl,-soname,libfoo.so -xc - + cat + cc -o out/test/elf/x86_64/as-needed-dso/libbar.so -shared -fPIC -Wl,-soname,libbar.so -xc - + cc -o out/test/elf/x86_64/as-needed-dso/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/as-needed-dso/exe out/test/elf/x86_64/as-needed-dso/a.o -Lout/test/elf/x86_64/as-needed-dso -Wl,--as-needed -lbar -lfoo + readelf -W --dynamic out/test/elf/x86_64/as-needed-dso/exe + grep -q libbar out/test/elf/x86_64/as-needed-dso/log2 + grep -q libfoo out/test/elf/x86_64/as-needed-dso/log2 + on_exit + echo OK OK + exit 0 Test time = 2.04 sec ---------------------------------------------------------- Test Passed. "x86_64-as-needed-dso" end time: Nov 13 20:02 CET "x86_64-as-needed-dso" time elapsed: 00:00:02 ---------------------------------------------------------- 34/322 Testing: x86_64-x86_64_tls-module-base 34/322 Test: x86_64-x86_64_tls-module-base Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-module-base.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_tls-module-base" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-module-base.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-module-base.sh .sh ++ testname=x86_64_tls-module-base ++ echo -n 'Testing x86_64_tls-module-base ... ' Testing x86_64_tls-module-base ... ++ t=out/test/elf/x86_64/x86_64_tls-module-base ++ mkdir -p out/test/elf/x86_64/x86_64_tls-module-base + '[' x86_64 = x86_64 ']' + cat + cc -fPIC -o out/test/elf/x86_64/x86_64_tls-module-base/a.o -c -xassembler - + cat + cc -o out/test/elf/x86_64/x86_64_tls-module-base/b.o -c -xc - + cat + cc -o out/test/elf/x86_64/x86_64_tls-module-base/c.o -c -xc - + cc -B. -o out/test/elf/x86_64/x86_64_tls-module-base/exe1 out/test/elf/x86_64/x86_64_tls-module-base/a.o out/test/elf/x86_64/x86_64_tls-module-base/b.o out/test/elf/x86_64/x86_64_tls-module-base/c.o + out/test/elf/x86_64/x86_64_tls-module-base/exe1 + grep -q '^20 3$' + cc -B. -o out/test/elf/x86_64/x86_64_tls-module-base/exe2 out/test/elf/x86_64/x86_64_tls-module-base/a.o out/test/elf/x86_64/x86_64_tls-module-base/b.o out/test/elf/x86_64/x86_64_tls-module-base/c.o -Wl,-no-relax + out/test/elf/x86_64/x86_64_tls-module-base/exe2 + grep -q '^20 3$' + cc -B. -o out/test/elf/x86_64/x86_64_tls-module-base/d.so out/test/elf/x86_64/x86_64_tls-module-base/a.o -shared + cc -B. -o out/test/elf/x86_64/x86_64_tls-module-base/exe3 out/test/elf/x86_64/x86_64_tls-module-base/b.o out/test/elf/x86_64/x86_64_tls-module-base/c.o out/test/elf/x86_64/x86_64_tls-module-base/d.so + out/test/elf/x86_64/x86_64_tls-module-base/exe3 + grep -q '^20 3$' + on_exit + echo OK OK + exit 0 Test time = 2.66 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_tls-module-base" end time: Nov 13 20:02 CET "x86_64-x86_64_tls-module-base" time elapsed: 00:00:02 ---------------------------------------------------------- 59/322 Testing: x86_64-color-diagnostics 59/322 Test: x86_64-color-diagnostics Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/color-diagnostics.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-color-diagnostics" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/color-diagnostics.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/color-diagnostics.sh .sh ++ testname=color-diagnostics ++ echo -n 'Testing color-diagnostics ... ' Testing color-diagnostics ... ++ t=out/test/elf/x86_64/color-diagnostics ++ mkdir -p out/test/elf/x86_64/color-diagnostics + cc -o out/test/elf/x86_64/color-diagnostics/a.o -c -xc - + cat + ./mold -o out/test/elf/x86_64/color-diagnostics/exe out/test/elf/x86_64/color-diagnostics/a.o --color-diagnostics + grep -q $'\E' out/test/elf/x86_64/color-diagnostics/log + ./mold -o out/test/elf/x86_64/color-diagnostics/exe out/test/elf/x86_64/color-diagnostics/a.o --color-diagnostics=always + grep -q $'\E' out/test/elf/x86_64/color-diagnostics/log + ./mold -o out/test/elf/x86_64/color-diagnostics/exe out/test/elf/x86_64/color-diagnostics/a.o --color-diagnostics=never + grep -q $'\E' out/test/elf/x86_64/color-diagnostics/log + ./mold -o out/test/elf/x86_64/color-diagnostics/exe out/test/elf/x86_64/color-diagnostics/a.o --color-diagnostics=auto + grep -q $'\E' out/test/elf/x86_64/color-diagnostics/log + on_exit + echo OK OK + exit 0 Test time = 1.31 sec ---------------------------------------------------------- Test Passed. "x86_64-color-diagnostics" end time: Nov 13 20:02 CET "x86_64-color-diagnostics" time elapsed: 00:00:01 ---------------------------------------------------------- 57/322 Testing: x86_64-canonical-plt 57/322 Test: x86_64-canonical-plt Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/canonical-plt.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-canonical-plt" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/canonical-plt.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/canonical-plt.sh .sh ++ testname=canonical-plt ++ echo -n 'Testing canonical-plt ... ' Testing canonical-plt ... ++ t=out/test/elf/x86_64/canonical-plt ++ mkdir -p out/test/elf/x86_64/canonical-plt + '[' x86_64 = s390x ']' + cc -o out/test/elf/x86_64/canonical-plt/a.so -fPIC -shared -xc - + cat + cat + cc -o out/test/elf/x86_64/canonical-plt/b.o -c -xc - -fPIC + cat + cc -o out/test/elf/x86_64/canonical-plt/c.o -c -xc - -fno-PIC + cc -B. -no-pie -o out/test/elf/x86_64/canonical-plt/exe out/test/elf/x86_64/canonical-plt/a.so out/test/elf/x86_64/canonical-plt/b.o out/test/elf/x86_64/canonical-plt/c.o + out/test/elf/x86_64/canonical-plt/exe + grep -q '^1 1 1$' + on_exit + echo OK OK + exit 0 Test time = 1.76 sec ---------------------------------------------------------- Test Passed. "x86_64-canonical-plt" end time: Nov 13 20:02 CET "x86_64-canonical-plt" time elapsed: 00:00:01 ---------------------------------------------------------- 64/322 Testing: x86_64-compress-debug-sections-zstd 64/322 Test: x86_64-compress-debug-sections-zstd Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/compress-debug-sections-zstd.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-compress-debug-sections-zstd" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/compress-debug-sections-zstd.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/compress-debug-sections-zstd.sh .sh ++ testname=compress-debug-sections-zstd ++ echo -n 'Testing compress-debug-sections-zstd ... ' Testing compress-debug-sections-zstd ... ++ t=out/test/elf/x86_64/compress-debug-sections-zstd ++ mkdir -p out/test/elf/x86_64/compress-debug-sections-zstd + '[' x86_64 = arm ']' + '[' x86_64 = riscv32 ']' + command -v zstdcat + cc -c -g -o out/test/elf/x86_64/compress-debug-sections-zstd/a.o -xc - + cat + cc -B. -o out/test/elf/x86_64/compress-debug-sections-zstd/exe out/test/elf/x86_64/compress-debug-sections-zstd/a.o -Wl,--compress-debug-sections=zstd + objcopy --dump-section .debug_info=out/test/elf/x86_64/compress-debug-sections-zstd/debug_info out/test/elf/x86_64/compress-debug-sections-zstd/exe + dd if=out/test/elf/x86_64/compress-debug-sections-zstd/debug_info of=out/test/elf/x86_64/compress-debug-sections-zstd/debug_info.zstd bs=24 skip=1 status=none + zstdcat out/test/elf/x86_64/compress-debug-sections-zstd/debug_info.zstd + on_exit + echo OK OK + exit 0 Test time = 1.17 sec ---------------------------------------------------------- Test Passed. "x86_64-compress-debug-sections-zstd" end time: Nov 13 20:02 CET "x86_64-compress-debug-sections-zstd" time elapsed: 00:00:01 ---------------------------------------------------------- 48/322 Testing: x86_64-as-needed-dso2 48/322 Test: x86_64-as-needed-dso2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed-dso2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-as-needed-dso2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed-dso2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed-dso2.sh .sh ++ testname=as-needed-dso2 ++ echo -n 'Testing as-needed-dso2 ... ' Testing as-needed-dso2 ... ++ t=out/test/elf/x86_64/as-needed-dso2 ++ mkdir -p out/test/elf/x86_64/as-needed-dso2 + cat + cc -c -fPIC -o out/test/elf/x86_64/as-needed-dso2/a.o -xc - + cat + cc -c -fPIC -o out/test/elf/x86_64/as-needed-dso2/b.o -xc - + cc -xc -c -o out/test/elf/x86_64/as-needed-dso2/c.o - + cat + cc -B. -shared -o out/test/elf/x86_64/as-needed-dso2/libfoo.so out/test/elf/x86_64/as-needed-dso2/a.o + cc -B. -shared -o out/test/elf/x86_64/as-needed-dso2/libbar.so out/test/elf/x86_64/as-needed-dso2/b.o + cc -B. -o out/test/elf/x86_64/as-needed-dso2/exe out/test/elf/x86_64/as-needed-dso2/c.o -Lout/test/elf/x86_64/as-needed-dso2 -Wl,--as-needed -lfoo -lbar + readelf --dynamic out/test/elf/x86_64/as-needed-dso2/exe + grep libfoo.so out/test/elf/x86_64/as-needed-dso2/log + grep -q libbar.so out/test/elf/x86_64/as-needed-dso2/log + on_exit + echo OK OK + exit 0 Test time = 2.39 sec ---------------------------------------------------------- Test Passed. "x86_64-as-needed-dso2" end time: Nov 13 20:02 CET "x86_64-as-needed-dso2" time elapsed: 00:00:02 ---------------------------------------------------------- 63/322 Testing: x86_64-common 63/322 Test: x86_64-common Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-common" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.sh .sh ++ testname=common ++ echo -n 'Testing common ... ' Testing common ... ++ t=out/test/elf/x86_64/common ++ mkdir -p out/test/elf/x86_64/common + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/common/a.o - + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/common/b.o - + cc -B. -o out/test/elf/x86_64/common/exe out/test/elf/x86_64/common/a.o out/test/elf/x86_64/common/b.o + out/test/elf/x86_64/common/exe + grep -q '0 5 42' + readelf --sections out/test/elf/x86_64/common/exe + grep -q '.common .*NOBITS' out/test/elf/x86_64/common/log + on_exit + echo OK OK + exit 0 Test time = 1.40 sec ---------------------------------------------------------- Test Passed. "x86_64-common" end time: Nov 13 20:02 CET "x86_64-common" time elapsed: 00:00:01 ---------------------------------------------------------- 49/322 Testing: x86_64-as-needed-weak 49/322 Test: x86_64-as-needed-weak Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed-weak.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-as-needed-weak" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed-weak.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed-weak.sh .sh ++ testname=as-needed-weak ++ echo -n 'Testing as-needed-weak ... ' Testing as-needed-weak ... ++ t=out/test/elf/x86_64/as-needed-weak ++ mkdir -p out/test/elf/x86_64/as-needed-weak + cc -fPIC -o out/test/elf/x86_64/as-needed-weak/a.o -c -xc - + cat + cc -o out/test/elf/x86_64/as-needed-weak/libfoo.so -shared -fPIC -Wl,-soname,libfoo.so -xc - + cat + cat + cc -o out/test/elf/x86_64/as-needed-weak/libbar.so -shared -fPIC -Wl,-soname,libbar.so -xc - + cc -o out/test/elf/x86_64/as-needed-weak/exe1 out/test/elf/x86_64/as-needed-weak/a.o -Wl,-no-as-needed -Lout/test/elf/x86_64/as-needed-weak -lbar -lfoo + readelf --dynamic out/test/elf/x86_64/as-needed-weak/exe1 + grep -Fq 'Shared library: [libfoo.so]' out/test/elf/x86_64/as-needed-weak/log1 + grep -Fq 'Shared library: [libbar.so]' out/test/elf/x86_64/as-needed-weak/log1 + cc -o out/test/elf/x86_64/as-needed-weak/exe2 out/test/elf/x86_64/as-needed-weak/a.o -Wl,-as-needed -Lout/test/elf/x86_64/as-needed-weak -lbar -lfoo + readelf --dynamic out/test/elf/x86_64/as-needed-weak/exe2 + grep -Fq 'Shared library: [libfoo.so]' out/test/elf/x86_64/as-needed-weak/log2 + grep -Fq 'Shared library: [libbar.so]' out/test/elf/x86_64/as-needed-weak/log2 + on_exit + echo OK OK + exit 0 Test time = 2.56 sec ---------------------------------------------------------- Test Passed. "x86_64-as-needed-weak" end time: Nov 13 20:02 CET "x86_64-as-needed-weak" time elapsed: 00:00:02 ---------------------------------------------------------- 66/322 Testing: x86_64-copyrel-protected 66/322 Test: x86_64-copyrel-protected Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-protected.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-copyrel-protected" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-protected.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-protected.sh .sh ++ testname=copyrel-protected ++ echo -n 'Testing copyrel-protected ... ' Testing copyrel-protected ... ++ t=out/test/elf/x86_64/copyrel-protected ++ mkdir -p out/test/elf/x86_64/copyrel-protected + '[' x86_64 = ppc64 ']' + '[' x86_64 = ppc64le ']' + '[' x86_64 = alpha ']' + [[ x86_64 = loongarch* ]] + cat + cc -o out/test/elf/x86_64/copyrel-protected/a.o -c -xc -fno-PIE - + cc -shared -o out/test/elf/x86_64/copyrel-protected/b.so -xc - + cat + cc -B. out/test/elf/x86_64/copyrel-protected/a.o out/test/elf/x86_64/copyrel-protected/b.so -o out/test/elf/x86_64/copyrel-protected/exe -no-pie + grep -Fq 'cannot make copy relocation for protected symbol' out/test/elf/x86_64/copyrel-protected/log + on_exit + echo OK OK + exit 0 Test time = 1.38 sec ---------------------------------------------------------- Test Passed. "x86_64-copyrel-protected" end time: Nov 13 20:02 CET "x86_64-copyrel-protected" time elapsed: 00:00:01 ---------------------------------------------------------- 50/322 Testing: x86_64-as-needed 50/322 Test: x86_64-as-needed Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-as-needed" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/as-needed.sh .sh ++ testname=as-needed ++ echo -n 'Testing as-needed ... ' Testing as-needed ... ++ t=out/test/elf/x86_64/as-needed ++ mkdir -p out/test/elf/x86_64/as-needed + cat + cc -o out/test/elf/x86_64/as-needed/a.o -c -xc - + cc -o out/test/elf/x86_64/as-needed/b.so -shared -fPIC -Wl,-soname,libfoo.so -xc - + cat + cc -o out/test/elf/x86_64/as-needed/c.so -shared -fPIC -Wl,-soname,libbar.so -xc - + cat + cc -B. -o out/test/elf/x86_64/as-needed/exe out/test/elf/x86_64/as-needed/a.o -Wl,--no-as-needed out/test/elf/x86_64/as-needed/b.so out/test/elf/x86_64/as-needed/c.so + readelf --dynamic out/test/elf/x86_64/as-needed/exe + grep -Fq 'Shared library: [libfoo.so]' out/test/elf/x86_64/as-needed/readelf + grep -Fq 'Shared library: [libbar.so]' out/test/elf/x86_64/as-needed/readelf + cc -B. -o out/test/elf/x86_64/as-needed/exe out/test/elf/x86_64/as-needed/a.o -Wl,--as-needed out/test/elf/x86_64/as-needed/b.so out/test/elf/x86_64/as-needed/c.so + readelf --dynamic out/test/elf/x86_64/as-needed/exe + grep -Fq 'Shared library: [libfoo.so]' out/test/elf/x86_64/as-needed/readelf + grep -Fq 'Shared library: [libbar.so]' out/test/elf/x86_64/as-needed/readelf + on_exit + echo OK OK + exit 0 Test time = 2.63 sec ---------------------------------------------------------- Test Passed. "x86_64-as-needed" end time: Nov 13 20:02 CET "x86_64-as-needed" time elapsed: 00:00:02 ---------------------------------------------------------- 62/322 Testing: x86_64-common-ref 62/322 Test: x86_64-common-ref Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common-ref.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-common-ref" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common-ref.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common-ref.sh .sh ++ testname=common-ref ++ echo -n 'Testing common-ref ... ' Testing common-ref ... ++ t=out/test/elf/x86_64/common-ref ++ mkdir -p out/test/elf/x86_64/common-ref + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/common-ref/a.o - + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/common-ref/b.o - + rm -f out/test/elf/x86_64/common-ref/c.a + ar rcs out/test/elf/x86_64/common-ref/c.a out/test/elf/x86_64/common-ref/b.o + cc -fcommon -xc -c -o out/test/elf/x86_64/common-ref/d.o - + cat + rm -f out/test/elf/x86_64/common-ref/e.a + ar rcs out/test/elf/x86_64/common-ref/e.a out/test/elf/x86_64/common-ref/d.o + cc -B. -o out/test/elf/x86_64/common-ref/exe out/test/elf/x86_64/common-ref/a.o out/test/elf/x86_64/common-ref/c.a out/test/elf/x86_64/common-ref/e.a + out/test/elf/x86_64/common-ref/exe + grep -q 5 + on_exit + echo OK OK + exit 0 Test time = 1.81 sec ---------------------------------------------------------- Test Passed. "x86_64-common-ref" end time: Nov 13 20:02 CET "x86_64-common-ref" time elapsed: 00:00:01 ---------------------------------------------------------- 67/322 Testing: x86_64-copyrel-relro 67/322 Test: x86_64-copyrel-relro Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-relro.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-copyrel-relro" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-relro.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-relro.sh .sh ++ testname=copyrel-relro ++ echo -n 'Testing copyrel-relro ... ' Testing copyrel-relro ... ++ t=out/test/elf/x86_64/copyrel-relro ++ mkdir -p out/test/elf/x86_64/copyrel-relro + cat + cc -o out/test/elf/x86_64/copyrel-relro/a.o -c -xc -fno-PIE - + cat + cc -fPIC -shared -o out/test/elf/x86_64/copyrel-relro/b.so -xc - + cc -B. out/test/elf/x86_64/copyrel-relro/a.o out/test/elf/x86_64/copyrel-relro/b.so -o out/test/elf/x86_64/copyrel-relro/exe -no-pie + grep -q '^sigsegv 0 1$' + out/test/elf/x86_64/copyrel-relro/exe + on_exit + echo OK OK + exit 0 Test time = 1.50 sec ---------------------------------------------------------- Test Passed. "x86_64-copyrel-relro" end time: Nov 13 20:02 CET "x86_64-copyrel-relro" time elapsed: 00:00:01 ---------------------------------------------------------- 73/322 Testing: x86_64-defsym 73/322 Test: x86_64-defsym Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/defsym.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-defsym" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/defsym.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/defsym.sh .sh ++ testname=defsym ++ echo -n 'Testing defsym ... ' Testing defsym ... ++ t=out/test/elf/x86_64/defsym ++ mkdir -p out/test/elf/x86_64/defsym + cc -fPIC -o out/test/elf/x86_64/defsym/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/defsym/exe out/test/elf/x86_64/defsym/a.o -pie -Wl,-defsym=foo=16 -Wl,-defsym=bar=0x2000 -Wl,-defsym=baz=print + grep -q '^Hello 0x10 0x2000$' + out/test/elf/x86_64/defsym/exe + on_exit + echo OK OK + exit 0 Test time = 0.97 sec ---------------------------------------------------------- Test Passed. "x86_64-defsym" end time: Nov 13 20:02 CET "x86_64-defsym" time elapsed: 00:00:00 ---------------------------------------------------------- 31/322 Testing: x86_64-x86_64_tls-gd-to-ie 31/322 Test: x86_64-x86_64_tls-gd-to-ie Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-gd-to-ie.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_tls-gd-to-ie" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-gd-to-ie.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_tls-gd-to-ie.sh .sh ++ testname=x86_64_tls-gd-to-ie ++ echo -n 'Testing x86_64_tls-gd-to-ie ... ' Testing x86_64_tls-gd-to-ie ... ++ t=out/test/elf/x86_64/x86_64_tls-gd-to-ie ++ mkdir -p out/test/elf/x86_64/x86_64_tls-gd-to-ie + cat + gcc -fPIC -c -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/a.o -xc - -mcmodel=large + cat + cc -fPIC -c -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/b.o -xc - + cc -B. -shared -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/c.so out/test/elf/x86_64/x86_64_tls-gd-to-ie/a.o + cc -B. -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/exe1 out/test/elf/x86_64/x86_64_tls-gd-to-ie/b.o out/test/elf/x86_64/x86_64_tls-gd-to-ie/c.so + grep -q '1 2 3' + out/test/elf/x86_64/x86_64_tls-gd-to-ie/exe1 + cc -B. -shared -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/d.so out/test/elf/x86_64/x86_64_tls-gd-to-ie/a.o -Wl,-no-relax + cc -B. -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/exe2 out/test/elf/x86_64/x86_64_tls-gd-to-ie/b.o out/test/elf/x86_64/x86_64_tls-gd-to-ie/d.so + out/test/elf/x86_64/x86_64_tls-gd-to-ie/exe2 + grep -q '1 2 3' + cc -B. -shared -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/e.so out/test/elf/x86_64/x86_64_tls-gd-to-ie/a.o -Wl,-z,nodlopen + cc -B. -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/exe3 out/test/elf/x86_64/x86_64_tls-gd-to-ie/b.o out/test/elf/x86_64/x86_64_tls-gd-to-ie/e.so + out/test/elf/x86_64/x86_64_tls-gd-to-ie/exe3 + grep -q '1 2 3' + cc -B. -shared -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/f.so out/test/elf/x86_64/x86_64_tls-gd-to-ie/a.o -Wl,-z,nodlopen -Wl,-no-relax + cc -B. -o out/test/elf/x86_64/x86_64_tls-gd-to-ie/exe4 out/test/elf/x86_64/x86_64_tls-gd-to-ie/b.o out/test/elf/x86_64/x86_64_tls-gd-to-ie/f.so + out/test/elf/x86_64/x86_64_tls-gd-to-ie/exe4 + grep -q '1 2 3' + on_exit + echo OK OK + exit 0 Test time = 3.72 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_tls-gd-to-ie" end time: Nov 13 20:02 CET "x86_64-x86_64_tls-gd-to-ie" time elapsed: 00:00:03 ---------------------------------------------------------- 74/322 Testing: x86_64-defsym2 74/322 Test: x86_64-defsym2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/defsym2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-defsym2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/defsym2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/defsym2.sh .sh ++ testname=defsym2 ++ echo -n 'Testing defsym2 ... ' Testing defsym2 ... ++ t=out/test/elf/x86_64/defsym2 ++ mkdir -p out/test/elf/x86_64/defsym2 + cat + cc -fPIC -o out/test/elf/x86_64/defsym2/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/defsym2/b.so -shared -Wl,-defsym=bar=foo out/test/elf/x86_64/defsym2/a.o + nm -D out/test/elf/x86_64/defsym2/b.so + grep -q bar + on_exit + echo OK OK + exit 0 Test time = 0.99 sec ---------------------------------------------------------- Test Passed. "x86_64-defsym2" end time: Nov 13 20:02 CET "x86_64-defsym2" time elapsed: 00:00:00 ---------------------------------------------------------- 75/322 Testing: x86_64-demangle-rust 75/322 Test: x86_64-demangle-rust Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/demangle-rust.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-demangle-rust" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/demangle-rust.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/demangle-rust.sh .sh ++ testname=demangle-rust ++ echo -n 'Testing demangle-rust ... ' Testing demangle-rust ... ++ t=out/test/elf/x86_64/demangle-rust ++ mkdir -p out/test/elf/x86_64/demangle-rust + cat + cc -c -o out/test/elf/x86_64/demangle-rust/a.o -xc - + cc -B. -o out/test/elf/x86_64/demangle-rust/exe out/test/elf/x86_64/demangle-rust/a.o + grep -Fq ' as core::iter::iterator::Iterator>::rposition::::{closure#0}' out/test/elf/x86_64/demangle-rust/log + on_exit + echo OK OK + exit 0 Test time = 1.00 sec ---------------------------------------------------------- Test Passed. "x86_64-demangle-rust" end time: Nov 13 20:02 CET "x86_64-demangle-rust" time elapsed: 00:00:00 ---------------------------------------------------------- 68/322 Testing: x86_64-copyrel-relro2 68/322 Test: x86_64-copyrel-relro2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-relro2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-copyrel-relro2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-relro2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-relro2.sh .sh ++ testname=copyrel-relro2 ++ echo -n 'Testing copyrel-relro2 ... ' Testing copyrel-relro2 ... ++ t=out/test/elf/x86_64/copyrel-relro2 ++ mkdir -p out/test/elf/x86_64/copyrel-relro2 + cat + cc -o out/test/elf/x86_64/copyrel-relro2/a.o -c -xc -fno-PIE - + cc -fPIC -shared -o out/test/elf/x86_64/copyrel-relro2/b.so -xc - + cat + cc -B. out/test/elf/x86_64/copyrel-relro2/a.o out/test/elf/x86_64/copyrel-relro2/b.so -o out/test/elf/x86_64/copyrel-relro2/exe -no-pie + out/test/elf/x86_64/copyrel-relro2/exe + grep -q '^sigsegv 0 1$' + on_exit + echo OK OK + exit 0 Test time = 1.60 sec ---------------------------------------------------------- Test Passed. "x86_64-copyrel-relro2" end time: Nov 13 20:02 CET "x86_64-copyrel-relro2" time elapsed: 00:00:01 ---------------------------------------------------------- 70/322 Testing: x86_64-debug-macro-section 70/322 Test: x86_64-debug-macro-section Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/debug-macro-section.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-debug-macro-section" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/debug-macro-section.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/debug-macro-section.sh .sh ++ testname=debug-macro-section ++ echo -n 'Testing debug-macro-section ... ' Testing debug-macro-section ... ++ t=out/test/elf/x86_64/debug-macro-section ++ mkdir -p out/test/elf/x86_64/debug-macro-section + cat + cat + gcc -o out/test/elf/x86_64/debug-macro-section/b.o -c -xc - -Iout/test/elf/x86_64/debug-macro-section -g3 + cat + gcc -o out/test/elf/x86_64/debug-macro-section/c.o -c -xc - -Iout/test/elf/x86_64/debug-macro-section -g3 + gcc -B. -o out/test/elf/x86_64/debug-macro-section/exe out/test/elf/x86_64/debug-macro-section/b.o out/test/elf/x86_64/debug-macro-section/c.o + objdump --dwarf=macro out/test/elf/x86_64/debug-macro-section/exe + grep 'DW_MACRO_import -.* 0x0$' out/test/elf/x86_64/debug-macro-section/log + on_exit + echo OK OK + exit 0 Test time = 1.38 sec ---------------------------------------------------------- Test Passed. "x86_64-debug-macro-section" end time: Nov 13 20:02 CET "x86_64-debug-macro-section" time elapsed: 00:00:01 ---------------------------------------------------------- 77/322 Testing: x86_64-dependency-file 77/322 Test: x86_64-dependency-file Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dependency-file.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dependency-file" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dependency-file.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dependency-file.sh .sh ++ testname=dependency-file ++ echo -n 'Testing dependency-file ... ' Testing dependency-file ... ++ t=out/test/elf/x86_64/dependency-file ++ mkdir -p out/test/elf/x86_64/dependency-file + cat + cc -o out/test/elf/x86_64/dependency-file/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/dependency-file/exe out/test/elf/x86_64/dependency-file/a.o -Wl,-dependency-file=out/test/elf/x86_64/dependency-file/dep + grep -q 'dependency-file/exe:.*/a.o ' out/test/elf/x86_64/dependency-file/dep + grep -q '.*/a.o:$' out/test/elf/x86_64/dependency-file/dep + on_exit + echo OK OK + exit 0 Test time = 1.04 sec ---------------------------------------------------------- Test Passed. "x86_64-dependency-file" end time: Nov 13 20:02 CET "x86_64-dependency-file" time elapsed: 00:00:01 ---------------------------------------------------------- 71/322 Testing: x86_64-default-symver 71/322 Test: x86_64-default-symver Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/default-symver.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-default-symver" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/default-symver.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/default-symver.sh .sh ++ testname=default-symver ++ echo -n 'Testing default-symver ... ' Testing default-symver ... ++ t=out/test/elf/x86_64/default-symver ++ mkdir -p out/test/elf/x86_64/default-symver + cat + cc -o out/test/elf/x86_64/default-symver/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/default-symver/b.so -shared out/test/elf/x86_64/default-symver/a.o -Wl,-default-symver + readelf --dyn-syms out/test/elf/x86_64/default-symver/b.so + grep -q ' foo@@b\.so' + cc -B. -o out/test/elf/x86_64/default-symver/b.so -shared out/test/elf/x86_64/default-symver/a.o -Wl,--soname=bar -Wl,-default-symver + grep -q ' foo@@bar' + readelf --dyn-syms out/test/elf/x86_64/default-symver/b.so + on_exit + echo OK OK + exit 0 Test time = 1.40 sec ---------------------------------------------------------- Test Passed. "x86_64-default-symver" end time: Nov 13 20:02 CET "x86_64-default-symver" time elapsed: 00:00:01 ---------------------------------------------------------- 84/322 Testing: x86_64-duplicate-error 84/322 Test: x86_64-duplicate-error Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/duplicate-error.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-duplicate-error" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/duplicate-error.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/duplicate-error.sh .sh ++ testname=duplicate-error ++ echo -n 'Testing duplicate-error ... ' Testing duplicate-error ... ++ t=out/test/elf/x86_64/duplicate-error ++ mkdir -p out/test/elf/x86_64/duplicate-error + cc -o out/test/elf/x86_64/duplicate-error/a.o -c -x assembler - + cat + ./mold -o out/test/elf/x86_64/duplicate-error/exe out/test/elf/x86_64/duplicate-error/a.o out/test/elf/x86_64/duplicate-error/a.o + grep -q 'duplicate symbol: .*\.o: .*\.o: main' out/test/elf/x86_64/duplicate-error/log + on_exit + echo OK OK + exit 0 Test time = 0.47 sec ---------------------------------------------------------- Test Passed. "x86_64-duplicate-error" end time: Nov 13 20:02 CET "x86_64-duplicate-error" time elapsed: 00:00:00 ---------------------------------------------------------- 69/322 Testing: x86_64-copyrel 69/322 Test: x86_64-copyrel Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-copyrel" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel.sh .sh ++ testname=copyrel ++ echo -n 'Testing copyrel ... ' Testing copyrel ... ++ t=out/test/elf/x86_64/copyrel ++ mkdir -p out/test/elf/x86_64/copyrel + cat + cc -fno-PIC -o out/test/elf/x86_64/copyrel/a.o -c -xc - + cat + cc -fno-PIC -o out/test/elf/x86_64/copyrel/b.o -c -xc - + cc -fPIC -o out/test/elf/x86_64/copyrel/c.o + cat -c -xc - + cc -B. -shared -o out/test/elf/x86_64/copyrel/c.so out/test/elf/x86_64/copyrel/c.o + cc -B. -no-pie -o out/test/elf/x86_64/copyrel/exe out/test/elf/x86_64/copyrel/a.o out/test/elf/x86_64/copyrel/b.o out/test/elf/x86_64/copyrel/c.so + out/test/elf/x86_64/copyrel/exe + grep -q '42 42 1' + on_exit + echo OK OK + exit 0 Test time = 1.77 sec ---------------------------------------------------------- Test Passed. "x86_64-copyrel" end time: Nov 13 20:02 CET "x86_64-copyrel" time elapsed: 00:00:01 ---------------------------------------------------------- 86/322 Testing: x86_64-dynamic-linker 86/322 Test: x86_64-dynamic-linker Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-linker.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dynamic-linker" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-linker.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-linker.sh .sh ++ testname=dynamic-linker ++ echo -n 'Testing dynamic-linker ... ' Testing dynamic-linker ... ++ t=out/test/elf/x86_64/dynamic-linker ++ mkdir -p out/test/elf/x86_64/dynamic-linker + cc -c -o out/test/elf/x86_64/dynamic-linker/a.o -x assembler - + cat + ./mold -o out/test/elf/x86_64/dynamic-linker/exe out/test/elf/x86_64/dynamic-linker/a.o + readelf --sections out/test/elf/x86_64/dynamic-linker/exe + grep -Fq .interp out/test/elf/x86_64/dynamic-linker/log + readelf --dynamic out/test/elf/x86_64/dynamic-linker/exe + ./mold -o out/test/elf/x86_64/dynamic-linker/exe out/test/elf/x86_64/dynamic-linker/a.o --dynamic-linker=/foo/bar + readelf --sections out/test/elf/x86_64/dynamic-linker/exe + grep -Fq .interp out/test/elf/x86_64/dynamic-linker/log + on_exit + echo OK OK + exit 0 Test time = 0.69 sec ---------------------------------------------------------- Test Passed. "x86_64-dynamic-linker" end time: Nov 13 20:02 CET "x86_64-dynamic-linker" time elapsed: 00:00:00 ---------------------------------------------------------- 61/322 Testing: x86_64-common-archive 61/322 Test: x86_64-common-archive Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common-archive.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-common-archive" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common-archive.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common-archive.sh .sh ++ testname=common-archive ++ echo -n 'Testing common-archive ... ' Testing common-archive ... ++ t=out/test/elf/x86_64/common-archive ++ mkdir -p out/test/elf/x86_64/common-archive + cc -fcommon -xc -c -o out/test/elf/x86_64/common-archive/a.o - + cat + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/common-archive/b.o - + cc -fcommon -xc -c -o out/test/elf/x86_64/common-archive/c.o - + cat + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/common-archive/d.o - + rm -f out/test/elf/x86_64/common-archive/e.a + ar rcs out/test/elf/x86_64/common-archive/e.a out/test/elf/x86_64/common-archive/b.o out/test/elf/x86_64/common-archive/c.o out/test/elf/x86_64/common-archive/d.o + cc -B. -o out/test/elf/x86_64/common-archive/exe out/test/elf/x86_64/common-archive/a.o out/test/elf/x86_64/common-archive/e.a + out/test/elf/x86_64/common-archive/exe + grep -q '5 0 0 -1' + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/common-archive/f.o - + rm -f out/test/elf/x86_64/common-archive/f.a + ar rcs out/test/elf/x86_64/common-archive/f.a out/test/elf/x86_64/common-archive/b.o out/test/elf/x86_64/common-archive/f.o + cc -B. -o out/test/elf/x86_64/common-archive/exe out/test/elf/x86_64/common-archive/a.o out/test/elf/x86_64/common-archive/f.a + out/test/elf/x86_64/common-archive/exe + grep -q '5 0 7 2' + on_exit + echo OK OK + exit 0 Test time = 2.69 sec ---------------------------------------------------------- Test Passed. "x86_64-common-archive" end time: Nov 13 20:02 CET "x86_64-common-archive" time elapsed: 00:00:02 ---------------------------------------------------------- 78/322 Testing: x86_64-disable-new-dtags 78/322 Test: x86_64-disable-new-dtags Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/disable-new-dtags.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-disable-new-dtags" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/disable-new-dtags.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/disable-new-dtags.sh .sh ++ testname=disable-new-dtags ++ echo -n 'Testing disable-new-dtags ... ' Testing disable-new-dtags ... ++ t=out/test/elf/x86_64/disable-new-dtags ++ mkdir -p out/test/elf/x86_64/disable-new-dtags + cc -o out/test/elf/x86_64/disable-new-dtags/a.o -c -xc -fPIC - + cat + cc -B. -shared -o out/test/elf/x86_64/disable-new-dtags/b.so out/test/elf/x86_64/disable-new-dtags/a.o -Wl,-rpath=/foo + readelf --dynamic out/test/elf/x86_64/disable-new-dtags/b.so + grep -q 'RUNPATH.*/foo' + cc -B. -shared -o out/test/elf/x86_64/disable-new-dtags/b.so out/test/elf/x86_64/disable-new-dtags/a.o -Wl,-rpath=/foo -Wl,-enable-new-dtags + readelf --dynamic out/test/elf/x86_64/disable-new-dtags/b.so + grep -q 'RUNPATH.*/foo' + cc -B. -shared -o out/test/elf/x86_64/disable-new-dtags/b.so out/test/elf/x86_64/disable-new-dtags/a.o -Wl,-rpath=/foo -Wl,-disable-new-dtags + readelf --dynamic out/test/elf/x86_64/disable-new-dtags/b.so + grep -q 'RPATH.*/foo' + on_exit + echo OK OK + exit 0 Test time = 1.48 sec ---------------------------------------------------------- Test Passed. "x86_64-disable-new-dtags" end time: Nov 13 20:02 CET "x86_64-disable-new-dtags" time elapsed: 00:00:01 ---------------------------------------------------------- 79/322 Testing: x86_64-discard 79/322 Test: x86_64-discard Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/discard.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-discard" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/discard.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/discard.sh .sh ++ testname=discard ++ echo -n 'Testing discard ... ' Testing discard ... ++ t=out/test/elf/x86_64/discard ++ mkdir -p out/test/elf/x86_64/discard + '[' x86_64 = riscv64 -o x86_64 = riscv32 ']' + cat + cc -o out/test/elf/x86_64/discard/a.o -c -x assembler -Wa,-L - + ./mold -o out/test/elf/x86_64/discard/exe out/test/elf/x86_64/discard/a.o + readelf --symbols out/test/elf/x86_64/discard/exe + grep -Fq _start out/test/elf/x86_64/discard/log + grep -Fq foo out/test/elf/x86_64/discard/log + grep -Fq .Lbar out/test/elf/x86_64/discard/log + ./mold -o out/test/elf/x86_64/discard/exe out/test/elf/x86_64/discard/a.o --discard-locals + readelf --symbols out/test/elf/x86_64/discard/exe + grep -Fq _start out/test/elf/x86_64/discard/log + grep -Fq foo out/test/elf/x86_64/discard/log + grep -Fq .Lbar out/test/elf/x86_64/discard/log + ./mold -o out/test/elf/x86_64/discard/exe out/test/elf/x86_64/discard/a.o --discard-all + readelf --symbols out/test/elf/x86_64/discard/exe + grep -Fq _start out/test/elf/x86_64/discard/log + grep -Fq foo out/test/elf/x86_64/discard/log + grep -Fq .Lbar out/test/elf/x86_64/discard/log + ./mold -o out/test/elf/x86_64/discard/exe out/test/elf/x86_64/discard/a.o --strip-all + readelf --symbols out/test/elf/x86_64/discard/exe + grep -Fq _start out/test/elf/x86_64/discard/log + grep -Fq foo out/test/elf/x86_64/discard/log + grep -Fq .Lbar out/test/elf/x86_64/discard/log + on_exit + echo OK OK + exit 0 Test time = 1.49 sec ---------------------------------------------------------- Test Passed. "x86_64-discard" end time: Nov 13 20:02 CET "x86_64-discard" time elapsed: 00:00:01 ---------------------------------------------------------- 85/322 Testing: x86_64-dynamic-dt-debug 85/322 Test: x86_64-dynamic-dt-debug Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-dt-debug.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dynamic-dt-debug" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-dt-debug.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-dt-debug.sh .sh ++ testname=dynamic-dt-debug ++ echo -n 'Testing dynamic-dt-debug ... ' Testing dynamic-dt-debug ... ++ t=out/test/elf/x86_64/dynamic-dt-debug ++ mkdir -p out/test/elf/x86_64/dynamic-dt-debug + cc -o out/test/elf/x86_64/dynamic-dt-debug/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/dynamic-dt-debug/exe out/test/elf/x86_64/dynamic-dt-debug/a.o + readelf --dynamic out/test/elf/x86_64/dynamic-dt-debug/exe + grep -Fq '(DEBUG)' out/test/elf/x86_64/dynamic-dt-debug/log + cat + cc -o out/test/elf/x86_64/dynamic-dt-debug/b.o -c -xc - + cc -B. -o out/test/elf/x86_64/dynamic-dt-debug/c.so out/test/elf/x86_64/dynamic-dt-debug/b.o -shared + readelf --dynamic out/test/elf/x86_64/dynamic-dt-debug/c.so + grep -Fq '(DEBUG)' out/test/elf/x86_64/dynamic-dt-debug/log + on_exit + echo OK OK + exit 0 Test time = 1.23 sec ---------------------------------------------------------- Test Passed. "x86_64-dynamic-dt-debug" end time: Nov 13 20:02 CET "x86_64-dynamic-dt-debug" time elapsed: 00:00:01 ---------------------------------------------------------- 72/322 Testing: x86_64-defsym-lto 72/322 Test: x86_64-defsym-lto Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/defsym-lto.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-defsym-lto" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/defsym-lto.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/defsym-lto.sh .sh ++ testname=defsym-lto ++ echo -n 'Testing defsym-lto ... ' Testing defsym-lto ... ++ t=out/test/elf/x86_64/defsym-lto ++ mkdir -p out/test/elf/x86_64/defsym-lto + echo 'int main() {}' + cc -flto -o /dev/null -xc - + cat + cc -flto -fPIC -o out/test/elf/x86_64/defsym-lto/a.o -c -xc - + cc -B. -flto -o out/test/elf/x86_64/defsym-lto/exe out/test/elf/x86_64/defsym-lto/a.o -Wl,-defsym,live_func=dead_func + out/test/elf/x86_64/defsym-lto/exe + grep -q '^OK$' + on_exit + echo OK OK + exit 0 Test time = 2.18 sec ---------------------------------------------------------- Test Passed. "x86_64-defsym-lto" end time: Nov 13 20:02 CET "x86_64-defsym-lto" time elapsed: 00:00:02 ---------------------------------------------------------- 80/322 Testing: x86_64-dso-undef 80/322 Test: x86_64-dso-undef Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dso-undef.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dso-undef" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dso-undef.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dso-undef.sh .sh ++ testname=dso-undef ++ echo -n 'Testing dso-undef ... ' Testing dso-undef ... ++ t=out/test/elf/x86_64/dso-undef ++ mkdir -p out/test/elf/x86_64/dso-undef + cat + cc -fPIC -o out/test/elf/x86_64/dso-undef/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/dso-undef/b.so -shared out/test/elf/x86_64/dso-undef/a.o + cat + cc -o out/test/elf/x86_64/dso-undef/c.o -c -xc - + rm -f out/test/elf/x86_64/dso-undef/d.a + ar rcs out/test/elf/x86_64/dso-undef/d.a out/test/elf/x86_64/dso-undef/c.o + cat + cc -o out/test/elf/x86_64/dso-undef/e.o -c -xc - + cc -B. -o out/test/elf/x86_64/dso-undef/exe out/test/elf/x86_64/dso-undef/b.so out/test/elf/x86_64/dso-undef/d.a out/test/elf/x86_64/dso-undef/e.o + grep -q ' foo$' + readelf --dyn-syms out/test/elf/x86_64/dso-undef/exe + on_exit + echo OK OK + exit 0 Test time = 1.64 sec ---------------------------------------------------------- Test Passed. "x86_64-dso-undef" end time: Nov 13 20:02 CET "x86_64-dso-undef" time elapsed: 00:00:01 ---------------------------------------------------------- 76/322 Testing: x86_64-demangle 76/322 Test: x86_64-demangle Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/demangle.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-demangle" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/demangle.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/demangle.sh .sh ++ testname=demangle ++ echo -n 'Testing demangle ... ' Testing demangle ... ++ t=out/test/elf/x86_64/demangle ++ mkdir -p out/test/elf/x86_64/demangle + cat + cc -c -o out/test/elf/x86_64/demangle/a.o -xc++ - + cc -B. -o out/test/elf/x86_64/demangle/exe out/test/elf/x86_64/demangle/a.o -Wl,-no-demangle + grep -q 'undefined symbol: _Z3fooii$' out/test/elf/x86_64/demangle/log + cc -B. -o out/test/elf/x86_64/demangle/exe out/test/elf/x86_64/demangle/a.o -Wl,-demangle + grep -Eq 'undefined symbol: foo\(int, int\)$' out/test/elf/x86_64/demangle/log + cc -B. -o out/test/elf/x86_64/demangle/exe out/test/elf/x86_64/demangle/a.o + grep -Eq 'undefined symbol: foo\(int, int\)$' out/test/elf/x86_64/demangle/log + cc -c -o out/test/elf/x86_64/demangle/b.o -xc - + cat + cc -B. -o out/test/elf/x86_64/demangle/exe out/test/elf/x86_64/demangle/b.o -Wl,-demangle + grep -q 'undefined symbol: Pi$' out/test/elf/x86_64/demangle/log + on_exit + echo OK OK + exit 0 Test time = 1.96 sec ---------------------------------------------------------- Test Passed. "x86_64-demangle" end time: Nov 13 20:02 CET "x86_64-demangle" time elapsed: 00:00:01 ---------------------------------------------------------- 83/322 Testing: x86_64-duplicate-error-archive 83/322 Test: x86_64-duplicate-error-archive Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/duplicate-error-archive.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-duplicate-error-archive" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/duplicate-error-archive.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/duplicate-error-archive.sh .sh ++ testname=duplicate-error-archive ++ echo -n 'Testing duplicate-error-archive ... ' Testing duplicate-error-archive ... ++ t=out/test/elf/x86_64/duplicate-error-archive ++ mkdir -p out/test/elf/x86_64/duplicate-error-archive + cc -o out/test/elf/x86_64/duplicate-error-archive/a.o -c -xc - + cat + rm -f out/test/elf/x86_64/duplicate-error-archive/b.a + ar rcs out/test/elf/x86_64/duplicate-error-archive/b.a out/test/elf/x86_64/duplicate-error-archive/a.o + cc -o out/test/elf/x86_64/duplicate-error-archive/c.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/duplicate-error-archive/exe out/test/elf/x86_64/duplicate-error-archive/c.o out/test/elf/x86_64/duplicate-error-archive/b.a out/test/elf/x86_64/duplicate-error-archive/b.a + cc -B. -o out/test/elf/x86_64/duplicate-error-archive/exe out/test/elf/x86_64/duplicate-error-archive/c.o -Wl,--push-state,--whole-archive out/test/elf/x86_64/duplicate-error-archive/b.a out/test/elf/x86_64/duplicate-error-archive/b.a -Wl,--pop-state + grep -q 'duplicate symbol:.* foo' out/test/elf/x86_64/duplicate-error-archive/log + on_exit + echo OK OK + exit 0 Test time = 1.39 sec ---------------------------------------------------------- Test Passed. "x86_64-duplicate-error-archive" end time: Nov 13 20:02 CET "x86_64-duplicate-error-archive" time elapsed: 00:00:01 ---------------------------------------------------------- 65/322 Testing: x86_64-copyrel-alignment 65/322 Test: x86_64-copyrel-alignment Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-alignment.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-copyrel-alignment" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-alignment.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/copyrel-alignment.sh .sh ++ testname=copyrel-alignment ++ echo -n 'Testing copyrel-alignment ... ' Testing copyrel-alignment ... ++ t=out/test/elf/x86_64/copyrel-alignment ++ mkdir -p out/test/elf/x86_64/copyrel-alignment + '[' x86_64 = ppc64 ']' + '[' x86_64 = ppc64le ']' + '[' x86_64 = alpha ']' + [[ x86_64 = loongarch* ]] + cc -fPIC -shared -o out/test/elf/x86_64/copyrel-alignment/a.so -xc - + cat + cat + cc -fPIC -shared -o out/test/elf/x86_64/copyrel-alignment/b.so -xc - + cat + cc -fPIC -shared -o out/test/elf/x86_64/copyrel-alignment/c.so -xc - + cat + cc -fno-PIE -o out/test/elf/x86_64/copyrel-alignment/d.o -c -xc - + cc -B. -o out/test/elf/x86_64/copyrel-alignment/exe1 out/test/elf/x86_64/copyrel-alignment/d.o out/test/elf/x86_64/copyrel-alignment/a.so -no-pie + out/test/elf/x86_64/copyrel-alignment/exe1 + readelf -W --sections out/test/elf/x86_64/copyrel-alignment/exe1 + grep -q '\.copyrel.* 32$' + cc -B. -o out/test/elf/x86_64/copyrel-alignment/exe2 out/test/elf/x86_64/copyrel-alignment/d.o out/test/elf/x86_64/copyrel-alignment/b.so -no-pie + out/test/elf/x86_64/copyrel-alignment/exe2 + readelf -W --sections out/test/elf/x86_64/copyrel-alignment/exe2 + grep -q '\.copyrel.* 8$' + cc -B. -o out/test/elf/x86_64/copyrel-alignment/exe3 out/test/elf/x86_64/copyrel-alignment/d.o out/test/elf/x86_64/copyrel-alignment/c.so -no-pie + out/test/elf/x86_64/copyrel-alignment/exe3 + readelf -W --sections out/test/elf/x86_64/copyrel-alignment/exe3 + grep -q '\.copyrel.* 256$' + on_exit + echo OK OK + exit 0 Test time = 2.88 sec ---------------------------------------------------------- Test Passed. "x86_64-copyrel-alignment" end time: Nov 13 20:02 CET "x86_64-copyrel-alignment" time elapsed: 00:00:02 ---------------------------------------------------------- 56/322 Testing: x86_64-build-id 56/322 Test: x86_64-build-id Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/build-id.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-build-id" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/build-id.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/build-id.sh .sh ++ testname=build-id ++ echo -n 'Testing build-id ... ' Testing build-id ... ++ t=out/test/elf/x86_64/build-id ++ mkdir -p out/test/elf/x86_64/build-id + echo 'int main() { return 0; }' + cc -B. -o out/test/elf/x86_64/build-id/exe out/test/elf/x86_64/build-id/a.c -Wl,-build-id + grep -qv 'GNU.*0x00000010.*NT_GNU_BUILD_ID' + readelf -n out/test/elf/x86_64/build-id/exe + cc -B. -o out/test/elf/x86_64/build-id/exe out/test/elf/x86_64/build-id/a.c -Wl,-build-id=uuid + readelf -nW out/test/elf/x86_64/build-id/exe + grep -Eq 'GNU.*0x00000010.*NT_GNU_BUILD_ID.*Build ID: ............4...[89abcdef]' + cc -B. -o out/test/elf/x86_64/build-id/exe out/test/elf/x86_64/build-id/a.c -Wl,-build-id=md5 + readelf -n out/test/elf/x86_64/build-id/exe + grep -q 'GNU.*0x00000010.*NT_GNU_BUILD_ID' + cc -B. -o out/test/elf/x86_64/build-id/exe out/test/elf/x86_64/build-id/a.c -Wl,-build-id=sha1 + readelf -n out/test/elf/x86_64/build-id/exe + grep -q 'GNU.*0x00000014.*NT_GNU_BUILD_ID' + cc -B. -o out/test/elf/x86_64/build-id/exe out/test/elf/x86_64/build-id/a.c -Wl,-build-id=sha256 + grep -q 'GNU.*0x00000020.*NT_GNU_BUILD_ID' + readelf -n out/test/elf/x86_64/build-id/exe + cc -B. -o out/test/elf/x86_64/build-id/exe out/test/elf/x86_64/build-id/a.c -Wl,-build-id=0xdeadbeefdeadbeef + grep -q 'Build ID: deadbeefdeadbeef' + readelf -n out/test/elf/x86_64/build-id/exe + on_exit + echo OK OK + exit 0 Test time = 3.77 sec ---------------------------------------------------------- Test Passed. "x86_64-build-id" end time: Nov 13 20:02 CET "x86_64-build-id" time elapsed: 00:00:03 ---------------------------------------------------------- 81/322 Testing: x86_64-dt-init 81/322 Test: x86_64-dt-init Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dt-init.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dt-init" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dt-init.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dt-init.sh .sh ++ testname=dt-init ++ echo -n 'Testing dt-init ... ' Testing dt-init ... ++ t=out/test/elf/x86_64/dt-init ++ mkdir -p out/test/elf/x86_64/dt-init + '[' x86_64 = riscv64 -o x86_64 = riscv32 ']' + [[ x86_64 = loongarch* ]] + '[' x86_64 = arm -o x86_64 = aarch64 ']' + cat + cc -c -fPIC -o out/test/elf/x86_64/dt-init/a.o -xc - + cat + cc -c -fPIC -o out/test/elf/x86_64/dt-init/b.o -xc - + cc -B. -o out/test/elf/x86_64/dt-init/c.so -shared out/test/elf/x86_64/dt-init/b.o + cc -B. -o out/test/elf/x86_64/dt-init/d.so -shared out/test/elf/x86_64/dt-init/b.o -Wl,-init,init -Wl,-fini,fini + cc -B. -o out/test/elf/x86_64/dt-init/exe1 out/test/elf/x86_64/dt-init/a.o out/test/elf/x86_64/dt-init/c.so + cc -B. -o out/test/elf/x86_64/dt-init/exe2 out/test/elf/x86_64/dt-init/a.o out/test/elf/x86_64/dt-init/d.so + out/test/elf/x86_64/dt-init/exe1 + out/test/elf/x86_64/dt-init/exe2 + grep -q init out/test/elf/x86_64/dt-init/log1 + grep -q fini out/test/elf/x86_64/dt-init/log1 + grep -q init out/test/elf/x86_64/dt-init/log2 + grep -q fini out/test/elf/x86_64/dt-init/log2 + on_exit + echo OK OK + exit 0 Test time = 1.70 sec ---------------------------------------------------------- Test Passed. "x86_64-dt-init" end time: Nov 13 20:02 CET "x86_64-dt-init" time elapsed: 00:00:01 ---------------------------------------------------------- 89/322 Testing: x86_64-dynamic-list3 89/322 Test: x86_64-dynamic-list3 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list3.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dynamic-list3" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list3.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list3.sh .sh ++ testname=dynamic-list3 ++ echo -n 'Testing dynamic-list3 ... ' Testing dynamic-list3 ... ++ t=out/test/elf/x86_64/dynamic-list3 ++ mkdir -p out/test/elf/x86_64/dynamic-list3 + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/dynamic-list3/b.o -xc - + cc -B. -Wl,--dynamic-list=out/test/elf/x86_64/dynamic-list3/dyn -o out/test/elf/x86_64/dynamic-list3/exe1 out/test/elf/x86_64/dynamic-list3/b.o + readelf --dyn-syms out/test/elf/x86_64/dynamic-list3/exe1 + grep -q ' xyz' out/test/elf/x86_64/dynamic-list3/log1 + grep -q ' foobarzx' out/test/elf/x86_64/dynamic-list3/log1 + grep -q ' foobarcx' out/test/elf/x86_64/dynamic-list3/log1 + grep -q ' foo123bar456bx' out/test/elf/x86_64/dynamic-list3/log1 + grep -q ' foo123bar456c' out/test/elf/x86_64/dynamic-list3/log1 + grep -q ' foo123bar456x' out/test/elf/x86_64/dynamic-list3/log1 + cc -B. -Wl,--export-dynamic-symbol-list=out/test/elf/x86_64/dynamic-list3/dyn -o out/test/elf/x86_64/dynamic-list3/exe2 out/test/elf/x86_64/dynamic-list3/b.o + readelf --dyn-syms out/test/elf/x86_64/dynamic-list3/exe2 + grep -q ' xyz' out/test/elf/x86_64/dynamic-list3/log2 + grep -q ' foobarzx' out/test/elf/x86_64/dynamic-list3/log2 + grep -q ' foobarcx' out/test/elf/x86_64/dynamic-list3/log2 + grep -q ' foo123bar456bx' out/test/elf/x86_64/dynamic-list3/log2 + grep -q ' foo123bar456c' out/test/elf/x86_64/dynamic-list3/log2 + grep -q ' foo123bar456x' out/test/elf/x86_64/dynamic-list3/log2 + on_exit + echo OK OK + exit 0 Test time = 1.18 sec ---------------------------------------------------------- Test Passed. "x86_64-dynamic-list3" end time: Nov 13 20:02 CET "x86_64-dynamic-list3" time elapsed: 00:00:01 ---------------------------------------------------------- 88/322 Testing: x86_64-dynamic-list2 88/322 Test: x86_64-dynamic-list2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dynamic-list2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list2.sh .sh ++ testname=dynamic-list2 ++ echo -n 'Testing dynamic-list2 ... ' Testing dynamic-list2 ... ++ t=out/test/elf/x86_64/dynamic-list2 ++ mkdir -p out/test/elf/x86_64/dynamic-list2 + cc -o out/test/elf/x86_64/dynamic-list2/a.o -c -xc - + cat + cat + c++ -o out/test/elf/x86_64/dynamic-list2/b.o -c -xc++ - + c++ -B. -o out/test/elf/x86_64/dynamic-list2/exe out/test/elf/x86_64/dynamic-list2/a.o out/test/elf/x86_64/dynamic-list2/b.o + readelf --dyn-syms out/test/elf/x86_64/dynamic-list2/exe + grep -q ' foo' out/test/elf/x86_64/dynamic-list2/log + grep -q ' bar' out/test/elf/x86_64/dynamic-list2/log + cat + cc -B. -o out/test/elf/x86_64/dynamic-list2/exe1 out/test/elf/x86_64/dynamic-list2/a.o out/test/elf/x86_64/dynamic-list2/b.o -Wl,-dynamic-list=out/test/elf/x86_64/dynamic-list2/dyn + readelf --dyn-syms out/test/elf/x86_64/dynamic-list2/exe1 + grep -q ' foo' out/test/elf/x86_64/dynamic-list2/log1 + grep -q ' bar' out/test/elf/x86_64/dynamic-list2/log1 + grep -q ' _Z3bazi' out/test/elf/x86_64/dynamic-list2/log1 + cc -B. -o out/test/elf/x86_64/dynamic-list2/exe2 out/test/elf/x86_64/dynamic-list2/a.o out/test/elf/x86_64/dynamic-list2/b.o -Wl,--export-dynamic-symbol-list=out/test/elf/x86_64/dynamic-list2/dyn + readelf --dyn-syms out/test/elf/x86_64/dynamic-list2/exe2 + grep -q ' foo' out/test/elf/x86_64/dynamic-list2/log2 + grep -q ' bar' out/test/elf/x86_64/dynamic-list2/log2 + grep -q ' _Z3bazi' out/test/elf/x86_64/dynamic-list2/log2 + on_exit + echo OK OK + exit 0 Test time = 1.34 sec ---------------------------------------------------------- Test Passed. "x86_64-dynamic-list2" end time: Nov 13 20:02 CET "x86_64-dynamic-list2" time elapsed: 00:00:01 ---------------------------------------------------------- 87/322 Testing: x86_64-dynamic-list 87/322 Test: x86_64-dynamic-list Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dynamic-list" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list.sh .sh ++ testname=dynamic-list ++ echo -n 'Testing dynamic-list ... ' Testing dynamic-list ... ++ t=out/test/elf/x86_64/dynamic-list ++ mkdir -p out/test/elf/x86_64/dynamic-list + cat + cc -o out/test/elf/x86_64/dynamic-list/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/dynamic-list/exe out/test/elf/x86_64/dynamic-list/a.o + readelf --dyn-syms out/test/elf/x86_64/dynamic-list/exe + grep -q ' foo' out/test/elf/x86_64/dynamic-list/log + grep -q ' bar' out/test/elf/x86_64/dynamic-list/log + cat + cc -B. -o out/test/elf/x86_64/dynamic-list/exe1 out/test/elf/x86_64/dynamic-list/a.o -Wl,-dynamic-list=out/test/elf/x86_64/dynamic-list/dyn + readelf --dyn-syms out/test/elf/x86_64/dynamic-list/exe1 + grep -q ' foo' out/test/elf/x86_64/dynamic-list/log1 + grep -q ' bar' out/test/elf/x86_64/dynamic-list/log1 + cc -B. -o out/test/elf/x86_64/dynamic-list/exe2 out/test/elf/x86_64/dynamic-list/a.o -Wl,--export-dynamic-symbol-list=out/test/elf/x86_64/dynamic-list/dyn + readelf --dyn-syms out/test/elf/x86_64/dynamic-list/exe2 + grep -q ' foo' out/test/elf/x86_64/dynamic-list/log2 + grep -q ' bar' out/test/elf/x86_64/dynamic-list/log2 + cc -B. -o out/test/elf/x86_64/dynamic-list/exe3 out/test/elf/x86_64/dynamic-list/a.o -Wl,--export-dynamic-symbol=foo,--export-dynamic-symbol=bar + readelf --dyn-syms out/test/elf/x86_64/dynamic-list/exe3 + grep -q ' foo' out/test/elf/x86_64/dynamic-list/log3 + grep -q ' bar' out/test/elf/x86_64/dynamic-list/log3 + on_exit + echo OK OK + exit 0 Test time = 1.39 sec ---------------------------------------------------------- Test Passed. "x86_64-dynamic-list" end time: Nov 13 20:02 CET "x86_64-dynamic-list" time elapsed: 00:00:01 ---------------------------------------------------------- 82/322 Testing: x86_64-dt-needed 82/322 Test: x86_64-dt-needed Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dt-needed.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dt-needed" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dt-needed.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dt-needed.sh .sh ++ testname=dt-needed ++ echo -n 'Testing dt-needed ... ' Testing dt-needed ... ++ t=out/test/elf/x86_64/dt-needed ++ mkdir -p out/test/elf/x86_64/dt-needed + cat + cc -c -o out/test/elf/x86_64/dt-needed/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/dt-needed/libfoo.so out/test/elf/x86_64/dt-needed/a.o -Wl,--soname,libfoo + cc -B. -shared -o out/test/elf/x86_64/dt-needed/libbar.so out/test/elf/x86_64/dt-needed/a.o + cat + cc -c -o out/test/elf/x86_64/dt-needed/b.o -xc - + cc -B. -o out/test/elf/x86_64/dt-needed/exe out/test/elf/x86_64/dt-needed/b.o out/test/elf/x86_64/dt-needed/libfoo.so + + readelf --dynamic grep out/test/elf/x86_64/dt-needed/exe-Fq 'Shared library: [libfoo]' + cc -B. -o out/test/elf/x86_64/dt-needed/exe out/test/elf/x86_64/dt-needed/b.o -L out/test/elf/x86_64/dt-needed -lfoo + readelf --dynamic out/test/elf/x86_64/dt-needed/exe + grep -Fq 'Shared library: [libfoo]' + cc -B. -o out/test/elf/x86_64/dt-needed/exe out/test/elf/x86_64/dt-needed/b.o out/test/elf/x86_64/dt-needed/libbar.so + readelf --dynamic out/test/elf/x86_64/dt-needed/exe + grep -Eq 'Shared library: \[.*dt-needed/libbar\.so\]' + cc -B. -o out/test/elf/x86_64/dt-needed/exe out/test/elf/x86_64/dt-needed/b.o -Lout/test/elf/x86_64/dt-needed -lbar + readelf --dynamic out/test/elf/x86_64/dt-needed/exe + grep -Fq 'Shared library: [libbar.so]' + on_exit + echo OK OK + exit 0 Test time = 1.70 sec ---------------------------------------------------------- Test Passed. "x86_64-dt-needed" end time: Nov 13 20:02 CET "x86_64-dt-needed" time elapsed: 00:00:01 ---------------------------------------------------------- 90/322 Testing: x86_64-dynamic-list4 90/322 Test: x86_64-dynamic-list4 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list4.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dynamic-list4" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list4.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic-list4.sh .sh ++ testname=dynamic-list4 ++ echo -n 'Testing dynamic-list4 ... ' Testing dynamic-list4 ... ++ t=out/test/elf/x86_64/dynamic-list4 ++ mkdir -p out/test/elf/x86_64/dynamic-list4 + cat + cc -o out/test/elf/x86_64/dynamic-list4/a.o -c -xc - -fPIC + cat + cc -B. -shared -o out/test/elf/x86_64/dynamic-list4/b.so out/test/elf/x86_64/dynamic-list4/a.o -Wl,--dynamic-list=out/test/elf/x86_64/dynamic-list4/dyn + cat + cc -o out/test/elf/x86_64/dynamic-list4/c.o -c -xc - -fPIC + cc -B. -shared -o out/test/elf/x86_64/dynamic-list4/d.so out/test/elf/x86_64/dynamic-list4/c.o + cat + cc -o out/test/elf/x86_64/dynamic-list4/e.o -c -xc - + cc -B. -o out/test/elf/x86_64/dynamic-list4/exe1 out/test/elf/x86_64/dynamic-list4/e.o -Wl,-push-state,-no-as-needed out/test/elf/x86_64/dynamic-list4/b.so -Wl,-pop-state + out/test/elf/x86_64/dynamic-list4/exe1 + grep -q 'foo1 bar1 baz1' + cc -B. -o out/test/elf/x86_64/dynamic-list4/exe2 out/test/elf/x86_64/dynamic-list4/e.o -Wl,-push-state,-no-as-needed out/test/elf/x86_64/dynamic-list4/d.so out/test/elf/x86_64/dynamic-list4/b.so -Wl,-pop-state + out/test/elf/x86_64/dynamic-list4/exe2 + grep -q 'foo2 bar2 baz1' + on_exit + echo OK OK + exit 0 Test time = 1.28 sec ---------------------------------------------------------- Test Passed. "x86_64-dynamic-list4" end time: Nov 13 20:02 CET "x86_64-dynamic-list4" time elapsed: 00:00:01 ---------------------------------------------------------- 27/322 Testing: x86_64-x86_64_reloc 27/322 Test: x86_64-x86_64_reloc Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_reloc.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-x86_64_reloc" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_reloc.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/x86_64_reloc.sh .sh ++ testname=x86_64_reloc ++ echo -n 'Testing x86_64_reloc ... ' Testing x86_64_reloc ... ++ t=out/test/elf/x86_64/x86_64_reloc ++ mkdir -p out/test/elf/x86_64/x86_64_reloc + '[' x86_64 = x86_64 ']' + cat + cc -fPIC -c -o out/test/elf/x86_64/x86_64_reloc/a.o -x assembler - + cat + cc -fPIC -c -o out/test/elf/x86_64/x86_64_reloc/b.o -xc - + cc -shared -o out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/a.o out/test/elf/x86_64/x86_64_reloc/b.o -Wl,-z,noexecstack + cat + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -no-pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^42$' + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^42$' + cat + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -no-pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^56$' + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^56$' + cat + cc -c -o out/test/elf/x86_64/x86_64_reloc/d.o out/test/elf/x86_64/x86_64_reloc/d.s + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.o -no-pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^56$' + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^56$' + cat + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -no-pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^56$' + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^56$' + cat + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -no-pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^76$' + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^76$' + cat + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -no-pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^76$' + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s -pie + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^76$' + cat + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^26$' + cat + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/d.s + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^61$' + cat + cc -c -o out/test/elf/x86_64/x86_64_reloc/e.o out/test/elf/x86_64/x86_64_reloc/e.c -mcmodel=large -fPIC + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/c.so out/test/elf/x86_64/x86_64_reloc/e.o + out/test/elf/x86_64/x86_64_reloc/exe + grep -q '^56000003$' + cat + cc -c -o out/test/elf/x86_64/x86_64_reloc/f.o out/test/elf/x86_64/x86_64_reloc/f.s + cc -B. -o out/test/elf/x86_64/x86_64_reloc/exe out/test/elf/x86_64/x86_64_reloc/f.o + readelf -x .foo -x .bar out/test/elf/x86_64/x86_64_reloc/exe + grep -Fq '0x00000010 00000000 00000000 10000000 00000000' out/test/elf/x86_64/x86_64_reloc/log + grep -Fq '0x00000010 18000000 00000000' out/test/elf/x86_64/x86_64_reloc/log + on_exit + echo OK OK + exit 0 Test time = 5.49 sec ---------------------------------------------------------- Test Passed. "x86_64-x86_64_reloc" end time: Nov 13 20:02 CET "x86_64-x86_64_reloc" time elapsed: 00:00:05 ---------------------------------------------------------- 92/322 Testing: x86_64-emit-relocs-cpp 92/322 Test: x86_64-emit-relocs-cpp Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/emit-relocs-cpp.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-emit-relocs-cpp" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/emit-relocs-cpp.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/emit-relocs-cpp.sh .sh ++ testname=emit-relocs-cpp ++ echo -n 'Testing emit-relocs-cpp ... ' Testing emit-relocs-cpp ... ++ t=out/test/elf/x86_64/emit-relocs-cpp ++ mkdir -p out/test/elf/x86_64/emit-relocs-cpp + '[' x86_64 = arm ']' + cat + c++ -o out/test/elf/x86_64/emit-relocs-cpp/a.o -c -fPIC -xc++ - + c++ -B. -o out/test/elf/x86_64/emit-relocs-cpp/exe out/test/elf/x86_64/emit-relocs-cpp/a.o -Wl,-emit-relocs + out/test/elf/x86_64/emit-relocs-cpp/exe + grep -q 'Hello world' + readelf -SW out/test/elf/x86_64/emit-relocs-cpp/exe + grep -Eq 'rela?\.text' + readelf -SW out/test/elf/x86_64/emit-relocs-cpp/exe + grep -Eq 'rela?\.eh_frame' + on_exit + echo OK OK + exit 0 Test time = 0.11 sec ---------------------------------------------------------- Test Passed. "x86_64-emit-relocs-cpp" end time: Nov 13 20:02 CET "x86_64-emit-relocs-cpp" time elapsed: 00:00:00 ---------------------------------------------------------- 91/322 Testing: x86_64-dynamic 91/322 Test: x86_64-dynamic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-dynamic" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/dynamic.sh .sh ++ testname=dynamic ++ echo -n 'Testing dynamic ... ' Testing dynamic ... ++ t=out/test/elf/x86_64/dynamic ++ mkdir -p out/test/elf/x86_64/dynamic + echo '.globl main; main:' + cc -o out/test/elf/x86_64/dynamic/a.o -c -x assembler - + cc -B. -o out/test/elf/x86_64/dynamic/exe out/test/elf/x86_64/dynamic/a.o + readelf --dynamic out/test/elf/x86_64/dynamic/exe + grep -Eq 'Shared library:.*\blibc\b' out/test/elf/x86_64/dynamic/log + readelf -W --dyn-syms --use-dynamic out/test/elf/x86_64/dynamic/exe + grep -Eq 'FUNC\s+GLOBAL\s+DEFAULT.*UND\s+__libc_start_main' out/test/elf/x86_64/dynamic/log2 + cat + cc -c -fPIC -o out/test/elf/x86_64/dynamic/b.o -xc - + on_exit + echo OK OK + exit 0 Test time = 0.13 sec ---------------------------------------------------------- Test Passed. "x86_64-dynamic" end time: Nov 13 20:02 CET "x86_64-dynamic" time elapsed: 00:00:00 ---------------------------------------------------------- 96/322 Testing: x86_64-empty-input 96/322 Test: x86_64-empty-input Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/empty-input.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-empty-input" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/empty-input.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/empty-input.sh .sh ++ testname=empty-input ++ echo -n 'Testing empty-input ... ' Testing empty-input ... ++ t=out/test/elf/x86_64/empty-input ++ mkdir -p out/test/elf/x86_64/empty-input + rm -f out/test/elf/x86_64/empty-input/a.o + touch out/test/elf/x86_64/empty-input/a.o + cc -B. -o out/test/elf/x86_64/empty-input/exe out/test/elf/x86_64/empty-input/a.o + grep -q 'unknown file type' out/test/elf/x86_64/empty-input/log + on_exit + echo OK OK + exit 0 Test time = 0.11 sec ---------------------------------------------------------- Test Passed. "x86_64-empty-input" end time: Nov 13 20:02 CET "x86_64-empty-input" time elapsed: 00:00:00 ---------------------------------------------------------- 94/322 Testing: x86_64-emit-relocs 94/322 Test: x86_64-emit-relocs Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/emit-relocs.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-emit-relocs" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/emit-relocs.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/emit-relocs.sh .sh ++ testname=emit-relocs ++ echo -n 'Testing emit-relocs ... ' Testing emit-relocs ... ++ t=out/test/elf/x86_64/emit-relocs ++ mkdir -p out/test/elf/x86_64/emit-relocs + cat + cc -o out/test/elf/x86_64/emit-relocs/a.o -c -fPIC -xc - + cc -B. -o out/test/elf/x86_64/emit-relocs/exe out/test/elf/x86_64/emit-relocs/a.o -Wl,-emit-relocs + out/test/elf/x86_64/emit-relocs/exe + grep -q 'Hello world' + readelf -S out/test/elf/x86_64/emit-relocs/exe + grep -Eq 'rela?\.text' + on_exit + echo OK OK + exit 0 Test time = 0.18 sec ---------------------------------------------------------- Test Passed. "x86_64-emit-relocs" end time: Nov 13 20:02 CET "x86_64-emit-relocs" time elapsed: 00:00:00 ---------------------------------------------------------- 95/322 Testing: x86_64-empty-file 95/322 Test: x86_64-empty-file Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/empty-file.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-empty-file" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/empty-file.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/empty-file.sh .sh ++ testname=empty-file ++ echo -n 'Testing empty-file ... ' Testing empty-file ... ++ t=out/test/elf/x86_64/empty-file ++ mkdir -p out/test/elf/x86_64/empty-file + cat + cc -o out/test/elf/x86_64/empty-file/a.o -c -xc - + rm -f out/test/elf/x86_64/empty-file/b.script + touch out/test/elf/x86_64/empty-file/b.script + cc -B. -o out/test/elf/x86_64/empty-file/exe out/test/elf/x86_64/empty-file/a.o -Wl,--version-script,out/test/elf/x86_64/empty-file/b.script + out/test/elf/x86_64/empty-file/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.19 sec ---------------------------------------------------------- Test Passed. "x86_64-empty-file" end time: Nov 13 20:02 CET "x86_64-empty-file" time elapsed: 00:00:00 ---------------------------------------------------------- 97/322 Testing: x86_64-empty-version 97/322 Test: x86_64-empty-version Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/empty-version.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-empty-version" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/empty-version.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/empty-version.sh .sh ++ testname=empty-version ++ echo -n 'Testing empty-version ... ' Testing empty-version ... ++ t=out/test/elf/x86_64/empty-version ++ mkdir -p out/test/elf/x86_64/empty-version + cat + cc -fPIC -c -o out/test/elf/x86_64/empty-version/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/empty-version/b.so out/test/elf/x86_64/empty-version/a.o + readelf --dyn-syms out/test/elf/x86_64/empty-version/b.so + grep -q ' bar1' + readelf --dyn-syms out/test/elf/x86_64/empty-version/b.so + grep -q ' bar2' + on_exit + echo OK OK + exit 0 Test time = 0.22 sec ---------------------------------------------------------- Test Passed. "x86_64-empty-version" end time: Nov 13 20:02 CET "x86_64-empty-version" time elapsed: 00:00:00 ---------------------------------------------------------- 98/322 Testing: x86_64-entry 98/322 Test: x86_64-entry Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/entry.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-entry" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/entry.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/entry.sh .sh ++ testname=entry ++ echo -n 'Testing entry ... ' Testing entry ... ++ t=out/test/elf/x86_64/entry ++ mkdir -p out/test/elf/x86_64/entry + '[' x86_64 = ppc64 ']' + cat + cc -o out/test/elf/x86_64/entry/a.o -c -x assembler - + cat + cc -o out/test/elf/x86_64/entry/b.o -c -xc - + cc -B. -o out/test/elf/x86_64/entry/exe1 -Wl,-e,foo out/test/elf/x86_64/entry/a.o out/test/elf/x86_64/entry/b.o + readelf -e out/test/elf/x86_64/entry/exe1 + grep -q 'Entry point address:.*0x1000$' out/test/elf/x86_64/entry/log + cc -B. -o out/test/elf/x86_64/entry/exe2 -Wl,-e,bar out/test/elf/x86_64/entry/a.o out/test/elf/x86_64/entry/b.o + readelf -e out/test/elf/x86_64/entry/exe2 + grep -q 'Entry point address:.*0x2000$' out/test/elf/x86_64/entry/log + on_exit + echo OK OK + exit 0 Test time = 0.37 sec ---------------------------------------------------------- Test Passed. "x86_64-entry" end time: Nov 13 20:02 CET "x86_64-entry" time elapsed: 00:00:00 ---------------------------------------------------------- 101/322 Testing: x86_64-exclude-libs2 101/322 Test: x86_64-exclude-libs2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exclude-libs2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-exclude-libs2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exclude-libs2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exclude-libs2.sh .sh ++ testname=exclude-libs2 ++ echo -n 'Testing exclude-libs2 ... ' Testing exclude-libs2 ... ++ t=out/test/elf/x86_64/exclude-libs2 ++ mkdir -p out/test/elf/x86_64/exclude-libs2 + cat + cc -x assembler -c -o out/test/elf/x86_64/exclude-libs2/a.o - + rm -f out/test/elf/x86_64/exclude-libs2/b.a + ar crs out/test/elf/x86_64/exclude-libs2/b.a out/test/elf/x86_64/exclude-libs2/a.o + cat + cc -xc -c -o out/test/elf/x86_64/exclude-libs2/c.o - + cc -B. -shared -o out/test/elf/x86_64/exclude-libs2/d.so out/test/elf/x86_64/exclude-libs2/c.o out/test/elf/x86_64/exclude-libs2/b.a -Wl,-exclude-libs=b.a + readelf --dyn-syms out/test/elf/x86_64/exclude-libs2/d.so + grep -Fq foo out/test/elf/x86_64/exclude-libs2/log + on_exit + echo OK OK + exit 0 Test time = 0.34 sec ---------------------------------------------------------- Test Passed. "x86_64-exclude-libs2" end time: Nov 13 20:02 CET "x86_64-exclude-libs2" time elapsed: 00:00:00 ---------------------------------------------------------- 102/322 Testing: x86_64-exclude-libs3 102/322 Test: x86_64-exclude-libs3 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exclude-libs3.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-exclude-libs3" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exclude-libs3.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exclude-libs3.sh .sh ++ testname=exclude-libs3 ++ echo -n 'Testing exclude-libs3 ... ' Testing exclude-libs3 ... ++ t=out/test/elf/x86_64/exclude-libs3 ++ mkdir -p out/test/elf/x86_64/exclude-libs3 + cat + cc -fPIC -xc -c -o out/test/elf/x86_64/exclude-libs3/a.o - + rm -f out/test/elf/x86_64/exclude-libs3/b.a + ar crs out/test/elf/x86_64/exclude-libs3/b.a out/test/elf/x86_64/exclude-libs3/a.o + cat + cc -fPIC -xc -c -o out/test/elf/x86_64/exclude-libs3/c.o - + cc -B. -shared -o out/test/elf/x86_64/exclude-libs3/d.so out/test/elf/x86_64/exclude-libs3/c.o out/test/elf/x86_64/exclude-libs3/b.a -Wl,-exclude-libs=ALL + readelf --dyn-syms out/test/elf/x86_64/exclude-libs3/d.so + grep -Fq foo out/test/elf/x86_64/exclude-libs3/log + on_exit + echo OK OK + exit 0 Test time = 0.43 sec ---------------------------------------------------------- Test Passed. "x86_64-exclude-libs3" end time: Nov 13 20:02 CET "x86_64-exclude-libs3" time elapsed: 00:00:00 ---------------------------------------------------------- 104/322 Testing: x86_64-execute-only 104/322 Test: x86_64-execute-only Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/execute-only.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-execute-only" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/execute-only.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/execute-only.sh .sh ++ testname=execute-only ++ echo -n 'Testing execute-only ... ' Testing execute-only ... ++ t=out/test/elf/x86_64/execute-only ++ mkdir -p out/test/elf/x86_64/execute-only + '[' x86_64 = sparc64 ']' + '[' x86_64 = ppc64 ']' + cat + cc -o out/test/elf/x86_64/execute-only/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/execute-only/exe out/test/elf/x86_64/execute-only/a.o -Wl,--execute-only + out/test/elf/x86_64/execute-only/exe + grep -q 'Hello world' + readelf -W --segments out/test/elf/x86_64/execute-only/exe + grep -Eq 'LOAD\s.*[0-9a-f] E 0x' + on_exit + echo OK OK + exit 0 Test time = 0.33 sec ---------------------------------------------------------- Test Passed. "x86_64-execute-only" end time: Nov 13 20:02 CET "x86_64-execute-only" time elapsed: 00:00:00 ---------------------------------------------------------- 112/322 Testing: x86_64-gdb-index-dwarf64 112/322 Test: x86_64-gdb-index-dwarf64 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gdb-index-dwarf64.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-gdb-index-dwarf64" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gdb-index-dwarf64.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gdb-index-dwarf64.sh .sh ++ testname=gdb-index-dwarf64 ++ echo -n 'Testing gdb-index-dwarf64 ... ' Testing gdb-index-dwarf64 ... ++ t=out/test/elf/x86_64/gdb-index-dwarf64 ++ mkdir -p out/test/elf/x86_64/gdb-index-dwarf64 + '[' x86_64 = x86_64 ']' + '[' x86_64 = riscv64 -o x86_64 = riscv32 -o x86_64 = sparc64 ']' + command -v gdb + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.12 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-gdb-index-dwarf64" end time: Nov 13 20:02 CET "x86_64-gdb-index-dwarf64" time elapsed: 00:00:00 ---------------------------------------------------------- 109/322 Testing: x86_64-filter 109/322 Test: x86_64-filter Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/filter.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-filter" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/filter.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/filter.sh .sh ++ testname=filter ++ echo -n 'Testing filter ... ' Testing filter ... ++ t=out/test/elf/x86_64/filter ++ mkdir -p out/test/elf/x86_64/filter + cc -o + out/test/elf/x86_64/filter/a.o -c -x assembler - cat + ./mold -o out/test/elf/x86_64/filter/b.so out/test/elf/x86_64/filter/a.o --filter foo -F bar -shared + readelf --dynamic out/test/elf/x86_64/filter/b.so + grep -Fq 'Filter library: [foo]' out/test/elf/x86_64/filter/log + grep -Fq 'Filter library: [bar]' out/test/elf/x86_64/filter/log + on_exit + echo OK OK + exit 0 Test time = 0.29 sec ---------------------------------------------------------- Test Passed. "x86_64-filter" end time: Nov 13 20:02 CET "x86_64-filter" time elapsed: 00:00:00 ---------------------------------------------------------- 103/322 Testing: x86_64-execstack 103/322 Test: x86_64-execstack Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/execstack.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-execstack" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/execstack.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/execstack.sh .sh ++ testname=execstack ++ echo -n 'Testing execstack ... ' Testing execstack ... ++ t=out/test/elf/x86_64/execstack ++ mkdir -p out/test/elf/x86_64/execstack + cat + cc -c -xc -o out/test/elf/x86_64/execstack/a.o - + cc -B. -o out/test/elf/x86_64/execstack/exe out/test/elf/x86_64/execstack/a.o -Wl,-z,execstack + readelf --segments -W out/test/elf/x86_64/execstack/exe + grep -q 'GNU_STACK.* RWE ' + cc -B. -o out/test/elf/x86_64/execstack/exe out/test/elf/x86_64/execstack/a.o -Wl,-z,execstack -Wl,-z,noexecstack + readelf --segments -W out/test/elf/x86_64/execstack/exe + grep -q 'GNU_STACK.* RW ' + cc -B. -o out/test/elf/x86_64/execstack/exe out/test/elf/x86_64/execstack/a.o + grep -q 'GNU_STACK.* RW ' + readelf --segments -W out/test/elf/x86_64/execstack/exe + on_exit + echo OK OK + exit 0 Test time = 0.66 sec ---------------------------------------------------------- Test Passed. "x86_64-execstack" end time: Nov 13 20:02 CET "x86_64-execstack" time elapsed: 00:00:00 ---------------------------------------------------------- 114/322 Testing: x86_64-gdb-index-split-dwarf 114/322 Test: x86_64-gdb-index-split-dwarf Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gdb-index-split-dwarf.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-gdb-index-split-dwarf" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gdb-index-split-dwarf.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gdb-index-split-dwarf.sh .sh ++ testname=gdb-index-split-dwarf ++ echo -n 'Testing gdb-index-split-dwarf ... ' Testing gdb-index-split-dwarf ... ++ t=out/test/elf/x86_64/gdb-index-split-dwarf ++ mkdir -p out/test/elf/x86_64/gdb-index-split-dwarf + '[' x86_64 = x86_64 ']' + '[' x86_64 = riscv64 -o x86_64 = riscv32 -o x86_64 = sparc64 ']' + command -v gdb + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.17 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-gdb-index-split-dwarf" end time: Nov 13 20:02 CET "x86_64-gdb-index-split-dwarf" time elapsed: 00:00:00 ---------------------------------------------------------- 105/322 Testing: x86_64-export-dynamic 105/322 Test: x86_64-export-dynamic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/export-dynamic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-export-dynamic" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/export-dynamic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/export-dynamic.sh .sh ++ testname=export-dynamic ++ echo -n 'Testing export-dynamic ... ' Testing export-dynamic ... ++ t=out/test/elf/x86_64/export-dynamic ++ mkdir -p out/test/elf/x86_64/export-dynamic + cat + cc -o out/test/elf/x86_64/export-dynamic/a.o -c -x assembler - + cc -shared -fPIC -o out/test/elf/x86_64/export-dynamic/b.so -xc /dev/null + ./mold -o out/test/elf/x86_64/export-dynamic/exe out/test/elf/x86_64/export-dynamic/a.o out/test/elf/x86_64/export-dynamic/b.so --export-dynamic + readelf --dyn-syms out/test/elf/x86_64/export-dynamic/exe + grep -Eq 'NOTYPE\s+GLOBAL DEFAULT\s+[0-9]+ bar' out/test/elf/x86_64/export-dynamic/log + grep -Eq 'NOTYPE\s+GLOBAL DEFAULT\s+[0-9]+ _start' out/test/elf/x86_64/export-dynamic/log + on_exit + echo OK OK + exit 0 Test time = 0.60 sec ---------------------------------------------------------- Test Passed. "x86_64-export-dynamic" end time: Nov 13 20:02 CET "x86_64-export-dynamic" time elapsed: 00:00:00 ---------------------------------------------------------- 113/322 Testing: x86_64-gdb-index-empty 113/322 Test: x86_64-gdb-index-empty Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gdb-index-empty.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-gdb-index-empty" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gdb-index-empty.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gdb-index-empty.sh .sh ++ testname=gdb-index-empty ++ echo -n 'Testing gdb-index-empty ... ' Testing gdb-index-empty ... ++ t=out/test/elf/x86_64/gdb-index-empty ++ mkdir -p out/test/elf/x86_64/gdb-index-empty + echo 'void _start() {}' + cc -c -o out/test/elf/x86_64/gdb-index-empty/a.o -xc - + ./mold -o out/test/elf/x86_64/gdb-index-empty/exe out/test/elf/x86_64/gdb-index-empty/a.o -gdb-index + readelf -WS out/test/elf/x86_64/gdb-index-empty/exe + grep -Fq .gdb_index out/test/elf/x86_64/gdb-index-empty/log + on_exit + echo OK OK + exit 0 Test time = 0.41 sec ---------------------------------------------------------- Test Passed. "x86_64-gdb-index-empty" end time: Nov 13 20:02 CET "x86_64-gdb-index-empty" time elapsed: 00:00:00 ---------------------------------------------------------- 106/322 Testing: x86_64-export-from-exe 106/322 Test: x86_64-export-from-exe Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/export-from-exe.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-export-from-exe" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/export-from-exe.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/export-from-exe.sh .sh ++ testname=export-from-exe ++ echo -n 'Testing export-from-exe ... ' Testing export-from-exe ... ++ t=out/test/elf/x86_64/export-from-exe ++ mkdir -p out/test/elf/x86_64/export-from-exe + cat + cc -o out/test/elf/x86_64/export-from-exe/a.o -c -xc - + cat + cc -shared -fPIC -o out/test/elf/x86_64/export-from-exe/b.so -xc - + cc -B. -o out/test/elf/x86_64/export-from-exe/exe out/test/elf/x86_64/export-from-exe/a.o out/test/elf/x86_64/export-from-exe/b.so + readelf --dyn-syms out/test/elf/x86_64/export-from-exe/exe + grep -q expfn2 + readelf --dyn-syms out/test/elf/x86_64/export-from-exe/exe + grep -q expfn1 + on_exit + echo OK OK + exit 0 Test time = 0.81 sec ---------------------------------------------------------- Test Passed. "x86_64-export-from-exe" end time: Nov 13 20:02 CET "x86_64-export-from-exe" time elapsed: 00:00:00 ---------------------------------------------------------- 107/322 Testing: x86_64-fatal-warnings 107/322 Test: x86_64-fatal-warnings Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/fatal-warnings.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-fatal-warnings" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/fatal-warnings.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/fatal-warnings.sh .sh ++ testname=fatal-warnings ++ echo -n 'Testing fatal-warnings ... ' Testing fatal-warnings ... ++ t=out/test/elf/x86_64/fatal-warnings ++ mkdir -p out/test/elf/x86_64/fatal-warnings + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/fatal-warnings/a.o - + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/fatal-warnings/b.o - + cc -B. -o out/test/elf/x86_64/fatal-warnings/exe out/test/elf/x86_64/fatal-warnings/a.o out/test/elf/x86_64/fatal-warnings/b.o -Wl,-warn-common + cc -B. -o out/test/elf/x86_64/fatal-warnings/exe out/test/elf/x86_64/fatal-warnings/a.o out/test/elf/x86_64/fatal-warnings/b.o -Wl,-warn-common -Wl,-fatal-warnings + on_exit + echo OK OK + exit 0 Test time = 0.86 sec ---------------------------------------------------------- Test Passed. "x86_64-fatal-warnings" end time: Nov 13 20:02 CET "x86_64-fatal-warnings" time elapsed: 00:00:00 ---------------------------------------------------------- 93/322 Testing: x86_64-emit-relocs-dead-sections 93/322 Test: x86_64-emit-relocs-dead-sections Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/emit-relocs-dead-sections.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-emit-relocs-dead-sections" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/emit-relocs-dead-sections.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/emit-relocs-dead-sections.sh .sh ++ testname=emit-relocs-dead-sections ++ echo -n 'Testing emit-relocs-dead-sections ... ' Testing emit-relocs-dead-sections ... ++ t=out/test/elf/x86_64/emit-relocs-dead-sections ++ mkdir -p out/test/elf/x86_64/emit-relocs-dead-sections + '[' x86_64 = sh4 ']' + cat + c++ -o out/test/elf/x86_64/emit-relocs-dead-sections/a.o -c -fPIC -xc++ -g -ffunction-sections - + cat + c++ -o out/test/elf/x86_64/emit-relocs-dead-sections/b.o -c -fPIC -xc++ -g -ffunction-sections - + c++ -B. -o out/test/elf/x86_64/emit-relocs-dead-sections/exe out/test/elf/x86_64/emit-relocs-dead-sections/a.o out/test/elf/x86_64/emit-relocs-dead-sections/b.o -Wl,-emit-relocs + out/test/elf/x86_64/emit-relocs-dead-sections/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 1.51 sec ---------------------------------------------------------- Test Passed. "x86_64-emit-relocs-dead-sections" end time: Nov 13 20:02 CET "x86_64-emit-relocs-dead-sections" time elapsed: 00:00:01 ---------------------------------------------------------- 123/322 Testing: x86_64-help 123/322 Test: x86_64-help Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/help.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-help" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/help.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/help.sh .sh ++ testname=help ++ echo -n 'Testing help ... ' Testing help ... ++ t=out/test/elf/x86_64/help ++ mkdir -p out/test/elf/x86_64/help + ./mold --help + grep -q Usage + on_exit + echo OK OK + exit 0 Test time = 0.26 sec ---------------------------------------------------------- Test Passed. "x86_64-help" end time: Nov 13 20:02 CET "x86_64-help" time elapsed: 00:00:00 ---------------------------------------------------------- 110/322 Testing: x86_64-func-addr 110/322 Test: x86_64-func-addr Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/func-addr.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-func-addr" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/func-addr.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/func-addr.sh .sh ++ testname=func-addr ++ echo -n 'Testing func-addr ... ' Testing func-addr ... ++ t=out/test/elf/x86_64/func-addr ++ mkdir -p out/test/elf/x86_64/func-addr + cat + cc -shared -o out/test/elf/x86_64/func-addr/a.so -xc - + cat + cc -o out/test/elf/x86_64/func-addr/b.o -c -xc -fno-PIC - + cc -B. -o out/test/elf/x86_64/func-addr/exe -no-pie out/test/elf/x86_64/func-addr/b.o out/test/elf/x86_64/func-addr/a.so + out/test/elf/x86_64/func-addr/exe + grep -q 1 + on_exit + echo OK OK + exit 0 Test time = 0.96 sec ---------------------------------------------------------- Test Passed. "x86_64-func-addr" end time: Nov 13 20:02 CET "x86_64-func-addr" time elapsed: 00:00:00 ---------------------------------------------------------- 115/322 Testing: x86_64-glibc-2.22-bug 115/322 Test: x86_64-glibc-2.22-bug Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/glibc-2.22-bug.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-glibc-2.22-bug" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/glibc-2.22-bug.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/glibc-2.22-bug.sh .sh ++ testname=glibc-2.22-bug ++ echo -n 'Testing glibc-2.22-bug ... ' Testing glibc-2.22-bug ... ++ t=out/test/elf/x86_64/glibc-2.22-bug ++ mkdir -p out/test/elf/x86_64/glibc-2.22-bug + '[' x86_64 = alpha ']' + cat + cc -o out/test/elf/x86_64/glibc-2.22-bug/a.o -fPIC -c -xc - + cc -B. -o out/test/elf/x86_64/glibc-2.22-bug/b.so -shared out/test/elf/x86_64/glibc-2.22-bug/a.o + readelf -W --sections out/test/elf/x86_64/glibc-2.22-bug/b.so + grep -E -A1 '\.rela?\.dyn' + grep -Eq '\.rela?\.plt' + on_exit + echo OK OK + exit 0 Test time = 0.75 sec ---------------------------------------------------------- Test Passed. "x86_64-glibc-2.22-bug" end time: Nov 13 20:02 CET "x86_64-glibc-2.22-bug" time elapsed: 00:00:00 ---------------------------------------------------------- 117/322 Testing: x86_64-gnu-hash 117/322 Test: x86_64-gnu-hash Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gnu-hash.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-gnu-hash" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gnu-hash.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gnu-hash.sh .sh ++ testname=gnu-hash ++ echo -n 'Testing gnu-hash ... ' Testing gnu-hash ... ++ t=out/test/elf/x86_64/gnu-hash ++ mkdir -p out/test/elf/x86_64/gnu-hash + cat + cc -c -o out/test/elf/x86_64/gnu-hash/a.o -xc - + cc -B. -o out/test/elf/x86_64/gnu-hash/b.so out/test/elf/x86_64/gnu-hash/a.o -Wl,-hash-style=gnu -shared + on_exit + echo OK OK + exit 0 Test time = 0.83 sec ---------------------------------------------------------- Test Passed. "x86_64-gnu-hash" end time: Nov 13 20:02 CET "x86_64-gnu-hash" time elapsed: 00:00:00 ---------------------------------------------------------- 120/322 Testing: x86_64-hash-style 120/322 Test: x86_64-hash-style Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hash-style.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-hash-style" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hash-style.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hash-style.sh .sh ++ testname=hash-style ++ echo -n 'Testing hash-style ... ' Testing hash-style ... ++ t=out/test/elf/x86_64/hash-style ++ mkdir -p out/test/elf/x86_64/hash-style + cat + cc -o out/test/elf/x86_64/hash-style/a.o -c -xc - + ./mold -shared -o out/test/elf/x86_64/hash-style/b.so out/test/elf/x86_64/hash-style/a.o + readelf -WS out/test/elf/x86_64/hash-style/b.so + grep -Fq ' .hash' + readelf -WS out/test/elf/x86_64/hash-style/b.so + grep -Fq ' .gnu.hash' + ./mold -shared -o out/test/elf/x86_64/hash-style/c.so out/test/elf/x86_64/hash-style/a.o --hash-style=both --hash-style=none + readelf -WS out/test/elf/x86_64/hash-style/c.so + grep -Fq ' .hash' out/test/elf/x86_64/hash-style/log + grep -Fq ' .gnu.hash' out/test/elf/x86_64/hash-style/log + on_exit + echo OK OK + exit 0 Test time = 0.79 sec ---------------------------------------------------------- Test Passed. "x86_64-hash-style" end time: Nov 13 20:02 CET "x86_64-hash-style" time elapsed: 00:00:00 ---------------------------------------------------------- 129/322 Testing: x86_64-ifunc-address-equality-exported 129/322 Test: x86_64-ifunc-address-equality-exported Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-address-equality-exported.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-address-equality-exported" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-address-equality-exported.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-address-equality-exported.sh .sh ++ testname=ifunc-address-equality-exported ++ echo -n 'Testing ifunc-address-equality-exported ... ' Testing ifunc-address-equality-exported ... ++ t=out/test/elf/x86_64/ifunc-address-equality-exported ++ mkdir -p out/test/elf/x86_64/ifunc-address-equality-exported + supports_ifunc + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + cc -c -o /dev/null -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.41 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-address-equality-exported" end time: Nov 13 20:02 CET "x86_64-ifunc-address-equality-exported" time elapsed: 00:00:00 ---------------------------------------------------------- 116/322 Testing: x86_64-global-offset-table 116/322 Test: x86_64-global-offset-table Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/global-offset-table.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-global-offset-table" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/global-offset-table.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/global-offset-table.sh .sh ++ testname=global-offset-table ++ echo -n 'Testing global-offset-table ... ' Testing global-offset-table ... ++ t=out/test/elf/x86_64/global-offset-table ++ mkdir -p out/test/elf/x86_64/global-offset-table + '[' x86_64 = ppc64le ']' + cat + cc -fPIC -c -o out/test/elf/x86_64/global-offset-table/a.o -xc - + cc -B. -no-pie -o out/test/elf/x86_64/global-offset-table/exe out/test/elf/x86_64/global-offset-table/a.o -Wl,-defsym=foo=_GLOBAL_OFFSET_TABLE_ + out/test/elf/x86_64/global-offset-table/exe ++ out/test/elf/x86_64/global-offset-table/exe + GOT_ADDR=203778 + '[' x86_64 = x86_64 -o x86_64 = i386 ']' + readelf -WS out/test/elf/x86_64/global-offset-table/exe + grep -q '\.got\.plt .*203778 ' + on_exit + echo OK OK + exit 0 Test time = 0.97 sec ---------------------------------------------------------- Test Passed. "x86_64-global-offset-table" end time: Nov 13 20:02 CET "x86_64-global-offset-table" time elapsed: 00:00:00 ---------------------------------------------------------- 108/322 Testing: x86_64-filler 108/322 Test: x86_64-filler Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/filler.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-filler" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/filler.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/filler.sh .sh ++ testname=filler ++ echo -n 'Testing filler ... ' Testing filler ... ++ t=out/test/elf/x86_64/filler ++ mkdir -p out/test/elf/x86_64/filler + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + cat + cc -o out/test/elf/x86_64/filler/a.o -c -xc - + cc -B. -static -Wl,--filler,0xfe -o out/test/elf/x86_64/filler/exe1 out/test/elf/x86_64/filler/a.o + sed -i -e 's/--filler 0xfe/--filler 0x00/' out/test/elf/x86_64/filler/exe1 + od -x out/test/elf/x86_64/filler/exe1 + cc -B. -static -Wl,--filler,0x00 -o out/test/elf/x86_64/filler/exe2 out/test/elf/x86_64/filler/a.o + od -x out/test/elf/x86_64/filler/exe2 + diff -q out/test/elf/x86_64/filler/txt1 out/test/elf/x86_64/filler/txt2 + on_exit + echo OK OK + exit 0 Test time = 1.43 sec ---------------------------------------------------------- Test Passed. "x86_64-filler" end time: Nov 13 20:02 CET "x86_64-filler" time elapsed: 00:00:01 ---------------------------------------------------------- 119/322 Testing: x86_64-gnu-warning 119/322 Test: x86_64-gnu-warning Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gnu-warning.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-gnu-warning" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gnu-warning.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gnu-warning.sh .sh ++ testname=gnu-warning ++ echo -n 'Testing gnu-warning ... ' Testing gnu-warning ... ++ t=out/test/elf/x86_64/gnu-warning ++ mkdir -p out/test/elf/x86_64/gnu-warning + cat + gcc -c -o out/test/elf/x86_64/gnu-warning/a.o -xc - + cc -B. -o out/test/elf/x86_64/gnu-warning/exe out/test/elf/x86_64/gnu-warning/a.o + out/test/elf/x86_64/gnu-warning/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.95 sec ---------------------------------------------------------- Test Passed. "x86_64-gnu-warning" end time: Nov 13 20:02 CET "x86_64-gnu-warning" time elapsed: 00:00:00 ---------------------------------------------------------- 121/322 Testing: x86_64-hello-dynamic 121/322 Test: x86_64-hello-dynamic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hello-dynamic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-hello-dynamic" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hello-dynamic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hello-dynamic.sh .sh ++ testname=hello-dynamic ++ echo -n 'Testing hello-dynamic ... ' Testing hello-dynamic ... ++ t=out/test/elf/x86_64/hello-dynamic ++ mkdir -p out/test/elf/x86_64/hello-dynamic + cat + cc -o out/test/elf/x86_64/hello-dynamic/a.o -c -xc - -fno-PIE + cc -B. -o out/test/elf/x86_64/hello-dynamic/exe out/test/elf/x86_64/hello-dynamic/a.o -no-pie + out/test/elf/x86_64/hello-dynamic/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.93 sec ---------------------------------------------------------- Test Passed. "x86_64-hello-dynamic" end time: Nov 13 20:02 CET "x86_64-hello-dynamic" time elapsed: 00:00:00 ---------------------------------------------------------- 127/322 Testing: x86_64-icf-small 127/322 Test: x86_64-icf-small Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/icf-small.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-icf-small" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/icf-small.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/icf-small.sh .sh ++ testname=icf-small ++ echo -n 'Testing icf-small ... ' Testing icf-small ... ++ t=out/test/elf/x86_64/icf-small ++ mkdir -p out/test/elf/x86_64/icf-small + cat + cc -o out/test/elf/x86_64/icf-small/a.o -c -ffunction-sections -xc - + ./mold -o out/test/elf/x86_64/icf-small/exe -icf=all out/test/elf/x86_64/icf-small/a.o + on_exit + echo OK OK + exit 0 Test time = 0.66 sec ---------------------------------------------------------- Test Passed. "x86_64-icf-small" end time: Nov 13 20:02 CET "x86_64-icf-small" time elapsed: 00:00:00 ---------------------------------------------------------- 118/322 Testing: x86_64-gnu-unique 118/322 Test: x86_64-gnu-unique Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gnu-unique.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-gnu-unique" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gnu-unique.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gnu-unique.sh .sh ++ testname=gnu-unique ++ echo -n 'Testing gnu-unique ... ' Testing gnu-unique ... ++ t=out/test/elf/x86_64/gnu-unique ++ mkdir -p out/test/elf/x86_64/gnu-unique + command -v g++ + cat + g++ -o out/test/elf/x86_64/gnu-unique/a.o -c -std=c++17 -fno-gnu-unique -xc++ - + cat + g++ -o out/test/elf/x86_64/gnu-unique/b.o -c -std=c++17 -fgnu-unique -xc++ - + cc -B. -o out/test/elf/x86_64/gnu-unique/exe out/test/elf/x86_64/gnu-unique/a.o out/test/elf/x86_64/gnu-unique/b.o + out/test/elf/x86_64/gnu-unique/exe + grep -q foo=5 + on_exit + echo OK OK + exit 0 Test time = 1.09 sec ---------------------------------------------------------- Test Passed. "x86_64-gnu-unique" end time: Nov 13 20:02 CET "x86_64-gnu-unique" time elapsed: 00:00:01 ---------------------------------------------------------- 130/322 Testing: x86_64-ifunc-address-equality 130/322 Test: x86_64-ifunc-address-equality Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-address-equality.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-address-equality" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-address-equality.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-address-equality.sh .sh ++ testname=ifunc-address-equality ++ echo -n 'Testing ifunc-address-equality ... ' Testing ifunc-address-equality ... ++ t=out/test/elf/x86_64/ifunc-address-equality ++ mkdir -p out/test/elf/x86_64/ifunc-address-equality + supports_ifunc + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + cc -c -o /dev/null -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.63 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-address-equality" end time: Nov 13 20:02 CET "x86_64-ifunc-address-equality" time elapsed: 00:00:00 ---------------------------------------------------------- 131/322 Testing: x86_64-ifunc-alias 131/322 Test: x86_64-ifunc-alias Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-alias.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-alias" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-alias.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-alias.sh .sh ++ testname=ifunc-alias ++ echo -n 'Testing ifunc-alias ... ' Testing ifunc-alias ... ++ t=out/test/elf/x86_64/ifunc-alias ++ mkdir -p out/test/elf/x86_64/ifunc-alias + supports_ifunc + cc -c -o /dev/null -xc - + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.62 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-alias" end time: Nov 13 20:02 CET "x86_64-ifunc-alias" time elapsed: 00:00:00 ---------------------------------------------------------- 132/322 Testing: x86_64-ifunc-dlopen 132/322 Test: x86_64-ifunc-dlopen Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-dlopen.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-dlopen" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-dlopen.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-dlopen.sh .sh ++ testname=ifunc-dlopen ++ echo -n 'Testing ifunc-dlopen ... ' Testing ifunc-dlopen ... ++ t=out/test/elf/x86_64/ifunc-dlopen ++ mkdir -p out/test/elf/x86_64/ifunc-dlopen + supports_ifunc + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + cc -c -o /dev/null -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.62 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-dlopen" end time: Nov 13 20:02 CET "x86_64-ifunc-dlopen" time elapsed: 00:00:00 ---------------------------------------------------------- 133/322 Testing: x86_64-ifunc-dso 133/322 Test: x86_64-ifunc-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-dso" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-dso.sh .sh ++ testname=ifunc-dso ++ echo -n 'Testing ifunc-dso ... ' Testing ifunc-dso ... ++ t=out/test/elf/x86_64/ifunc-dso ++ mkdir -p out/test/elf/x86_64/ifunc-dso + supports_ifunc + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + cc -c -o /dev/null -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.59 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-dso" end time: Nov 13 20:02 CET "x86_64-ifunc-dso" time elapsed: 00:00:00 ---------------------------------------------------------- 134/322 Testing: x86_64-ifunc-dynamic 134/322 Test: x86_64-ifunc-dynamic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-dynamic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-dynamic" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-dynamic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-dynamic.sh .sh ++ testname=ifunc-dynamic ++ echo -n 'Testing ifunc-dynamic ... ' Testing ifunc-dynamic ... ++ t=out/test/elf/x86_64/ifunc-dynamic ++ mkdir -p out/test/elf/x86_64/ifunc-dynamic + supports_ifunc + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + cc -c -o /dev/null -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.59 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-dynamic" end time: Nov 13 20:02 CET "x86_64-ifunc-dynamic" time elapsed: 00:00:00 ---------------------------------------------------------- 100/322 Testing: x86_64-exclude-libs 100/322 Test: x86_64-exclude-libs Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exclude-libs.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-exclude-libs" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exclude-libs.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exclude-libs.sh .sh ++ testname=exclude-libs ++ echo -n 'Testing exclude-libs ... ' Testing exclude-libs ... ++ t=out/test/elf/x86_64/exclude-libs ++ mkdir -p out/test/elf/x86_64/exclude-libs + cat + cc -fPIC -xc -c -o out/test/elf/x86_64/exclude-libs/a.o - + cat + cc -fPIC -xc -c -o out/test/elf/x86_64/exclude-libs/b.o - + rm -f out/test/elf/x86_64/exclude-libs/c.a + ar crs out/test/elf/x86_64/exclude-libs/c.a out/test/elf/x86_64/exclude-libs/a.o + rm -f out/test/elf/x86_64/exclude-libs/d.a + ar crs out/test/elf/x86_64/exclude-libs/d.a out/test/elf/x86_64/exclude-libs/b.o + cat + cc -fPIC -xc -c -o out/test/elf/x86_64/exclude-libs/e.o - + cc -B. -shared -o out/test/elf/x86_64/exclude-libs/f.so out/test/elf/x86_64/exclude-libs/e.o out/test/elf/x86_64/exclude-libs/c.a out/test/elf/x86_64/exclude-libs/d.a + readelf --dyn-syms out/test/elf/x86_64/exclude-libs/f.so + grep -Fq foo out/test/elf/x86_64/exclude-libs/log + grep -Fq bar out/test/elf/x86_64/exclude-libs/log + grep -Fq baz out/test/elf/x86_64/exclude-libs/log + cc -B. -shared -o out/test/elf/x86_64/exclude-libs/f.so out/test/elf/x86_64/exclude-libs/e.o out/test/elf/x86_64/exclude-libs/c.a out/test/elf/x86_64/exclude-libs/d.a -Wl,-exclude-libs=c.a + readelf --dyn-syms out/test/elf/x86_64/exclude-libs/f.so + grep -Fq foo out/test/elf/x86_64/exclude-libs/log + grep -Fq bar out/test/elf/x86_64/exclude-libs/log + grep -Fq baz out/test/elf/x86_64/exclude-libs/log + cc -B. -shared -o out/test/elf/x86_64/exclude-libs/f.so out/test/elf/x86_64/exclude-libs/e.o out/test/elf/x86_64/exclude-libs/c.a out/test/elf/x86_64/exclude-libs/d.a -Wl,-exclude-libs=c.a -Wl,-exclude-libs=d.a + readelf --dyn-syms out/test/elf/x86_64/exclude-libs/f.so + grep -Fq foo out/test/elf/x86_64/exclude-libs/log + grep -Fq bar out/test/elf/x86_64/exclude-libs/log + grep -Fq baz out/test/elf/x86_64/exclude-libs/log + cc -B. -shared -o out/test/elf/x86_64/exclude-libs/f.so out/test/elf/x86_64/exclude-libs/e.o out/test/elf/x86_64/exclude-libs/c.a out/test/elf/x86_64/exclude-libs/d.a -Wl,-exclude-libs=ALL + readelf --dyn-syms out/test/elf/x86_64/exclude-libs/f.so + grep -Fq foo out/test/elf/x86_64/exclude-libs/log + grep -Fq bar out/test/elf/x86_64/exclude-libs/log + grep -Fq baz out/test/elf/x86_64/exclude-libs/log + on_exit + echo OK OK + exit 0 Test time = 2.15 sec ---------------------------------------------------------- Test Passed. "x86_64-exclude-libs" end time: Nov 13 20:02 CET "x86_64-exclude-libs" time elapsed: 00:00:02 ---------------------------------------------------------- 122/322 Testing: x86_64-hello-static 122/322 Test: x86_64-hello-static Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hello-static.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-hello-static" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hello-static.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hello-static.sh .sh ++ testname=hello-static ++ echo -n 'Testing hello-static ... ' Testing hello-static ... ++ t=out/test/elf/x86_64/hello-static ++ mkdir -p out/test/elf/x86_64/hello-static + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + cc -o out/test/elf/x86_64/hello-static/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/hello-static/exe out/test/elf/x86_64/hello-static/a.o -static + grep -q 'Hello world' + out/test/elf/x86_64/hello-static/exe + on_exit + echo OK OK + exit 0 Test time = 1.20 sec ---------------------------------------------------------- Test Passed. "x86_64-hello-static" end time: Nov 13 20:02 CET "x86_64-hello-static" time elapsed: 00:00:01 ---------------------------------------------------------- 124/322 Testing: x86_64-hidden-undef 124/322 Test: x86_64-hidden-undef Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hidden-undef.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-hidden-undef" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hidden-undef.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hidden-undef.sh .sh ++ testname=hidden-undef ++ echo -n 'Testing hidden-undef ... ' Testing hidden-undef ... ++ t=out/test/elf/x86_64/hidden-undef ++ mkdir -p out/test/elf/x86_64/hidden-undef + cc -o out/test/elf/x86_64/hidden-undef/a.so -shared -fPIC -xc - + cat + cat + cc -o out/test/elf/x86_64/hidden-undef/b.o -fPIC -c -xc - + cc -B. -o out/test/elf/x86_64/hidden-undef/exe out/test/elf/x86_64/hidden-undef/a.so out/test/elf/x86_64/hidden-undef/b.o + grep -q 'undefined symbol: foo' out/test/elf/x86_64/hidden-undef/log + on_exit + echo OK OK + exit 0 Test time = 1.07 sec ---------------------------------------------------------- Test Passed. "x86_64-hidden-undef" end time: Nov 13 20:02 CET "x86_64-hidden-undef" time elapsed: 00:00:01 ---------------------------------------------------------- 125/322 Testing: x86_64-hidden-weak-undef 125/322 Test: x86_64-hidden-weak-undef Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hidden-weak-undef.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-hidden-weak-undef" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hidden-weak-undef.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/hidden-weak-undef.sh .sh ++ testname=hidden-weak-undef ++ echo -n 'Testing hidden-weak-undef ... ' Testing hidden-weak-undef ... ++ t=out/test/elf/x86_64/hidden-weak-undef ++ mkdir -p out/test/elf/x86_64/hidden-weak-undef + cc -o out/test/elf/x86_64/hidden-weak-undef/a.o -fPIC -c -xc - + cat + cc -B. -shared -o out/test/elf/x86_64/hidden-weak-undef/b.so out/test/elf/x86_64/hidden-weak-undef/a.o + readelf -W --dyn-syms out/test/elf/x86_64/hidden-weak-undef/b.so + grep -qw foo out/test/elf/x86_64/hidden-weak-undef/log + grep -qw bar out/test/elf/x86_64/hidden-weak-undef/log + on_exit + echo OK OK + exit 0 Test time = 1.07 sec ---------------------------------------------------------- Test Passed. "x86_64-hidden-weak-undef" end time: Nov 13 20:02 CET "x86_64-hidden-weak-undef" time elapsed: 00:00:01 ---------------------------------------------------------- 128/322 Testing: x86_64-icf 128/322 Test: x86_64-icf Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/icf.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-icf" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/icf.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/icf.sh .sh ++ testname=icf ++ echo -n 'Testing icf ... ' Testing icf ... ++ t=out/test/elf/x86_64/icf ++ mkdir -p out/test/elf/x86_64/icf + '[' x86_64 = ppc64 ']' + cc -c -o out/test/elf/x86_64/icf/a.o -ffunction-sections -fdata-sections -xc - + cat + cc -B. -o out/test/elf/x86_64/icf/exe out/test/elf/x86_64/icf/a.o -Wl,-icf=all + out/test/elf/x86_64/icf/exe + grep -q '1 0' + on_exit + echo OK OK + exit 0 Test time = 1.00 sec ---------------------------------------------------------- Test Passed. "x86_64-icf" end time: Nov 13 20:02 CET "x86_64-icf" time elapsed: 00:00:01 ---------------------------------------------------------- 135/322 Testing: x86_64-ifunc-export 135/322 Test: x86_64-ifunc-export Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-export.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-export" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-export.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-export.sh .sh ++ testname=ifunc-export ++ echo -n 'Testing ifunc-export ... ' Testing ifunc-export ... ++ t=out/test/elf/x86_64/ifunc-export ++ mkdir -p out/test/elf/x86_64/ifunc-export + supports_ifunc + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + cc -c -o /dev/null -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.77 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-export" end time: Nov 13 20:02 CET "x86_64-ifunc-export" time elapsed: 00:00:00 ---------------------------------------------------------- 136/322 Testing: x86_64-ifunc-funcptr 136/322 Test: x86_64-ifunc-funcptr Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-funcptr.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-funcptr" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-funcptr.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-funcptr.sh .sh ++ testname=ifunc-funcptr ++ echo -n 'Testing ifunc-funcptr ... ' Testing ifunc-funcptr ... ++ t=out/test/elf/x86_64/ifunc-funcptr ++ mkdir -p out/test/elf/x86_64/ifunc-funcptr + supports_ifunc + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + cc -c -o /dev/null -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.73 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-funcptr" end time: Nov 13 20:02 CET "x86_64-ifunc-funcptr" time elapsed: 00:00:00 ---------------------------------------------------------- 137/322 Testing: x86_64-ifunc-noplt 137/322 Test: x86_64-ifunc-noplt Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-noplt.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-noplt" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-noplt.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-noplt.sh .sh ++ testname=ifunc-noplt ++ echo -n 'Testing ifunc-noplt ... ' Testing ifunc-noplt ... ++ t=out/test/elf/x86_64/ifunc-noplt ++ mkdir -p out/test/elf/x86_64/ifunc-noplt + supports_ifunc + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + cc -c -o /dev/null -xc - + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.72 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-noplt" end time: Nov 13 20:02 CET "x86_64-ifunc-noplt" time elapsed: 00:00:00 ---------------------------------------------------------- 140/322 Testing: x86_64-init-array-priorities 140/322 Test: x86_64-init-array-priorities Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/init-array-priorities.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-init-array-priorities" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/init-array-priorities.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/init-array-priorities.sh .sh ++ testname=init-array-priorities ++ echo -n 'Testing init-array-priorities ... ' Testing init-array-priorities ... ++ t=out/test/elf/x86_64/init-array-priorities ++ mkdir -p out/test/elf/x86_64/init-array-priorities + is_musl + grep -q musl + ldd --help + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.67 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-init-array-priorities" end time: Nov 13 20:02 CET "x86_64-init-array-priorities" time elapsed: 00:00:00 ---------------------------------------------------------- 138/322 Testing: x86_64-ifunc-static 138/322 Test: x86_64-ifunc-static Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-static.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-ifunc-static" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-static.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/ifunc-static.sh .sh ++ testname=ifunc-static ++ echo -n 'Testing ifunc-static ... ' Testing ifunc-static ... ++ t=out/test/elf/x86_64/ifunc-static ++ mkdir -p out/test/elf/x86_64/ifunc-static + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + supports_ifunc + cc -c -o /dev/null -xc - + echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.77 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-ifunc-static" end time: Nov 13 20:02 CET "x86_64-ifunc-static" time elapsed: 00:00:00 ---------------------------------------------------------- 111/322 Testing: x86_64-gc-sections 111/322 Test: x86_64-gc-sections Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gc-sections.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-gc-sections" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gc-sections.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/gc-sections.sh .sh ++ testname=gc-sections ++ echo -n 'Testing gc-sections ... ' Testing gc-sections ... ++ t=out/test/elf/x86_64/gc-sections ++ mkdir -p out/test/elf/x86_64/gc-sections + cat + c++ -B. -o out/test/elf/x86_64/gc-sections/exe1 out/test/elf/x86_64/gc-sections/a.cc -ffunction-sections -fdata-sections + readelf --symbols out/test/elf/x86_64/gc-sections/exe1 + grep -qv live_fn1 out/test/elf/x86_64/gc-sections/log.1 + grep -qv live_fn2 out/test/elf/x86_64/gc-sections/log.1 + grep -qv dead_fn1 out/test/elf/x86_64/gc-sections/log.1 + grep -qv dead_fn2 out/test/elf/x86_64/gc-sections/log.1 + grep -qv live_var1 out/test/elf/x86_64/gc-sections/log.1 + grep -qv live_var2 out/test/elf/x86_64/gc-sections/log.1 + grep -qv dead_var1 out/test/elf/x86_64/gc-sections/log.1 + grep -qv dead_var2 out/test/elf/x86_64/gc-sections/log.1 + out/test/elf/x86_64/gc-sections/exe1 + grep -q '1 2' + c++ -B. -o out/test/elf/x86_64/gc-sections/exe2 out/test/elf/x86_64/gc-sections/a.cc -ffunction-sections -fdata-sections -Wl,-gc-sections + readelf --symbols out/test/elf/x86_64/gc-sections/exe2 + grep -q live_fn1 out/test/elf/x86_64/gc-sections/log.2 + grep -q live_fn2 out/test/elf/x86_64/gc-sections/log.2 + grep -qv dead_fn1 out/test/elf/x86_64/gc-sections/log.2 + grep -qv dead_fn2 out/test/elf/x86_64/gc-sections/log.2 + grep -q live_var1 out/test/elf/x86_64/gc-sections/log.2 + grep -q live_var2 out/test/elf/x86_64/gc-sections/log.2 + grep -qv dead_var1 out/test/elf/x86_64/gc-sections/log.2 + grep -qv dead_var2 out/test/elf/x86_64/gc-sections/log.2 + grep -q '1 2' + out/test/elf/x86_64/gc-sections/exe2 + on_exit + echo OK OK + exit 0 Test time = 2.04 sec ---------------------------------------------------------- Test Passed. "x86_64-gc-sections" end time: Nov 13 20:02 CET "x86_64-gc-sections" time elapsed: 00:00:02 ---------------------------------------------------------- 144/322 Testing: x86_64-interpose 144/322 Test: x86_64-interpose Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/interpose.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-interpose" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/interpose.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/interpose.sh .sh ++ testname=interpose ++ echo -n 'Testing interpose ... ' Testing interpose ... ++ t=out/test/elf/x86_64/interpose ++ mkdir -p out/test/elf/x86_64/interpose + cat + cc -c -fPIC -o out/test/elf/x86_64/interpose/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/interpose/b.so out/test/elf/x86_64/interpose/a.o -Wl,-z,interpose + grep -q 'Flags:.*INTERPOSE' + readelf --dynamic out/test/elf/x86_64/interpose/b.so + on_exit + echo OK OK + exit 0 Test time = 0.70 sec ---------------------------------------------------------- Test Passed. "x86_64-interpose" end time: Nov 13 20:02 CET "x86_64-interpose" time elapsed: 00:00:00 ---------------------------------------------------------- 145/322 Testing: x86_64-invalid-version-script 145/322 Test: x86_64-invalid-version-script Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/invalid-version-script.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-invalid-version-script" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/invalid-version-script.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/invalid-version-script.sh .sh ++ testname=invalid-version-script ++ echo -n 'Testing invalid-version-script ... ' Testing invalid-version-script ... ++ t=out/test/elf/x86_64/invalid-version-script ++ mkdir -p out/test/elf/x86_64/invalid-version-script + echo 'int main() {}' + cc -c -o out/test/elf/x86_64/invalid-version-script/a.o -xc - + echo 'VER1 { foo[12; };' + cc -B. -shared -o out/test/elf/x86_64/invalid-version-script/c.so -Wl,-version-script,out/test/elf/x86_64/invalid-version-script/b.ver out/test/elf/x86_64/invalid-version-script/a.o + grep -q 'invalid version pattern' out/test/elf/x86_64/invalid-version-script/log + on_exit + echo OK OK + exit 0 Test time = 0.70 sec ---------------------------------------------------------- Test Passed. "x86_64-invalid-version-script" end time: Nov 13 20:02 CET "x86_64-invalid-version-script" time elapsed: 00:00:00 ---------------------------------------------------------- 139/322 Testing: x86_64-image-base 139/322 Test: x86_64-image-base Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/image-base.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-image-base" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/image-base.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/image-base.sh .sh ++ testname=image-base ++ echo -n 'Testing image-base ... ' Testing image-base ... ++ t=out/test/elf/x86_64/image-base ++ mkdir -p out/test/elf/x86_64/image-base + cat + cc -o out/test/elf/x86_64/image-base/a.o -c -xc - + cc -B. -no-pie -o out/test/elf/x86_64/image-base/exe1 out/test/elf/x86_64/image-base/a.o -Wl,--image-base=0x8000000 + out/test/elf/x86_64/image-base/exe1 + grep -q 'Hello world' + readelf -W --sections out/test/elf/x86_64/image-base/exe1 + grep -Eq '.interp\s+PROGBITS\s+0*8000...\b' + cc -o out/test/elf/x86_64/image-base/b.o -c -xc - + cat + '[' x86_64 = x86-64 -o x86_64 = aarch64 ']' + on_exit + echo OK OK + exit 0 Test time = 0.96 sec ---------------------------------------------------------- Test Passed. "x86_64-image-base" end time: Nov 13 20:02 CET "x86_64-image-base" time elapsed: 00:00:00 ---------------------------------------------------------- 143/322 Testing: x86_64-initfirst 143/322 Test: x86_64-initfirst Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/initfirst.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-initfirst" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/initfirst.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/initfirst.sh .sh ++ testname=initfirst ++ echo -n 'Testing initfirst ... ' Testing initfirst ... ++ t=out/test/elf/x86_64/initfirst ++ mkdir -p out/test/elf/x86_64/initfirst + cat + cc -c -fPIC -o out/test/elf/x86_64/initfirst/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/initfirst/b.so out/test/elf/x86_64/initfirst/a.o -Wl,-z,initfirst + readelf --dynamic out/test/elf/x86_64/initfirst/b.so + grep -q 'Flags:.*INITFIRST' + on_exit + echo OK OK + exit 0 Test time = 0.86 sec ---------------------------------------------------------- Test Passed. "x86_64-initfirst" end time: Nov 13 20:02 CET "x86_64-initfirst" time elapsed: 00:00:00 ---------------------------------------------------------- 126/322 Testing: x86_64-icf-safe 126/322 Test: x86_64-icf-safe Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/icf-safe.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-icf-safe" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/icf-safe.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/icf-safe.sh .sh ++ testname=icf-safe ++ echo -n 'Testing icf-safe ... ' Testing icf-safe ... ++ t=out/test/elf/x86_64/icf-safe ++ mkdir -p out/test/elf/x86_64/icf-safe + '[' x86_64 = s390x ']' + cat + cc -c -o out/test/elf/x86_64/icf-safe/a.o -ffunction-sections -fdata-sections -xc - + cc -c -o out/test/elf/x86_64/icf-safe/b.o -ffunction-sections -fdata-sections -xc - + cat + cc -B. -o out/test/elf/x86_64/icf-safe/exe1 -Wl,-icf=safe out/test/elf/x86_64/icf-safe/a.o out/test/elf/x86_64/icf-safe/b.o + out/test/elf/x86_64/icf-safe/exe1 + grep -q '^0 0$' + cat + cc -c -o out/test/elf/x86_64/icf-safe/c.o -ffunction-sections -fdata-sections -xc - + cc -B. -o out/test/elf/x86_64/icf-safe/exe2 -Wl,-icf=safe out/test/elf/x86_64/icf-safe/a.o out/test/elf/x86_64/icf-safe/c.o + out/test/elf/x86_64/icf-safe/exe2 + grep foo2 out/test/elf/x86_64/icf-safe/log2 + on_exit + echo OK OK + exit 0 Test time = 1.61 sec ---------------------------------------------------------- Test Passed. "x86_64-icf-safe" end time: Nov 13 20:02 CET "x86_64-icf-safe" time elapsed: 00:00:01 ---------------------------------------------------------- 150/322 Testing: x86_64-large-max-page-size 150/322 Test: x86_64-large-max-page-size Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-max-page-size.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-large-max-page-size" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-max-page-size.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-max-page-size.sh .sh ++ testname=large-max-page-size ++ echo -n 'Testing large-max-page-size ... ' Testing large-max-page-size ... ++ t=out/test/elf/x86_64/large-max-page-size ++ mkdir -p out/test/elf/x86_64/large-max-page-size + cat + cc -o out/test/elf/x86_64/large-max-page-size/a.o -c -xc - -fPIC + cc -B. -o out/test/elf/x86_64/large-max-page-size/exe out/test/elf/x86_64/large-max-page-size/a.o -pie -Wl,-zmax-page-size=0x200000 + out/test/elf/x86_64/large-max-page-size/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.78 sec ---------------------------------------------------------- Test Passed. "x86_64-large-max-page-size" end time: Nov 13 20:02 CET "x86_64-large-max-page-size" time elapsed: 00:00:00 ---------------------------------------------------------- 149/322 Testing: x86_64-large-max-page-size-strip 149/322 Test: x86_64-large-max-page-size-strip Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-max-page-size-strip.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-large-max-page-size-strip" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-max-page-size-strip.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-max-page-size-strip.sh .sh ++ testname=large-max-page-size-strip ++ echo -n 'Testing large-max-page-size-strip ... ' Testing large-max-page-size-strip ... ++ t=out/test/elf/x86_64/large-max-page-size-strip ++ mkdir -p out/test/elf/x86_64/large-max-page-size-strip + '[' x86_64 = arm ']' + strip=strip + command -v strip + cat + cc -o out/test/elf/x86_64/large-max-page-size-strip/a.o -c -xc - -fPIC + cc -B. -o out/test/elf/x86_64/large-max-page-size-strip/exe out/test/elf/x86_64/large-max-page-size-strip/a.o -pie -Wl,-zmax-page-size=0x200000 + strip out/test/elf/x86_64/large-max-page-size-strip/exe + out/test/elf/x86_64/large-max-page-size-strip/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.85 sec ---------------------------------------------------------- Test Passed. "x86_64-large-max-page-size-strip" end time: Nov 13 20:02 CET "x86_64-large-max-page-size-strip" time elapsed: 00:00:00 ---------------------------------------------------------- 148/322 Testing: x86_64-large-alignment 148/322 Test: x86_64-large-alignment Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-alignment.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-large-alignment" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-alignment.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-alignment.sh .sh ++ testname=large-alignment ++ echo -n 'Testing large-alignment ... ' Testing large-alignment ... ++ t=out/test/elf/x86_64/large-alignment ++ mkdir -p out/test/elf/x86_64/large-alignment + '[' x86_64 = i386 ']' + cc -o out/test/elf/x86_64/large-alignment/a.o -c -xc - -ffunction-sections + cat + cc -B. -o out/test/elf/x86_64/large-alignment/exe out/test/elf/x86_64/large-alignment/a.o + grep -q 'Hello world' + out/test/elf/x86_64/large-alignment/exe + on_exit + echo OK OK + exit 0 Test time = 0.96 sec ---------------------------------------------------------- Test Passed. "x86_64-large-alignment" end time: Nov 13 20:02 CET "x86_64-large-alignment" time elapsed: 00:00:00 ---------------------------------------------------------- 142/322 Testing: x86_64-init 142/322 Test: x86_64-init Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/init.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-init" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/init.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/init.sh .sh ++ testname=init ++ echo -n 'Testing init ... ' Testing init ... ++ t=out/test/elf/x86_64/init ++ mkdir -p out/test/elf/x86_64/init + cat + cc -o out/test/elf/x86_64/init/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/init/exe out/test/elf/x86_64/init/a.o -Wl,-init,foo + readelf --dynamic out/test/elf/x86_64/init/exe + grep -Fq '(INIT)' + cc -B. -o out/test/elf/x86_64/init/exe out/test/elf/x86_64/init/a.o -Wl,-init,no-such-symbol + readelf --dynamic out/test/elf/x86_64/init/exe + grep -Fq '(INIT)' out/test/elf/x86_64/init/log + on_exit + echo OK OK + exit 0 Test time = 1.26 sec ---------------------------------------------------------- Test Passed. "x86_64-init" end time: Nov 13 20:02 CET "x86_64-init" time elapsed: 00:00:01 ---------------------------------------------------------- 158/322 Testing: x86_64-linker-script4 158/322 Test: x86_64-linker-script4 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script4.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-linker-script4" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script4.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script4.sh .sh ++ testname=linker-script4 ++ echo -n 'Testing linker-script4 ... ' Testing linker-script4 ... ++ t=out/test/elf/x86_64/linker-script4 ++ mkdir -p out/test/elf/x86_64/linker-script4 + echo 'VERSION { ver_x { global: *; }; };' + cat + cc -B. -shared -o out/test/elf/x86_64/linker-script4/c.so out/test/elf/x86_64/linker-script4/a.script out/test/elf/x86_64/linker-script4/b.s + readelf --version-info out/test/elf/x86_64/linker-script4/c.so + grep -Fq 'Rev: 1 Flags: none Index: 2 Cnt: 1 Name: ver_x' out/test/elf/x86_64/linker-script4/log + on_exit + echo OK OK + exit 0 Test time = 0.73 sec ---------------------------------------------------------- Test Passed. "x86_64-linker-script4" end time: Nov 13 20:02 CET "x86_64-linker-script4" time elapsed: 00:00:00 ---------------------------------------------------------- 141/322 Testing: x86_64-init-in-dso 141/322 Test: x86_64-init-in-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/init-in-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-init-in-dso" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/init-in-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/init-in-dso.sh .sh ++ testname=init-in-dso ++ echo -n 'Testing init-in-dso ... ' Testing init-in-dso ... ++ t=out/test/elf/x86_64/init-in-dso ++ mkdir -p out/test/elf/x86_64/init-in-dso + cat + cc -shared -o out/test/elf/x86_64/init-in-dso/a.so -xc - + cc -o out/test/elf/x86_64/init-in-dso/b.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/init-in-dso/exe out/test/elf/x86_64/init-in-dso/a.so out/test/elf/x86_64/init-in-dso/b.o -Wl,-init,foo + readelf --dynamic out/test/elf/x86_64/init-in-dso/exe + grep -Fq '(INIT)' out/test/elf/x86_64/init-in-dso/log + on_exit + echo OK OK + exit 0 Test time = 1.40 sec ---------------------------------------------------------- Test Passed. "x86_64-init-in-dso" end time: Nov 13 20:02 CET "x86_64-init-in-dso" time elapsed: 00:00:01 ---------------------------------------------------------- 164/322 Testing: x86_64-missing-but-ok 164/322 Test: x86_64-missing-but-ok Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/missing-but-ok.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-missing-but-ok" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/missing-but-ok.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/missing-but-ok.sh .sh ++ testname=missing-but-ok ++ echo -n 'Testing missing-but-ok ... ' Testing missing-but-ok ... ++ t=out/test/elf/x86_64/missing-but-ok ++ mkdir -p out/test/elf/x86_64/missing-but-ok + cc -o out/test/elf/x86_64/missing-but-ok/a.o -c -x assembler - + cat + ./mold -o out/test/elf/x86_64/missing-but-ok/exe out/test/elf/x86_64/missing-but-ok/a.o + on_exit + echo OK OK + exit 0 Test time = 0.54 sec ---------------------------------------------------------- Test Passed. "x86_64-missing-but-ok" end time: Nov 13 20:02 CET "x86_64-missing-but-ok" time elapsed: 00:00:00 ---------------------------------------------------------- 151/322 Testing: x86_64-large-text 151/322 Test: x86_64-large-text Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-text.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-large-text" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-text.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-text.sh .sh ++ testname=large-text ++ echo -n 'Testing large-text ... ' Testing large-text ... ++ t=out/test/elf/x86_64/large-text ++ mkdir -p out/test/elf/x86_64/large-text + cat + cc -o out/test/elf/x86_64/large-text/a.o -c -xassembler - + cat + cc -o out/test/elf/x86_64/large-text/b.o -c -xc - + cc -B. -o out/test/elf/x86_64/large-text/exe out/test/elf/x86_64/large-text/a.o out/test/elf/x86_64/large-text/b.o + out/test/elf/x86_64/large-text/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 1.18 sec ---------------------------------------------------------- Test Passed. "x86_64-large-text" end time: Nov 13 20:02 CET "x86_64-large-text" time elapsed: 00:00:01 ---------------------------------------------------------- 157/322 Testing: x86_64-linker-script3 157/322 Test: x86_64-linker-script3 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script3.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-linker-script3" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script3.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script3.sh .sh ++ testname=linker-script3 ++ echo -n 'Testing linker-script3 ... ' Testing linker-script3 ... ++ t=out/test/elf/x86_64/linker-script3 ++ mkdir -p out/test/elf/x86_64/linker-script3 + mkdir -p out/test/elf/x86_64/linker-script3/foo + cat + cc -o out/test/elf/x86_64/linker-script3/foo/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/linker-script3/exe -Lout/test/elf/x86_64/linker-script3/foo out/test/elf/x86_64/linker-script3/b.script + on_exit + echo OK OK + exit 0 Test time = 0.99 sec ---------------------------------------------------------- Test Passed. "x86_64-linker-script3" end time: Nov 13 20:02 CET "x86_64-linker-script3" time elapsed: 00:00:00 ---------------------------------------------------------- 165/322 Testing: x86_64-missing-error 165/322 Test: x86_64-missing-error Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/missing-error.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-missing-error" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/missing-error.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/missing-error.sh .sh ++ testname=missing-error ++ echo -n 'Testing missing-error ... ' Testing missing-error ... ++ t=out/test/elf/x86_64/missing-error ++ mkdir -p out/test/elf/x86_64/missing-error + cc -o out/test/elf/x86_64/missing-error/a.o -c -xc - + cat + ./mold -o out/test/elf/x86_64/missing-error/exe out/test/elf/x86_64/missing-error/a.o + grep -q 'undefined symbol: foo' out/test/elf/x86_64/missing-error/log + grep -q '>>> .*a\.o' out/test/elf/x86_64/missing-error/log + on_exit + echo OK OK + exit 0 Test time = 0.68 sec ---------------------------------------------------------- Test Passed. "x86_64-missing-error" end time: Nov 13 20:02 CET "x86_64-missing-error" time elapsed: 00:00:00 ---------------------------------------------------------- 156/322 Testing: x86_64-linker-script2 156/322 Test: x86_64-linker-script2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-linker-script2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script2.sh .sh ++ testname=linker-script2 ++ echo -n 'Testing linker-script2 ... ' Testing linker-script2 ... ++ t=out/test/elf/x86_64/linker-script2 ++ mkdir -p out/test/elf/x86_64/linker-script2 + cc -o out/test/elf/x86_64/linker-script2/a.o -c -xc - + cat + mkdir -p out/test/elf/x86_64/linker-script2/foo/bar + rm -f out/test/elf/x86_64/linker-script2/foo/bar/libfoo.a + ar rcs out/test/elf/x86_64/linker-script2/foo/bar/libfoo.a out/test/elf/x86_64/linker-script2/a.o + cat + cc -B. -o out/test/elf/x86_64/linker-script2/exe -Lout/test/elf/x86_64/linker-script2/foo/bar out/test/elf/x86_64/linker-script2/b.script + on_exit + echo OK OK + exit 0 Test time = 1.15 sec ---------------------------------------------------------- Test Passed. "x86_64-linker-script2" end time: Nov 13 20:02 CET "x86_64-linker-script2" time elapsed: 00:00:01 ---------------------------------------------------------- 147/322 Testing: x86_64-large-alignment-dso 147/322 Test: x86_64-large-alignment-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-alignment-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-large-alignment-dso" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-alignment-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/large-alignment-dso.sh .sh ++ testname=large-alignment-dso ++ echo -n 'Testing large-alignment-dso ... ' Testing large-alignment-dso ... ++ t=out/test/elf/x86_64/large-alignment-dso ++ mkdir -p out/test/elf/x86_64/large-alignment-dso + '[' x86_64 = i386 ']' + cat + cc -o out/test/elf/x86_64/large-alignment-dso/a.o -c -xc - -ffunction-sections -fPIC + cc -B. -o out/test/elf/x86_64/large-alignment-dso/b.so out/test/elf/x86_64/large-alignment-dso/a.o -shared + cat + cc -o out/test/elf/x86_64/large-alignment-dso/c.o -c -xc - + cc -B. -o out/test/elf/x86_64/large-alignment-dso/exe out/test/elf/x86_64/large-alignment-dso/c.o out/test/elf/x86_64/large-alignment-dso/b.so + out/test/elf/x86_64/large-alignment-dso/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 1.53 sec ---------------------------------------------------------- Test Passed. "x86_64-large-alignment-dso" end time: Nov 13 20:02 CET "x86_64-large-alignment-dso" time elapsed: 00:00:01 ---------------------------------------------------------- 146/322 Testing: x86_64-issue646 146/322 Test: x86_64-issue646 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/issue646.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-issue646" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/issue646.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/issue646.sh .sh ++ testname=issue646 ++ echo -n 'Testing issue646 ... ' Testing issue646 ... ++ t=out/test/elf/x86_64/issue646 ++ mkdir -p out/test/elf/x86_64/issue646 + '[' x86_64 = sh4 ']' + cat + c++ -o out/test/elf/x86_64/issue646/a.o -c -xc++ - + c++ -B. -o out/test/elf/x86_64/issue646/exe out/test/elf/x86_64/issue646/a.o + out/test/elf/x86_64/issue646/exe + grep -q 'error: exception' + on_exit + echo OK OK + exit 0 Test time = 1.62 sec ---------------------------------------------------------- Test Passed. "x86_64-issue646" end time: Nov 13 20:02 CET "x86_64-issue646" time elapsed: 00:00:01 ---------------------------------------------------------- 154/322 Testing: x86_64-linker-script-relocatable 154/322 Test: x86_64-linker-script-relocatable Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script-relocatable.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-linker-script-relocatable" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script-relocatable.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script-relocatable.sh .sh ++ testname=linker-script-relocatable ++ echo -n 'Testing linker-script-relocatable ... ' Testing linker-script-relocatable ... ++ t=out/test/elf/x86_64/linker-script-relocatable ++ mkdir -p out/test/elf/x86_64/linker-script-relocatable + nm mold + grep -q __tsan_init + cat + cc -c -o out/test/elf/x86_64/linker-script-relocatable/a.o -xc - + cat + cc -c -o out/test/elf/x86_64/linker-script-relocatable/b.o -xc - + echo 'INPUT(out/test/elf/x86_64/linker-script-relocatable/a.o out/test/elf/x86_64/linker-script-relocatable/b.o)' + ./mold --relocatable -o out/test/elf/x86_64/linker-script-relocatable/d.o out/test/elf/x86_64/linker-script-relocatable/c.script + cc -B. -o out/test/elf/x86_64/linker-script-relocatable/exe out/test/elf/x86_64/linker-script-relocatable/d.o + out/test/elf/x86_64/linker-script-relocatable/exe + grep -q Hello + on_exit + echo OK OK + exit 0 Test time = 1.49 sec ---------------------------------------------------------- Test Passed. "x86_64-linker-script-relocatable" end time: Nov 13 20:02 CET "x86_64-linker-script-relocatable" time elapsed: 00:00:01 ---------------------------------------------------------- 159/322 Testing: x86_64-lto-nostdlib 159/322 Test: x86_64-lto-nostdlib Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/lto-nostdlib.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-lto-nostdlib" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/lto-nostdlib.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/lto-nostdlib.sh .sh ++ testname=lto-nostdlib ++ echo -n 'Testing lto-nostdlib ... ' Testing lto-nostdlib ... ++ t=out/test/elf/x86_64/lto-nostdlib ++ mkdir -p out/test/elf/x86_64/lto-nostdlib + cat + cc -flto -c -o out/test/elf/x86_64/lto-nostdlib/a.o -xc - + cc -B. -o out/test/elf/x86_64/lto-nostdlib/exe -flto out/test/elf/x86_64/lto-nostdlib/a.o -nostdlib + grep -Eq ' _start' + readelf -Ws out/test/elf/x86_64/lto-nostdlib/exe + on_exit + echo OK OK + exit 0 Test time = 1.36 sec ---------------------------------------------------------- Test Passed. "x86_64-lto-nostdlib" end time: Nov 13 20:02 CET "x86_64-lto-nostdlib" time elapsed: 00:00:01 ---------------------------------------------------------- 153/322 Testing: x86_64-linker-script-defsym 153/322 Test: x86_64-linker-script-defsym Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script-defsym.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-linker-script-defsym" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script-defsym.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script-defsym.sh .sh ++ testname=linker-script-defsym ++ echo -n 'Testing linker-script-defsym ... ' Testing linker-script-defsym ... ++ t=out/test/elf/x86_64/linker-script-defsym ++ mkdir -p out/test/elf/x86_64/linker-script-defsym + cat + cc -o out/test/elf/x86_64/linker-script-defsym/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/linker-script-defsym/b.so -shared out/test/elf/x86_64/linker-script-defsym/script out/test/elf/x86_64/linker-script-defsym/a.o + readelf -sW out/test/elf/x86_64/linker-script-defsym/b.so + grep -q 'FUNC .* bar' + cat + cc -o out/test/elf/x86_64/linker-script-defsym/c.o -c -xc - + cc -B. -o out/test/elf/x86_64/linker-script-defsym/exe out/test/elf/x86_64/linker-script-defsym/c.o out/test/elf/x86_64/linker-script-defsym/b.so + out/test/elf/x86_64/linker-script-defsym/exe + grep -q 42 + on_exit + echo OK OK + exit 0 Test time = 1.66 sec ---------------------------------------------------------- Test Passed. "x86_64-linker-script-defsym" end time: Nov 13 20:02 CET "x86_64-linker-script-defsym" time elapsed: 00:00:01 ---------------------------------------------------------- 168/322 Testing: x86_64-no-eh-frame-header 168/322 Test: x86_64-no-eh-frame-header Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/no-eh-frame-header.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-no-eh-frame-header" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/no-eh-frame-header.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/no-eh-frame-header.sh .sh ++ testname=no-eh-frame-header ++ echo -n 'Testing no-eh-frame-header ... ' Testing no-eh-frame-header ... ++ t=out/test/elf/x86_64/no-eh-frame-header ++ mkdir -p out/test/elf/x86_64/no-eh-frame-header + cat + cc -o out/test/elf/x86_64/no-eh-frame-header/a.o -c -xc - + cc -B. -Wl,--no-eh-frame-hdr -Wl,--thread-count=1 -O0 -o out/test/elf/x86_64/no-eh-frame-header/exe out/test/elf/x86_64/no-eh-frame-header/a.o + readelf -WS out/test/elf/x86_64/no-eh-frame-header/exe + grep -F .eh_frame_hdr out/test/elf/x86_64/no-eh-frame-header/log + out/test/elf/x86_64/no-eh-frame-header/exe + on_exit + echo OK OK + exit 0 Test time = 0.95 sec ---------------------------------------------------------- Test Passed. "x86_64-no-eh-frame-header" end time: Nov 13 20:02 CET "x86_64-no-eh-frame-header" time elapsed: 00:00:00 ---------------------------------------------------------- 169/322 Testing: x86_64-no-quick-exit 169/322 Test: x86_64-no-quick-exit Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/no-quick-exit.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-no-quick-exit" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/no-quick-exit.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/no-quick-exit.sh .sh ++ testname=no-quick-exit ++ echo -n 'Testing no-quick-exit ... ' Testing no-quick-exit ... ++ t=out/test/elf/x86_64/no-quick-exit ++ mkdir -p out/test/elf/x86_64/no-quick-exit + cat + cc -o out/test/elf/x86_64/no-quick-exit/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/no-quick-exit/exe out/test/elf/x86_64/no-quick-exit/a.o -Wl,-no-quick-exit + + out/test/elf/x86_64/no-quick-exit/exe grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.96 sec ---------------------------------------------------------- Test Passed. "x86_64-no-quick-exit" end time: Nov 13 20:02 CET "x86_64-no-quick-exit" time elapsed: 00:00:00 ---------------------------------------------------------- 155/322 Testing: x86_64-linker-script 155/322 Test: x86_64-linker-script Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-linker-script" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/linker-script.sh .sh ++ testname=linker-script ++ echo -n 'Testing linker-script ... ' Testing linker-script ... ++ t=out/test/elf/x86_64/linker-script ++ mkdir -p out/test/elf/x86_64/linker-script + cat + cc -o out/test/elf/x86_64/linker-script/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/linker-script/exe out/test/elf/x86_64/linker-script/script + out/test/elf/x86_64/linker-script/exe + grep -q 'Hello world' + cc -B. -o out/test/elf/x86_64/linker-script/exe -Wl,-T,out/test/elf/x86_64/linker-script/script + out/test/elf/x86_64/linker-script/exe + grep -q 'Hello world' + cc -B. -o out/test/elf/x86_64/linker-script/exe -Wl,--script,out/test/elf/x86_64/linker-script/script + out/test/elf/x86_64/linker-script/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 1.73 sec ---------------------------------------------------------- Test Passed. "x86_64-linker-script" end time: Nov 13 20:02 CET "x86_64-linker-script" time elapsed: 00:00:01 ---------------------------------------------------------- 170/322 Testing: x86_64-no-undefined-version 170/322 Test: x86_64-no-undefined-version Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/no-undefined-version.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-no-undefined-version" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/no-undefined-version.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/no-undefined-version.sh .sh ++ testname=no-undefined-version ++ echo -n 'Testing no-undefined-version ... ' Testing no-undefined-version ... ++ t=out/test/elf/x86_64/no-undefined-version ++ mkdir -p out/test/elf/x86_64/no-undefined-version + echo 'ver_x { global: foo; };' + cc -o out/test/elf/x86_64/no-undefined-version/b.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/no-undefined-version/exe -Wl,--version-script,out/test/elf/x86_64/no-undefined-version/a.ver out/test/elf/x86_64/no-undefined-version/b.o + grep -Fq 'a.ver: cannot assign version `ver_x` to symbol `foo`: symbol not found' out/test/elf/x86_64/no-undefined-version/log + on_exit + echo OK OK + exit 0 Test time = 0.95 sec ---------------------------------------------------------- Test Passed. "x86_64-no-undefined-version" end time: Nov 13 20:02 CET "x86_64-no-undefined-version" time elapsed: 00:00:00 ---------------------------------------------------------- 167/322 Testing: x86_64-mold-wrapper2 167/322 Test: x86_64-mold-wrapper2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/mold-wrapper2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-mold-wrapper2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/mold-wrapper2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/mold-wrapper2.sh .sh ++ testname=mold-wrapper2 ++ echo -n 'Testing mold-wrapper2 ... ' Testing mold-wrapper2 ... ++ t=out/test/elf/x86_64/mold-wrapper2 ++ mkdir -p out/test/elf/x86_64/mold-wrapper2 + ldd mold-wrapper.so + grep -q libasan + nm mold + grep -q '__[at]san_init' + rm -rf out/test/elf/x86_64/mold-wrapper2 + mkdir -p out/test/elf/x86_64/mold-wrapper2/bin out/test/elf/x86_64/mold-wrapper2/lib/mold + cp mold out/test/elf/x86_64/mold-wrapper2/bin + cp mold-wrapper.so out/test/elf/x86_64/mold-wrapper2/bin + out/test/elf/x86_64/mold-wrapper2/bin/mold -run bash -c 'echo $LD_PRELOAD' + grep -q /bin/mold-wrapper.so + on_exit + echo OK OK + exit 0 Test time = 1.20 sec ---------------------------------------------------------- Test Passed. "x86_64-mold-wrapper2" end time: Nov 13 20:02 CET "x86_64-mold-wrapper2" time elapsed: 00:00:01 ---------------------------------------------------------- 174/322 Testing: x86_64-nostdlib 174/322 Test: x86_64-nostdlib Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/nostdlib.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-nostdlib" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/nostdlib.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/nostdlib.sh .sh ++ testname=nostdlib ++ echo -n 'Testing nostdlib ... ' Testing nostdlib ... ++ t=out/test/elf/x86_64/nostdlib ++ mkdir -p out/test/elf/x86_64/nostdlib + cat + cc -o out/test/elf/x86_64/nostdlib/a.o -c -xc - -fno-PIE + ./mold -o out/test/elf/x86_64/nostdlib/exe out/test/elf/x86_64/nostdlib/a.o + readelf -W --sections out/test/elf/x86_64/nostdlib/exe + grep -Fq ' .dynsym ' out/test/elf/x86_64/nostdlib/log + grep -Fq ' .dynstr ' out/test/elf/x86_64/nostdlib/log + on_exit + echo OK OK + exit 0 Test time = 0.80 sec ---------------------------------------------------------- Test Passed. "x86_64-nostdlib" end time: Nov 13 20:02 CET "x86_64-nostdlib" time elapsed: 00:00:00 ---------------------------------------------------------- 152/322 Testing: x86_64-link-order 152/322 Test: x86_64-link-order Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/link-order.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-link-order" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/link-order.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/link-order.sh .sh ++ testname=link-order ++ echo -n 'Testing link-order ... ' Testing link-order ... ++ t=out/test/elf/x86_64/link-order ++ mkdir -p out/test/elf/x86_64/link-order + cat + cc -fPIC -c -o out/test/elf/x86_64/link-order/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/link-order/libfoo.so out/test/elf/x86_64/link-order/a.o + ar crs out/test/elf/x86_64/link-order/libfoo.a out/test/elf/x86_64/link-order/a.o + + cc cat-c -o out/test/elf/x86_64/link-order/b.o -xc - + cc -B. -o out/test/elf/x86_64/link-order/exe out/test/elf/x86_64/link-order/b.o -Wl,--as-needed out/test/elf/x86_64/link-order/libfoo.so out/test/elf/x86_64/link-order/libfoo.a + readelf --dynamic out/test/elf/x86_64/link-order/exe + grep -q libfoo + cc -B. -o out/test/elf/x86_64/link-order/exe out/test/elf/x86_64/link-order/b.o -Wl,--as-needed out/test/elf/x86_64/link-order/libfoo.a out/test/elf/x86_64/link-order/libfoo.so + readelf --dynamic out/test/elf/x86_64/link-order/exe + grep -q libfoo + on_exit + echo OK OK + exit 0 Test time = 2.08 sec ---------------------------------------------------------- Test Passed. "x86_64-link-order" end time: Nov 13 20:02 CET "x86_64-link-order" time elapsed: 00:00:02 ---------------------------------------------------------- 99/322 Testing: x86_64-exception 99/322 Test: x86_64-exception Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exception.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-exception" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exception.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/exception.sh .sh ++ testname=exception ++ echo -n 'Testing exception ... ' Testing exception ... ++ t=out/test/elf/x86_64/exception ++ mkdir -p out/test/elf/x86_64/exception + '[' x86_64 = sh4 ']' + static= + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + static=-static + static='-static -pthread' + cat + c++ -c -o out/test/elf/x86_64/exception/b.o out/test/elf/x86_64/exception/a.cc -fPIC + c++ -c -o out/test/elf/x86_64/exception/c.o out/test/elf/x86_64/exception/a.cc -fno-PIC + c++ -B. -o out/test/elf/x86_64/exception/exe1 out/test/elf/x86_64/exception/b.o -static -pthread + out/test/elf/x86_64/exception/exe1 + c++ -B. -o out/test/elf/x86_64/exception/exe2 out/test/elf/x86_64/exception/c.o -no-pie -static -pthread + out/test/elf/x86_64/exception/exe2 + c++ -B. -o out/test/elf/x86_64/exception/exe3 out/test/elf/x86_64/exception/b.o -pie + out/test/elf/x86_64/exception/exe3 + c++ -B. -o out/test/elf/x86_64/exception/exe4 out/test/elf/x86_64/exception/c.o -no-pie + out/test/elf/x86_64/exception/exe4 + c++ -B. -o out/test/elf/x86_64/exception/exe5 out/test/elf/x86_64/exception/b.o -pie -Wl,--gc-sections + out/test/elf/x86_64/exception/exe5 + c++ -B. -o out/test/elf/x86_64/exception/exe6 out/test/elf/x86_64/exception/c.o -no-pie -static -pthread -Wl,--gc-sections + out/test/elf/x86_64/exception/exe6 + '[' x86_64 = x86_64 ']' + c++ -c -o out/test/elf/x86_64/exception/d.o out/test/elf/x86_64/exception/a.cc -mcmodel=large -fPIC + c++ -B. -o out/test/elf/x86_64/exception/exe7 out/test/elf/x86_64/exception/d.o -static -pthread + out/test/elf/x86_64/exception/exe7 + c++ -B. -o out/test/elf/x86_64/exception/exe8 out/test/elf/x86_64/exception/d.o -pie + out/test/elf/x86_64/exception/exe8 + '[' x86_64 = x86_64 -o x86_64 = aarch64 ']' + c++ -c -o out/test/elf/x86_64/exception/e.o out/test/elf/x86_64/exception/a.cc -mcmodel=large -fno-PIC + c++ -B. -o out/test/elf/x86_64/exception/exe9 out/test/elf/x86_64/exception/e.o -no-pie -static -pthread + out/test/elf/x86_64/exception/exe9 + c++ -B. -o out/test/elf/x86_64/exception/exe10 out/test/elf/x86_64/exception/e.o -no-pie + out/test/elf/x86_64/exception/exe10 + '[' x86_64 '!=' riscv32 ']' + c++ -B. -o out/test/elf/x86_64/exception/exe11 out/test/elf/x86_64/exception/b.o -pie + strip out/test/elf/x86_64/exception/exe11 + out/test/elf/x86_64/exception/exe11 + c++ -B. -o out/test/elf/x86_64/exception/exe12 out/test/elf/x86_64/exception/c.o -no-pie + strip out/test/elf/x86_64/exception/exe12 + out/test/elf/x86_64/exception/exe12 + on_exit + echo OK OK + exit 0 Test time = 4.36 sec ---------------------------------------------------------- Test Passed. "x86_64-exception" end time: Nov 13 20:02 CET "x86_64-exception" time elapsed: 00:00:04 ---------------------------------------------------------- 163/322 Testing: x86_64-mergeable-strings 163/322 Test: x86_64-mergeable-strings Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/mergeable-strings.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-mergeable-strings" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/mergeable-strings.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/mergeable-strings.sh .sh ++ testname=mergeable-strings ++ echo -n 'Testing mergeable-strings ... ' Testing mergeable-strings ... ++ t=out/test/elf/x86_64/mergeable-strings ++ mkdir -p out/test/elf/x86_64/mergeable-strings + cc -o out/test/elf/x86_64/mergeable-strings/a.o -c -xc - -O2 + cat + cat + cc -o out/test/elf/x86_64/mergeable-strings/b.o -c -xc - -O2 + cc -o out/test/elf/x86_64/mergeable-strings/exe1 out/test/elf/x86_64/mergeable-strings/a.o out/test/elf/x86_64/mergeable-strings/b.o -no-pie + out/test/elf/x86_64/mergeable-strings/exe1 + grep -Eq '^(\S+) \1 (\S+) \2 (\S+) \3 (\S+) \4$' + cc -B. -o out/test/elf/x86_64/mergeable-strings/exe2 out/test/elf/x86_64/mergeable-strings/a.o out/test/elf/x86_64/mergeable-strings/b.o -no-pie + out/test/elf/x86_64/mergeable-strings/exe2 + grep -Eq '^(\S+) \1 (\S+) \2 (\S+) \3 (\S+) \4$' + on_exit + echo OK OK + exit 0 Test time = 1.64 sec ---------------------------------------------------------- Test Passed. "x86_64-mergeable-strings" end time: Nov 13 20:02 CET "x86_64-mergeable-strings" time elapsed: 00:00:01 ---------------------------------------------------------- 176/322 Testing: x86_64-oformat-binary 176/322 Test: x86_64-oformat-binary Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/oformat-binary.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-oformat-binary" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/oformat-binary.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/oformat-binary.sh .sh ++ testname=oformat-binary ++ echo -n 'Testing oformat-binary ... ' Testing oformat-binary ... ++ t=out/test/elf/x86_64/oformat-binary ++ mkdir -p out/test/elf/x86_64/oformat-binary + cat + cc -o out/test/elf/x86_64/oformat-binary/a.o -c -xc - -fno-PIE + ./mold -o out/test/elf/x86_64/oformat-binary/exe out/test/elf/x86_64/oformat-binary/a.o --oformat=binary -Ttext=0x4000 -Map=out/test/elf/x86_64/oformat-binary/map + grep -Eq '^\s+0x4000\s+[0-9]+\s+[0-9]+\s+\.text$' out/test/elf/x86_64/oformat-binary/map + grep -Fq .strtab out/test/elf/x86_64/oformat-binary/map + grep -Fq .shstrtab out/test/elf/x86_64/oformat-binary/map + grep -Fq .symtab out/test/elf/x86_64/oformat-binary/map + grep -Fq .comment out/test/elf/x86_64/oformat-binary/map + on_exit + echo OK OK + exit 0 Test time = 0.88 sec ---------------------------------------------------------- Test Passed. "x86_64-oformat-binary" end time: Nov 13 20:02 CET "x86_64-oformat-binary" time elapsed: 00:00:00 ---------------------------------------------------------- 179/322 Testing: x86_64-package-metadata 179/322 Test: x86_64-package-metadata Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/package-metadata.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-package-metadata" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/package-metadata.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/package-metadata.sh .sh ++ testname=package-metadata ++ echo -n 'Testing package-metadata ... ' Testing package-metadata ... ++ t=out/test/elf/x86_64/package-metadata ++ mkdir -p out/test/elf/x86_64/package-metadata + cat + cc -o out/test/elf/x86_64/package-metadata/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/package-metadata/exe out/test/elf/x86_64/package-metadata/a.o '-Wl,-package-metadata={"foo":"bar"}' + readelf -x .note.package out/test/elf/x86_64/package-metadata/exe + grep -Fq '{"foo":"bar"}' + on_exit + echo OK OK + exit 0 Test time = 0.86 sec ---------------------------------------------------------- Test Passed. "x86_64-package-metadata" end time: Nov 13 20:02 CET "x86_64-package-metadata" time elapsed: 00:00:00 ---------------------------------------------------------- 175/322 Testing: x86_64-now 175/322 Test: x86_64-now Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/now.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-now" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/now.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/now.sh .sh ++ testname=now ++ echo -n 'Testing now ... ' Testing now ... ++ t=out/test/elf/x86_64/now ++ mkdir -p out/test/elf/x86_64/now + cc -c -fPIC -o out/test/elf/x86_64/now/a.o -xc - + cat + cc -B. -shared -o out/test/elf/x86_64/now/b.so out/test/elf/x86_64/now/a.o -Wl,-z,now + readelf --dynamic out/test/elf/x86_64/now/b.so + grep -q 'Flags: NOW' + cc -B. -shared -o out/test/elf/x86_64/now/b.so out/test/elf/x86_64/now/a.o -Wl,-z,now,-z,lazy + readelf --dynamic out/test/elf/x86_64/now/b.so + grep -q 'Flags: NOW' out/test/elf/x86_64/now/log + on_exit + echo OK OK + exit 0 Test time = 1.20 sec ---------------------------------------------------------- Test Passed. "x86_64-now" end time: Nov 13 20:02 CET "x86_64-now" time elapsed: 00:00:01 ---------------------------------------------------------- 166/322 Testing: x86_64-mold-wrapper 166/322 Test: x86_64-mold-wrapper Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/mold-wrapper.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-mold-wrapper" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/mold-wrapper.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/mold-wrapper.sh .sh ++ testname=mold-wrapper ++ echo -n 'Testing mold-wrapper ... ' Testing mold-wrapper ... ++ t=out/test/elf/x86_64/mold-wrapper ++ mkdir -p out/test/elf/x86_64/mold-wrapper + '[' cc = cc ']' + ldd mold-wrapper.so + grep -q libasan + nm mold + grep -q '__[at]san_init' + cat + chmod 755 out/test/elf/x86_64/mold-wrapper/a.sh + cat + cc -xc -o out/test/elf/x86_64/mold-wrapper/exe - + grep -q 'a.sh execl' ++ pwd + LD_PRELOAD='/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/mold-wrapper.so libsandbox.so' + MOLD_PATH=out/test/elf/x86_64/mold-wrapper/a.sh + out/test/elf/x86_64/mold-wrapper/exe execl + grep -q 'a.sh execlp' ++ pwd + LD_PRELOAD='/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/mold-wrapper.so libsandbox.so' + MOLD_PATH=out/test/elf/x86_64/mold-wrapper/a.sh + out/test/elf/x86_64/mold-wrapper/exe execlp + grep -q 'a.sh execle' ++ pwd + LD_PRELOAD='/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/mold-wrapper.so libsandbox.so' + MOLD_PATH=out/test/elf/x86_64/mold-wrapper/a.sh + out/test/elf/x86_64/mold-wrapper/exe execle + grep -q 'a.sh execv' ++ pwd + LD_PRELOAD='/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/mold-wrapper.so libsandbox.so' + MOLD_PATH=out/test/elf/x86_64/mold-wrapper/a.sh + out/test/elf/x86_64/mold-wrapper/exe execv ++ pwd + LD_PRELOAD='/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/mold-wrapper.so libsandbox.so' + MOLD_PATH=out/test/elf/x86_64/mold-wrapper/a.sh + out/test/elf/x86_64/mold-wrapper/exe execvp + grep -q 'a.sh execvp' ++ pwd + LD_PRELOAD='/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/mold-wrapper.so libsandbox.so' + MOLD_PATH=out/test/elf/x86_64/mold-wrapper/a.sh + out/test/elf/x86_64/mold-wrapper/exe execvpe + grep -q 'a.sh execvpe bar' + on_exit + echo OK OK + exit 0 Test time = 1.79 sec ---------------------------------------------------------- Test Passed. "x86_64-mold-wrapper" end time: Nov 13 20:02 CET "x86_64-mold-wrapper" time elapsed: 00:00:01 ---------------------------------------------------------- 160/322 Testing: x86_64-main-in-dso 160/322 Test: x86_64-main-in-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/main-in-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-main-in-dso" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/main-in-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/main-in-dso.sh .sh ++ testname=main-in-dso ++ echo -n 'Testing main-in-dso ... ' Testing main-in-dso ... ++ t=out/test/elf/x86_64/main-in-dso ++ mkdir -p out/test/elf/x86_64/main-in-dso + cat + cc -o out/test/elf/x86_64/main-in-dso/a.o -c -xc - -fPIC + cc -B. -shared -o out/test/elf/x86_64/main-in-dso/b.so out/test/elf/x86_64/main-in-dso/a.o + cc -o out/test/elf/x86_64/main-in-dso/c.o -c -xc /dev/null -fPIC + cc -B. -o out/test/elf/x86_64/main-in-dso/exe1 out/test/elf/x86_64/main-in-dso/c.o out/test/elf/x86_64/main-in-dso/b.so -pie + out/test/elf/x86_64/main-in-dso/exe1 + grep -q 'Hello world' + cc -o out/test/elf/x86_64/main-in-dso/c.o -c -xc /dev/null -fno-PIC + cc -B. -o out/test/elf/x86_64/main-in-dso/exe2 out/test/elf/x86_64/main-in-dso/c.o out/test/elf/x86_64/main-in-dso/b.so -no-pie + out/test/elf/x86_64/main-in-dso/exe2 + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 2.23 sec ---------------------------------------------------------- Test Passed. "x86_64-main-in-dso" end time: Nov 13 20:02 CET "x86_64-main-in-dso" time elapsed: 00:00:02 ---------------------------------------------------------- 177/322 Testing: x86_64-omagic 177/322 Test: x86_64-omagic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/omagic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-omagic" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/omagic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/omagic.sh .sh ++ testname=omagic ++ echo -n 'Testing omagic ... ' Testing omagic ... ++ t=out/test/elf/x86_64/omagic ++ mkdir -p out/test/elf/x86_64/omagic + test_cflags -static + cc -static -o /dev/null -xc - + echo 'int main() {}' + cc -c -o out/test/elf/x86_64/omagic/a.o -xc - -fno-PIC + cat + cc -B. out/test/elf/x86_64/omagic/a.o -o out/test/elf/x86_64/omagic/exe -static -Wl,--omagic + readelf -W --segments out/test/elf/x86_64/omagic/exe + grep -qw RWE + on_exit + echo OK OK + exit 0 Test time = 1.21 sec ---------------------------------------------------------- Test Passed. "x86_64-omagic" end time: Nov 13 20:02 CET "x86_64-omagic" time elapsed: 00:00:01 ---------------------------------------------------------- 172/322 Testing: x86_64-noinhibit-exec 172/322 Test: x86_64-noinhibit-exec Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/noinhibit-exec.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-noinhibit-exec" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/noinhibit-exec.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/noinhibit-exec.sh .sh ++ testname=noinhibit-exec ++ echo -n 'Testing noinhibit-exec ... ' Testing noinhibit-exec ... ++ t=out/test/elf/x86_64/noinhibit-exec ++ mkdir -p out/test/elf/x86_64/noinhibit-exec + cat + cc -o out/test/elf/x86_64/noinhibit-exec/a.o -c -xc - -fno-PIC + cc -B. -shared -o out/test/elf/x86_64/noinhibit-exec/b.so out/test/elf/x86_64/noinhibit-exec/a.o + cc -B. -o out/test/elf/x86_64/noinhibit-exec/b.so out/test/elf/x86_64/noinhibit-exec/a.o -Wl,-require-defined=no-such-sym + grep -q 'undefined symbol: no-such-sym' out/test/elf/x86_64/noinhibit-exec/log1 + cc -B. -shared -o out/test/elf/x86_64/noinhibit-exec/b.o out/test/elf/x86_64/noinhibit-exec/a.o -Wl,-require-defined=no-such-sym -Wl,-noinhibit-exec + grep -q 'undefined symbol: no-such-sym' out/test/elf/x86_64/noinhibit-exec/log2 + on_exit + echo OK OK + exit 0 Test time = 1.50 sec ---------------------------------------------------------- Test Passed. "x86_64-noinhibit-exec" end time: Nov 13 20:02 CET "x86_64-noinhibit-exec" time elapsed: 00:00:01 ---------------------------------------------------------- 181/322 Testing: x86_64-pie 181/322 Test: x86_64-pie Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/pie.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-pie" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/pie.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/pie.sh .sh ++ testname=pie ++ echo -n 'Testing pie ... ' Testing pie ... ++ t=out/test/elf/x86_64/pie ++ mkdir -p out/test/elf/x86_64/pie + cat + cc -o out/test/elf/x86_64/pie/a.o -c -xc -fPIE - + cc -B. -pie -o out/test/elf/x86_64/pie/exe out/test/elf/x86_64/pie/a.o + readelf --file-header out/test/elf/x86_64/pie/exe + grep -q -E '(Shared object file|Position-Independent Executable file)' + out/test/elf/x86_64/pie/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.90 sec ---------------------------------------------------------- Test Passed. "x86_64-pie" end time: Nov 13 20:02 CET "x86_64-pie" time elapsed: 00:00:00 ---------------------------------------------------------- 171/322 Testing: x86_64-nocopyreloc 171/322 Test: x86_64-nocopyreloc Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/nocopyreloc.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-nocopyreloc" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/nocopyreloc.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/nocopyreloc.sh .sh ++ testname=nocopyreloc ++ echo -n 'Testing nocopyreloc ... ' Testing nocopyreloc ... ++ t=out/test/elf/x86_64/nocopyreloc ++ mkdir -p out/test/elf/x86_64/nocopyreloc + '[' x86_64 = i386 ']' + '[' x86_64 = m68k ']' + '[' x86_64 = arm ']' + '[' x86_64 = ppc64 ']' + '[' x86_64 = ppc64le ']' + '[' x86_64 = sh4 ']' + '[' x86_64 = alpha ']' + [[ x86_64 = loongarch* ]] + cc -shared -o out/test/elf/x86_64/nocopyreloc/a.so -xc - + cat + cat + cc -fno-PIC -c -o out/test/elf/x86_64/nocopyreloc/b.o -xc - + cc -B. -no-pie -o out/test/elf/x86_64/nocopyreloc/exe out/test/elf/x86_64/nocopyreloc/a.so out/test/elf/x86_64/nocopyreloc/b.o + out/test/elf/x86_64/nocopyreloc/exe + grep -q '3 5' + cc -B. -o out/test/elf/x86_64/nocopyreloc/exe out/test/elf/x86_64/nocopyreloc/a.so out/test/elf/x86_64/nocopyreloc/b.o -no-pie -Wl,-z,nocopyreloc + grep -q 'recompile with -fPIC' out/test/elf/x86_64/nocopyreloc/log + on_exit + echo OK OK + exit 0 Test time = 1.62 sec ---------------------------------------------------------- Test Passed. "x86_64-nocopyreloc" end time: Nov 13 20:02 CET "x86_64-nocopyreloc" time elapsed: 00:00:01 ---------------------------------------------------------- 185/322 Testing: x86_64-print-dependencies 185/322 Test: x86_64-print-dependencies Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/print-dependencies.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-print-dependencies" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/print-dependencies.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/print-dependencies.sh .sh ++ testname=print-dependencies ++ echo -n 'Testing print-dependencies ... ' Testing print-dependencies ... ++ t=out/test/elf/x86_64/print-dependencies ++ mkdir -p out/test/elf/x86_64/print-dependencies + cat + cc -o out/test/elf/x86_64/print-dependencies/a.o -c -xc - + cat + cc -o out/test/elf/x86_64/print-dependencies/b.o -c -xc - + cc -B. -o out/test/elf/x86_64/print-dependencies/exe out/test/elf/x86_64/print-dependencies/a.o out/test/elf/x86_64/print-dependencies/b.o -Wl,--print-dependencies + grep -q 'b\.o.*a\.o.*foo$' out/test/elf/x86_64/print-dependencies/log + on_exit + echo OK OK + exit 0 Test time = 0.83 sec ---------------------------------------------------------- Test Passed. "x86_64-print-dependencies" end time: Nov 13 20:02 CET "x86_64-print-dependencies" time elapsed: 00:00:00 ---------------------------------------------------------- 180/322 Testing: x86_64-physical-image-base 180/322 Test: x86_64-physical-image-base Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/physical-image-base.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-physical-image-base" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/physical-image-base.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/physical-image-base.sh .sh ++ testname=physical-image-base ++ echo -n 'Testing physical-image-base ... ' Testing physical-image-base ... ++ t=out/test/elf/x86_64/physical-image-base ++ mkdir -p out/test/elf/x86_64/physical-image-base + '[' x86_64 = ppc64 ']' + grep --version + grep BusyBox + cat + cc -o out/test/elf/x86_64/physical-image-base/a.o -c -xc - + cc -B. -no-pie -o out/test/elf/x86_64/physical-image-base/exe1 out/test/elf/x86_64/physical-image-base/a.o -Wl,--image-base=0x200000 -Wl,--physical-image-base=0x800000 + out/test/elf/x86_64/physical-image-base/exe1 + grep -q 'Hello world' + grep -Eq 'LOAD\s+0x000000 0x0*200000 0x0*800000' + readelf -W --segments out/test/elf/x86_64/physical-image-base/exe1 + + readelf grep -Ws -q out/test/elf/x86_64/physical-image-base/exe1__phys_start_foo + cc -B. -no-pie -o out/test/elf/x86_64/physical-image-base/exe2 out/test/elf/x86_64/physical-image-base/a.o -Wl,--physical-image-base=0x800000 '-Wl,--section-order==0x800000 TEXT RODATA =0x900000 DATA BSS' + readelf -W --segments out/test/elf/x86_64/physical-image-base/exe2 + grep -Eq 'LOAD\s+\S+\s+(\S+)\s\1.*R E 0' + readelf -W --segments out/test/elf/x86_64/physical-image-base/exe2 + grep -Eq 'LOAD\s+\S+\s+(\S+)\s\1.*R 0' + on_exit + echo OK OK + exit 0 Test time = 1.16 sec ---------------------------------------------------------- Test Passed. "x86_64-physical-image-base" end time: Nov 13 20:02 CET "x86_64-physical-image-base" time elapsed: 00:00:01 ---------------------------------------------------------- 173/322 Testing: x86_64-non-canonical-plt 173/322 Test: x86_64-non-canonical-plt Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/non-canonical-plt.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-non-canonical-plt" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/non-canonical-plt.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/non-canonical-plt.sh .sh ++ testname=non-canonical-plt ++ echo -n 'Testing non-canonical-plt ... ' Testing non-canonical-plt ... ++ t=out/test/elf/x86_64/non-canonical-plt ++ mkdir -p out/test/elf/x86_64/non-canonical-plt + cat + cc -o out/test/elf/x86_64/non-canonical-plt/a.so -fPIC -shared -xc - + cat + cc -o out/test/elf/x86_64/non-canonical-plt/b.o -c -xc - -fPIC + cc -o out/test/elf/x86_64/non-canonical-plt/c.o -c -xc - -fPIC + cat + cc -B. -no-pie -o out/test/elf/x86_64/non-canonical-plt/exe out/test/elf/x86_64/non-canonical-plt/a.so out/test/elf/x86_64/non-canonical-plt/b.o out/test/elf/x86_64/non-canonical-plt/c.o + out/test/elf/x86_64/non-canonical-plt/exe + grep -q '^1 1 1$' + readelf --dyn-syms out/test/elf/x86_64/non-canonical-plt/exe + grep -q '00000000 .* foo' + readelf --dyn-syms out/test/elf/x86_64/non-canonical-plt/exe + grep -q '00000000 .* bar' + on_exit + echo OK OK + exit 0 Test time = 1.62 sec ---------------------------------------------------------- Test Passed. "x86_64-non-canonical-plt" end time: Nov 13 20:02 CET "x86_64-non-canonical-plt" time elapsed: 00:00:01 ---------------------------------------------------------- 184/322 Testing: x86_64-preinit-array 184/322 Test: x86_64-preinit-array Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/preinit-array.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-preinit-array" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/preinit-array.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/preinit-array.sh .sh ++ testname=preinit-array ++ echo -n 'Testing preinit-array ... ' Testing preinit-array ... ++ t=out/test/elf/x86_64/preinit-array ++ mkdir -p out/test/elf/x86_64/preinit-array + cat + cc -o out/test/elf/x86_64/preinit-array/a.o -c -xc - + ./mold -o out/test/elf/x86_64/preinit-array/exe1 out/test/elf/x86_64/preinit-array/a.o + readelf -W --dynamic out/test/elf/x86_64/preinit-array/exe1 + grep -q PREINIT_ARRAY out/test/elf/x86_64/preinit-array/log1 + cc -o out/test/elf/x86_64/preinit-array/b.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/preinit-array/exe2 out/test/elf/x86_64/preinit-array/b.o + readelf -W --dynamic out/test/elf/x86_64/preinit-array/exe2 + grep -q PREINIT_ARRAY + on_exit + echo OK OK + exit 0 Test time = 0.94 sec ---------------------------------------------------------- Test Passed. "x86_64-preinit-array" end time: Nov 13 20:02 CET "x86_64-preinit-array" time elapsed: 00:00:00 ---------------------------------------------------------- 178/322 Testing: x86_64-pack-dyn-relocs-relr 178/322 Test: x86_64-pack-dyn-relocs-relr Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/pack-dyn-relocs-relr.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-pack-dyn-relocs-relr" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/pack-dyn-relocs-relr.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/pack-dyn-relocs-relr.sh .sh ++ testname=pack-dyn-relocs-relr ++ echo -n 'Testing pack-dyn-relocs-relr ... ' Testing pack-dyn-relocs-relr ... ++ t=out/test/elf/x86_64/pack-dyn-relocs-relr ++ mkdir -p out/test/elf/x86_64/pack-dyn-relocs-relr + '[' x86_64 = m68k ']' + '[' x86_64 = ppc ']' + command -v llvm-readelf + cat + cc -o out/test/elf/x86_64/pack-dyn-relocs-relr/a.o -fPIC -c -xc - + cc -B. -o out/test/elf/x86_64/pack-dyn-relocs-relr/exe1 out/test/elf/x86_64/pack-dyn-relocs-relr/a.o -pie + llvm-readelf -r out/test/elf/x86_64/pack-dyn-relocs-relr/exe1 + grep RELATIVE + wc -l + cc -B. -o out/test/elf/x86_64/pack-dyn-relocs-relr/exe2 out/test/elf/x86_64/pack-dyn-relocs-relr/a.o -pie -Wl,-pack-dyn-relocs=relr + llvm-readelf -r out/test/elf/x86_64/pack-dyn-relocs-relr/exe2 + grep RELATIVE + wc -l + diff out/test/elf/x86_64/pack-dyn-relocs-relr/log1 out/test/elf/x86_64/pack-dyn-relocs-relr/log2 + llvm-readelf --dynamic out/test/elf/x86_64/pack-dyn-relocs-relr/exe2 + grep -wq RELR out/test/elf/x86_64/pack-dyn-relocs-relr/log3 + grep -wq RELRSZ out/test/elf/x86_64/pack-dyn-relocs-relr/log3 + grep -wq RELRENT out/test/elf/x86_64/pack-dyn-relocs-relr/log3 + on_exit + echo OK OK + exit 0 Test time = 1.39 sec ---------------------------------------------------------- Test Passed. "x86_64-pack-dyn-relocs-relr" end time: Nov 13 20:02 CET "x86_64-pack-dyn-relocs-relr" time elapsed: 00:00:01 ---------------------------------------------------------- 183/322 Testing: x86_64-pltgot 183/322 Test: x86_64-pltgot Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/pltgot.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-pltgot" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/pltgot.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/pltgot.sh .sh ++ testname=pltgot ++ echo -n 'Testing pltgot ... ' Testing pltgot ... ++ t=out/test/elf/x86_64/pltgot ++ mkdir -p out/test/elf/x86_64/pltgot + cat + cc -o out/test/elf/x86_64/pltgot/a.o -c -xc - -fPIC + cc -B. -shared -o out/test/elf/x86_64/pltgot/b.so out/test/elf/x86_64/pltgot/a.o + cat + cc -o out/test/elf/x86_64/pltgot/c.o -c -xc - -fPIC + cc -B. -o out/test/elf/x86_64/pltgot/exe out/test/elf/x86_64/pltgot/c.o out/test/elf/x86_64/pltgot/b.so + out/test/elf/x86_64/pltgot/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 1.03 sec ---------------------------------------------------------- Test Passed. "x86_64-pltgot" end time: Nov 13 20:02 CET "x86_64-pltgot" time elapsed: 00:00:01 ---------------------------------------------------------- 182/322 Testing: x86_64-plt-dso 182/322 Test: x86_64-plt-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/plt-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-plt-dso" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/plt-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/plt-dso.sh .sh ++ testname=plt-dso ++ echo -n 'Testing plt-dso ... ' Testing plt-dso ... ++ t=out/test/elf/x86_64/plt-dso ++ mkdir -p out/test/elf/x86_64/plt-dso + cat + cc -fPIC -c -o out/test/elf/x86_64/plt-dso/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/plt-dso/b.so out/test/elf/x86_64/plt-dso/a.o + cc -c -o out/test/elf/x86_64/plt-dso/c.o -xc - + cat + cc -B. -o out/test/elf/x86_64/plt-dso/exe -Wl,-rpath=out/test/elf/x86_64/plt-dso out/test/elf/x86_64/plt-dso/c.o out/test/elf/x86_64/plt-dso/b.so + out/test/elf/x86_64/plt-dso/exe + grep -q 'Hello WORLD' + on_exit + echo OK OK + exit 0 Test time = 1.08 sec ---------------------------------------------------------- Test Passed. "x86_64-plt-dso" end time: Nov 13 20:02 CET "x86_64-plt-dso" time elapsed: 00:00:01 ---------------------------------------------------------- 186/322 Testing: x86_64-protected-dynsym 186/322 Test: x86_64-protected-dynsym Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/protected-dynsym.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-protected-dynsym" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/protected-dynsym.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/protected-dynsym.sh .sh ++ testname=protected-dynsym ++ echo -n 'Testing protected-dynsym ... ' Testing protected-dynsym ... ++ t=out/test/elf/x86_64/protected-dynsym ++ mkdir -p out/test/elf/x86_64/protected-dynsym + cat + cc -fPIC -c -o out/test/elf/x86_64/protected-dynsym/a.o -xc - + cat + cc -fPIC -c -o out/test/elf/x86_64/protected-dynsym/b.o -fcommon -xc - + cc -B. -shared -o out/test/elf/x86_64/protected-dynsym/c.so out/test/elf/x86_64/protected-dynsym/a.o out/test/elf/x86_64/protected-dynsym/b.o -Wl,-strip-all + readelf --symbols out/test/elf/x86_64/protected-dynsym/c.so + grep -Eq 'PROTECTED\b.*\bfoo\b' + cat + cc -fPIC -c -o out/test/elf/x86_64/protected-dynsym/d.o -fno-common -xc - + cc -B. -shared -o out/test/elf/x86_64/protected-dynsym/e.so out/test/elf/x86_64/protected-dynsym/a.o out/test/elf/x86_64/protected-dynsym/d.o -Wl,-strip-all + readelf --symbols out/test/elf/x86_64/protected-dynsym/e.so + grep -Eq 'PROTECTED\b.*\bfoo\b' + on_exit + echo OK OK + exit 0 Test time = 0.93 sec ---------------------------------------------------------- Test Passed. "x86_64-protected-dynsym" end time: Nov 13 20:02 CET "x86_64-protected-dynsym" time elapsed: 00:00:00 ---------------------------------------------------------- 161/322 Testing: x86_64-many-sections 161/322 Test: x86_64-many-sections Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/many-sections.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-many-sections" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/many-sections.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/many-sections.sh .sh ++ testname=many-sections ++ echo -n 'Testing many-sections ... ' Testing many-sections ... ++ t=out/test/elf/x86_64/many-sections ++ mkdir -p out/test/elf/x86_64/many-sections + seq 1 100000 + sed 's/.*/.section .data.\0,"aw"\n.word 0\n/g' + cc -c -xassembler -o out/test/elf/x86_64/many-sections/a.o - + cat + cc -c -xc -o out/test/elf/x86_64/many-sections/b.o - + cc -B. -o out/test/elf/x86_64/many-sections/exe out/test/elf/x86_64/many-sections/a.o out/test/elf/x86_64/many-sections/b.o + out/test/elf/x86_64/many-sections/exe + grep -q Hello + on_exit + echo OK OK + exit 0 Test time = 2.55 sec ---------------------------------------------------------- Test Passed. "x86_64-many-sections" end time: Nov 13 20:02 CET "x86_64-many-sections" time elapsed: 00:00:02 ---------------------------------------------------------- 162/322 Testing: x86_64-many-sections2 162/322 Test: x86_64-many-sections2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/many-sections2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-many-sections2" start time: Nov 13 20:02 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/many-sections2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/many-sections2.sh .sh ++ testname=many-sections2 ++ echo -n 'Testing many-sections2 ... ' Testing many-sections2 ... ++ t=out/test/elf/x86_64/many-sections2 ++ mkdir -p out/test/elf/x86_64/many-sections2 + nm mold + grep -q __tsan_init + echo 'foo = 0x1000' + sed 's/.*/.section .data.\0,"aw"\n.globl x\0\nx\0: .word 0\n/g' + seq 1 100000 + cc -c -xassembler -o out/test/elf/x86_64/many-sections2/a.o out/test/elf/x86_64/many-sections2/a.s + ./mold --relocatable -o out/test/elf/x86_64/many-sections2/b.o out/test/elf/x86_64/many-sections2/a.o + readelf -WS out/test/elf/x86_64/many-sections2/b.o + grep -Fq .data.100000 out/test/elf/x86_64/many-sections2/log1 + readelf -Ws out/test/elf/x86_64/many-sections2/b.o + grep -Fq 'GLOBAL DEFAULT 100000' out/test/elf/x86_64/many-sections2/log2 + grep -Fq 'ABS foo' out/test/elf/x86_64/many-sections2/log2 + grep -Fq 'ABS x68966' out/test/elf/x86_64/many-sections2/log2 + on_exit + echo OK OK + exit 0 Test time = 3.50 sec ---------------------------------------------------------- Test Passed. "x86_64-many-sections2" end time: Nov 13 20:02 CET "x86_64-many-sections2" time elapsed: 00:00:03 ---------------------------------------------------------- 187/322 Testing: x86_64-protected 187/322 Test: x86_64-protected Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/protected.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-protected" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/protected.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/protected.sh .sh ++ testname=protected ++ echo -n 'Testing protected ... ' Testing protected ... ++ t=out/test/elf/x86_64/protected ++ mkdir -p out/test/elf/x86_64/protected + cat + cc -fPIC -c -o out/test/elf/x86_64/protected/a.o -xc - + cc -B. -o out/test/elf/x86_64/protected/b.so -shared out/test/elf/x86_64/protected/a.o + cat + cc -c -o out/test/elf/x86_64/protected/c.o -xc - -fno-PIE + cc -B. -no-pie -o out/test/elf/x86_64/protected/exe out/test/elf/x86_64/protected/c.o out/test/elf/x86_64/protected/b.so + out/test/elf/x86_64/protected/exe + grep -q '3 4 0' + on_exit + echo OK OK + exit 0 Test time = 0.17 sec ---------------------------------------------------------- Test Passed. "x86_64-protected" end time: Nov 13 20:03 CET "x86_64-protected" time elapsed: 00:00:00 ---------------------------------------------------------- 188/322 Testing: x86_64-push-pop-state 188/322 Test: x86_64-push-pop-state Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/push-pop-state.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-push-pop-state" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/push-pop-state.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/push-pop-state.sh .sh ++ testname=push-pop-state ++ echo -n 'Testing push-pop-state ... ' Testing push-pop-state ... ++ t=out/test/elf/x86_64/push-pop-state ++ mkdir -p out/test/elf/x86_64/push-pop-state + cat + cc -shared -o out/test/elf/x86_64/push-pop-state/a.so -xc - + cat + cc -shared -o out/test/elf/x86_64/push-pop-state/b.so -xc - + cat + cc -c -o out/test/elf/x86_64/push-pop-state/c.o -xc - + cc -B. -o out/test/elf/x86_64/push-pop-state/exe out/test/elf/x86_64/push-pop-state/c.o -Wl,-as-needed -Wl,-push-state -Wl,-no-as-needed out/test/elf/x86_64/push-pop-state/a.so -Wl,-pop-state out/test/elf/x86_64/push-pop-state/b.so + readelf --dynamic out/test/elf/x86_64/push-pop-state/exe + grep -Fq a.so out/test/elf/x86_64/push-pop-state/log + grep -Fq b.so out/test/elf/x86_64/push-pop-state/log + on_exit + echo OK OK + exit 0 Test time = 0.21 sec ---------------------------------------------------------- Test Passed. "x86_64-push-pop-state" end time: Nov 13 20:03 CET "x86_64-push-pop-state" time elapsed: 00:00:00 ---------------------------------------------------------- 192/322 Testing: x86_64-reloc-rodata 192/322 Test: x86_64-reloc-rodata Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/reloc-rodata.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-reloc-rodata" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/reloc-rodata.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/reloc-rodata.sh .sh ++ testname=reloc-rodata ++ echo -n 'Testing reloc-rodata ... ' Testing reloc-rodata ... ++ t=out/test/elf/x86_64/reloc-rodata ++ mkdir -p out/test/elf/x86_64/reloc-rodata + exit + on_exit + echo OK OK + exit 0 Test time = 0.04 sec ---------------------------------------------------------- Test Passed. "x86_64-reloc-rodata" end time: Nov 13 20:03 CET "x86_64-reloc-rodata" time elapsed: 00:00:00 ---------------------------------------------------------- 191/322 Testing: x86_64-relax-got-load 191/322 Test: x86_64-relax-got-load Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relax-got-load.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relax-got-load" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relax-got-load.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relax-got-load.sh .sh ++ testname=relax-got-load ++ echo -n 'Testing relax-got-load ... ' Testing relax-got-load ... ++ t=out/test/elf/x86_64/relax-got-load ++ mkdir -p out/test/elf/x86_64/relax-got-load + cat + cc -o out/test/elf/x86_64/relax-got-load/a.o -c -xc - -fPIC + cat + cc -o out/test/elf/x86_64/relax-got-load/b.o -c -xc - -fPIC + cc -B. -o out/test/elf/x86_64/relax-got-load/exe out/test/elf/x86_64/relax-got-load/a.o out/test/elf/x86_64/relax-got-load/b.o + out/test/elf/x86_64/relax-got-load/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.18 sec ---------------------------------------------------------- Test Passed. "x86_64-relax-got-load" end time: Nov 13 20:03 CET "x86_64-relax-got-load" time elapsed: 00:00:00 ---------------------------------------------------------- 189/322 Testing: x86_64-range-extension-thunk 189/322 Test: x86_64-range-extension-thunk Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/range-extension-thunk.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-range-extension-thunk" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/range-extension-thunk.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/range-extension-thunk.sh .sh ++ testname=range-extension-thunk ++ echo -n 'Testing range-extension-thunk ... ' Testing range-extension-thunk ... ++ t=out/test/elf/x86_64/range-extension-thunk ++ mkdir -p out/test/elf/x86_64/range-extension-thunk + '[' x86_64 = i386 ']' + '[' x86_64 = riscv32 ']' + '[' x86_64 = sparc64 ']' + cat + cat + cc -c -o out/test/elf/x86_64/range-extension-thunk/c.o out/test/elf/x86_64/range-extension-thunk/a.c -O0 + cc -c -o out/test/elf/x86_64/range-extension-thunk/d.o out/test/elf/x86_64/range-extension-thunk/b.c -O0 + cc -B. -o out/test/elf/x86_64/range-extension-thunk/exe1 out/test/elf/x86_64/range-extension-thunk/c.o out/test/elf/x86_64/range-extension-thunk/d.o -Wl,--section-start=.low=0x10000000,--section-start=.high=0x20000000 + out/test/elf/x86_64/range-extension-thunk/exe1 + grep -q 'main fn1 fn3 fn2 fn4' + cc -c -o out/test/elf/x86_64/range-extension-thunk/e.o out/test/elf/x86_64/range-extension-thunk/a.c -O2 + cc -c -o out/test/elf/x86_64/range-extension-thunk/f.o out/test/elf/x86_64/range-extension-thunk/b.c -O2 + cc -B. -o out/test/elf/x86_64/range-extension-thunk/exe2 out/test/elf/x86_64/range-extension-thunk/e.o out/test/elf/x86_64/range-extension-thunk/f.o -Wl,--section-start=.low=0x10000000,--section-start=.high=0x20000000 + out/test/elf/x86_64/range-extension-thunk/exe2 + grep -q 'main fn1 fn3 fn2 fn4' + on_exit + echo OK OK + exit 0 Test time = 0.39 sec ---------------------------------------------------------- Test Passed. "x86_64-range-extension-thunk" end time: Nov 13 20:03 CET "x86_64-range-extension-thunk" time elapsed: 00:00:00 ---------------------------------------------------------- 190/322 Testing: x86_64-range-extension-thunk2 190/322 Test: x86_64-range-extension-thunk2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/range-extension-thunk2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-range-extension-thunk2" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/range-extension-thunk2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/range-extension-thunk2.sh .sh ++ testname=range-extension-thunk2 ++ echo -n 'Testing range-extension-thunk2 ... ' Testing range-extension-thunk2 ... ++ t=out/test/elf/x86_64/range-extension-thunk2 ++ mkdir -p out/test/elf/x86_64/range-extension-thunk2 + cat + cc -o out/test/elf/x86_64/range-extension-thunk2/a.o -c -xc - -ffunction-sections + cc -B. -o out/test/elf/x86_64/range-extension-thunk2/exe out/test/elf/x86_64/range-extension-thunk2/a.o + out/test/elf/x86_64/range-extension-thunk2/exe + grep -Eq '^0 9 1 8 2 7 3 6 4 5 10 19 11 18 12 17 13 16 14 15 0 $' + on_exit + echo OK OK + exit 0 Test time = 0.50 sec ---------------------------------------------------------- Test Passed. "x86_64-range-extension-thunk2" end time: Nov 13 20:03 CET "x86_64-range-extension-thunk2" time elapsed: 00:00:00 ---------------------------------------------------------- 193/322 Testing: x86_64-relocatable-archive 193/322 Test: x86_64-relocatable-archive Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-archive.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relocatable-archive" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-archive.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-archive.sh .sh ++ testname=relocatable-archive ++ echo -n 'Testing relocatable-archive ... ' Testing relocatable-archive ... ++ t=out/test/elf/x86_64/relocatable-archive ++ mkdir -p out/test/elf/x86_64/relocatable-archive + nm mold + grep -q __tsan_init + cat + cc -c -o out/test/elf/x86_64/relocatable-archive/a.o -xc - + cat + cc -c -o out/test/elf/x86_64/relocatable-archive/b.o -xc - + cat + cc -c -o out/test/elf/x86_64/relocatable-archive/c.o -xc - + cat + cc -c -o out/test/elf/x86_64/relocatable-archive/d.o -xc - + ar crs out/test/elf/x86_64/relocatable-archive/e.a out/test/elf/x86_64/relocatable-archive/a.o out/test/elf/x86_64/relocatable-archive/b.o out/test/elf/x86_64/relocatable-archive/c.o + ./mold -r -o out/test/elf/x86_64/relocatable-archive/f.o out/test/elf/x86_64/relocatable-archive/d.o out/test/elf/x86_64/relocatable-archive/e.a + readelf --symbols out/test/elf/x86_64/relocatable-archive/f.o + grep -q 'foo\b' out/test/elf/x86_64/relocatable-archive/log + grep -q 'bar\b' out/test/elf/x86_64/relocatable-archive/log + grep -q 'baz\b' out/test/elf/x86_64/relocatable-archive/log + on_exit + echo OK OK + exit 0 Test time = 0.51 sec ---------------------------------------------------------- Test Passed. "x86_64-relocatable-archive" end time: Nov 13 20:03 CET "x86_64-relocatable-archive" time elapsed: 00:00:00 ---------------------------------------------------------- 195/322 Testing: x86_64-relocatable-debug-info 195/322 Test: x86_64-relocatable-debug-info Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-debug-info.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relocatable-debug-info" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-debug-info.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-debug-info.sh .sh ++ testname=relocatable-debug-info ++ echo -n 'Testing relocatable-debug-info ... ' Testing relocatable-debug-info ... ++ t=out/test/elf/x86_64/relocatable-debug-info ++ mkdir -p out/test/elf/x86_64/relocatable-debug-info + nm mold + grep -q __tsan_init + cat + cc -c -o out/test/elf/x86_64/relocatable-debug-info/a.o -xc - -g + cat + cc -c -o out/test/elf/x86_64/relocatable-debug-info/b.o -xc - -g + ./mold --relocatable -o out/test/elf/x86_64/relocatable-debug-info/c.o out/test/elf/x86_64/relocatable-debug-info/a.o out/test/elf/x86_64/relocatable-debug-info/b.o + cc -B. -o out/test/elf/x86_64/relocatable-debug-info/exe out/test/elf/x86_64/relocatable-debug-info/c.o + out/test/elf/x86_64/relocatable-debug-info/exe Hello world + on_exit + echo OK OK + exit 0 Test time = 0.40 sec ---------------------------------------------------------- Test Passed. "x86_64-relocatable-debug-info" end time: Nov 13 20:03 CET "x86_64-relocatable-debug-info" time elapsed: 00:00:00 ---------------------------------------------------------- 199/322 Testing: x86_64-relocatable-mergeable-sections 199/322 Test: x86_64-relocatable-mergeable-sections Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-mergeable-sections.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relocatable-mergeable-sections" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-mergeable-sections.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-mergeable-sections.sh .sh ++ testname=relocatable-mergeable-sections ++ echo -n 'Testing relocatable-mergeable-sections ... ' Testing relocatable-mergeable-sections ... ++ t=out/test/elf/x86_64/relocatable-mergeable-sections ++ mkdir -p out/test/elf/x86_64/relocatable-mergeable-sections + nm mold + grep -q __tsan_init + cat + cc -c -o out/test/elf/x86_64/relocatable-mergeable-sections/a.o -xassembler - + ./mold --relocatable -o out/test/elf/x86_64/relocatable-mergeable-sections/b.o out/test/elf/x86_64/relocatable-mergeable-sections/a.o + readelf -W -p .rodata.str1.1 out/test/elf/x86_64/relocatable-mergeable-sections/b.o + grep -Eq '\b0\b.*Hello' + readelf -W -p .rodata.str1.1 out/test/elf/x86_64/relocatable-mergeable-sections/b.o + grep -Eq '\b7\b.*World' + on_exit + echo OK OK + exit 0 Test time = 0.30 sec ---------------------------------------------------------- Test Passed. "x86_64-relocatable-mergeable-sections" end time: Nov 13 20:03 CET "x86_64-relocatable-mergeable-sections" time elapsed: 00:00:00 ---------------------------------------------------------- 198/322 Testing: x86_64-relocatable-merge-sections 198/322 Test: x86_64-relocatable-merge-sections Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-merge-sections.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relocatable-merge-sections" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-merge-sections.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-merge-sections.sh .sh ++ testname=relocatable-merge-sections ++ echo -n 'Testing relocatable-merge-sections ... ' Testing relocatable-merge-sections ... ++ t=out/test/elf/x86_64/relocatable-merge-sections ++ mkdir -p out/test/elf/x86_64/relocatable-merge-sections + nm mold + grep -q __tsan_init + cat + cc -c -o out/test/elf/x86_64/relocatable-merge-sections/a.o -xc -ffunction-sections - + ./mold --relocatable -o out/test/elf/x86_64/relocatable-merge-sections/b.o out/test/elf/x86_64/relocatable-merge-sections/a.o + readelf -WS out/test/elf/x86_64/relocatable-merge-sections/b.o + grep -Fq .text.foo out/test/elf/x86_64/relocatable-merge-sections/log1 + grep -Fq .text.bar out/test/elf/x86_64/relocatable-merge-sections/log1 + ./mold --relocatable -o out/test/elf/x86_64/relocatable-merge-sections/c.o out/test/elf/x86_64/relocatable-merge-sections/a.o --relocatable-merge-sections + readelf -WS out/test/elf/x86_64/relocatable-merge-sections/c.o + grep -Fq .text.foo out/test/elf/x86_64/relocatable-merge-sections/log2 + grep -Fq .text.bar out/test/elf/x86_64/relocatable-merge-sections/log2 + on_exit + echo OK OK + exit 0 Test time = 0.43 sec ---------------------------------------------------------- Test Passed. "x86_64-relocatable-merge-sections" end time: Nov 13 20:03 CET "x86_64-relocatable-merge-sections" time elapsed: 00:00:00 ---------------------------------------------------------- 200/322 Testing: x86_64-relocatable-no-ehframe 200/322 Test: x86_64-relocatable-no-ehframe Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-no-ehframe.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relocatable-no-ehframe" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-no-ehframe.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-no-ehframe.sh .sh ++ testname=relocatable-no-ehframe ++ echo -n 'Testing relocatable-no-ehframe ... ' Testing relocatable-no-ehframe ... ++ t=out/test/elf/x86_64/relocatable-no-ehframe ++ mkdir -p out/test/elf/x86_64/relocatable-no-ehframe + '[' x86_64 = alpha ']' + nm mold + grep -q __tsan_init + cat + cc -c -o out/test/elf/x86_64/relocatable-no-ehframe/a.o -xc -fno-unwind-tables -fno-asynchronous-unwind-tables - + readelf -WS out/test/elf/x86_64/relocatable-no-ehframe/a.o + grep -Fq .eh_frame out/test/elf/x86_64/relocatable-no-ehframe/log1 + ./mold --relocatable -o out/test/elf/x86_64/relocatable-no-ehframe/b.o out/test/elf/x86_64/relocatable-no-ehframe/a.o + readelf -WS out/test/elf/x86_64/relocatable-no-ehframe/b.o + grep -Fq .eh_frame out/test/elf/x86_64/relocatable-no-ehframe/log2 + on_exit + echo OK OK + exit 0 Test time = 0.40 sec ---------------------------------------------------------- Test Passed. "x86_64-relocatable-no-ehframe" end time: Nov 13 20:03 CET "x86_64-relocatable-no-ehframe" time elapsed: 00:00:00 ---------------------------------------------------------- 194/322 Testing: x86_64-relocatable-c++ 194/322 Test: x86_64-relocatable-c++ Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-c++.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relocatable-c++" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-c++.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-c++.sh .sh ++ testname=relocatable-c++ ++ echo -n 'Testing relocatable-c++ ... ' Testing relocatable-c++ ... ++ t=out/test/elf/x86_64/relocatable-c++ ++ mkdir -p out/test/elf/x86_64/relocatable-c++ + nm mold + grep -q __tsan_init + '[' x86_64 = sh4 ']' + cat + c++ -c -o out/test/elf/x86_64/relocatable-c++/a.o -xc++ - + cat + c++ -c -o out/test/elf/x86_64/relocatable-c++/b.o -xc++ - + ./mold --relocatable -o out/test/elf/x86_64/relocatable-c++/c.o out/test/elf/x86_64/relocatable-c++/a.o + ./mold --relocatable -o out/test/elf/x86_64/relocatable-c++/d.o out/test/elf/x86_64/relocatable-c++/b.o + c++ -B. -o out/test/elf/x86_64/relocatable-c++/exe out/test/elf/x86_64/relocatable-c++/c.o out/test/elf/x86_64/relocatable-c++/d.o + out/test/elf/x86_64/relocatable-c++/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.87 sec ---------------------------------------------------------- Test Passed. "x86_64-relocatable-c++" end time: Nov 13 20:03 CET "x86_64-relocatable-c++" time elapsed: 00:00:00 ---------------------------------------------------------- 196/322 Testing: x86_64-relocatable-exception 196/322 Test: x86_64-relocatable-exception Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-exception.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relocatable-exception" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-exception.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-exception.sh .sh ++ testname=relocatable-exception ++ echo -n 'Testing relocatable-exception ... ' Testing relocatable-exception ... ++ t=out/test/elf/x86_64/relocatable-exception ++ mkdir -p out/test/elf/x86_64/relocatable-exception + '[' x86_64 = sh4 ']' + nm mold + grep -q __tsan_init + cat + c++ -c -o out/test/elf/x86_64/relocatable-exception/a.o -xc++ - + cat + c++ -c -o out/test/elf/x86_64/relocatable-exception/b.o -xc++ - + ./mold --relocatable -o out/test/elf/x86_64/relocatable-exception/c.o out/test/elf/x86_64/relocatable-exception/a.o out/test/elf/x86_64/relocatable-exception/b.o + c++ -B. -o out/test/elf/x86_64/relocatable-exception/exe out/test/elf/x86_64/relocatable-exception/c.o + out/test/elf/x86_64/relocatable-exception/exe 0 + on_exit + echo OK OK + exit 0 Test time = 0.90 sec ---------------------------------------------------------- Test Passed. "x86_64-relocatable-exception" end time: Nov 13 20:03 CET "x86_64-relocatable-exception" time elapsed: 00:00:00 ---------------------------------------------------------- 201/322 Testing: x86_64-relocatable 201/322 Test: x86_64-relocatable Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relocatable" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable.sh .sh ++ testname=relocatable ++ echo -n 'Testing relocatable ... ' Testing relocatable ... ++ t=out/test/elf/x86_64/relocatable ++ mkdir -p out/test/elf/x86_64/relocatable + nm mold + grep -q __tsan_init + cat + cc -c -o out/test/elf/x86_64/relocatable/a.o -xc - + cat + cc -c -o out/test/elf/x86_64/relocatable/b.o -xc - + ./mold --relocatable -o out/test/elf/x86_64/relocatable/c.o out/test/elf/x86_64/relocatable/a.o out/test/elf/x86_64/relocatable/b.o + cc -B. -o out/test/elf/x86_64/relocatable/exe out/test/elf/x86_64/relocatable/c.o + out/test/elf/x86_64/relocatable/exe Hello world + on_exit + echo OK OK + exit 0 Test time = 0.80 sec ---------------------------------------------------------- Test Passed. "x86_64-relocatable" end time: Nov 13 20:03 CET "x86_64-relocatable" time elapsed: 00:00:00 ---------------------------------------------------------- 206/322 Testing: x86_64-response-file2 206/322 Test: x86_64-response-file2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/response-file2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-response-file2" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/response-file2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/response-file2.sh .sh ++ testname=response-file2 ++ echo -n 'Testing response-file2 ... ' Testing response-file2 ... ++ t=out/test/elf/x86_64/response-file2 ++ mkdir -p out/test/elf/x86_64/response-file2 + cat + cc -c -o out/test/elf/x86_64/response-file2/a.o -xc - + cat + cc -c -o out/test/elf/x86_64/response-file2/b.o -xc - + echo ''\''out/test/elf/x86_64/response-file2/b.o'\''' + echo @out/test/elf/x86_64/response-file2/rsp1 + cc -B. -o out/test/elf/x86_64/response-file2/exe out/test/elf/x86_64/response-file2/a.o -Wl,@out/test/elf/x86_64/response-file2/rsp2 + on_exit + echo OK OK + exit 0 Test time = 0.66 sec ---------------------------------------------------------- Test Passed. "x86_64-response-file2" end time: Nov 13 20:03 CET "x86_64-response-file2" time elapsed: 00:00:00 ---------------------------------------------------------- 202/322 Testing: x86_64-relro 202/322 Test: x86_64-relro Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relro.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relro" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relro.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relro.sh .sh ++ testname=relro ++ echo -n 'Testing relro ... ' Testing relro ... ++ t=out/test/elf/x86_64/relro ++ mkdir -p out/test/elf/x86_64/relro + cat + cc -c -xc -o out/test/elf/x86_64/relro/a.o - + cc -B. -o out/test/elf/x86_64/relro/exe1 out/test/elf/x86_64/relro/a.o -Wl,-z,relro,-z,lazy + out/test/elf/x86_64/relro/exe1 + grep -q 'Hello world' + readelf --segments -W out/test/elf/x86_64/relro/exe1 + grep -q 'GNU_RELRO ' out/test/elf/x86_64/relro/log1 + cc -B. -o out/test/elf/x86_64/relro/exe2 out/test/elf/x86_64/relro/a.o -Wl,-z,relro,-z,now + out/test/elf/x86_64/relro/exe2 + grep -q 'Hello world' + readelf --segments -W out/test/elf/x86_64/relro/exe2 + grep -q 'GNU_RELRO ' out/test/elf/x86_64/relro/log2 + cc -B. -o out/test/elf/x86_64/relro/exe3 out/test/elf/x86_64/relro/a.o -Wl,-z,norelro + out/test/elf/x86_64/relro/exe3 + grep -q 'Hello world' + readelf --segments -W out/test/elf/x86_64/relro/exe3 + grep -q 'GNU_RELRO ' out/test/elf/x86_64/relro/log3 + on_exit + echo OK OK + exit 0 Test time = 0.94 sec ---------------------------------------------------------- Test Passed. "x86_64-relro" end time: Nov 13 20:03 CET "x86_64-relro" time elapsed: 00:00:00 ---------------------------------------------------------- 207/322 Testing: x86_64-retain-symbols-file 207/322 Test: x86_64-retain-symbols-file Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/retain-symbols-file.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-retain-symbols-file" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/retain-symbols-file.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/retain-symbols-file.sh .sh ++ testname=retain-symbols-file ++ echo -n 'Testing retain-symbols-file ... ' Testing retain-symbols-file ... ++ t=out/test/elf/x86_64/retain-symbols-file ++ mkdir -p out/test/elf/x86_64/retain-symbols-file + cat + cc -c -o out/test/elf/x86_64/retain-symbols-file/a.o -xc - + cat + cc -B. -o out/test/elf/x86_64/retain-symbols-file/exe out/test/elf/x86_64/retain-symbols-file/a.o -Wl,--retain-symbols-file=out/test/elf/x86_64/retain-symbols-file/symbols + readelf -W --symbols out/test/elf/x86_64/retain-symbols-file/exe + grep -qw foo out/test/elf/x86_64/retain-symbols-file/log + grep -qw bar out/test/elf/x86_64/retain-symbols-file/log + grep -qw main out/test/elf/x86_64/retain-symbols-file/log + grep -qw baz out/test/elf/x86_64/retain-symbols-file/log + on_exit + echo OK OK + exit 0 Test time = 0.77 sec ---------------------------------------------------------- Test Passed. "x86_64-retain-symbols-file" end time: Nov 13 20:03 CET "x86_64-retain-symbols-file" time elapsed: 00:00:00 ---------------------------------------------------------- 205/322 Testing: x86_64-response-file 205/322 Test: x86_64-response-file Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/response-file.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-response-file" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/response-file.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/response-file.sh .sh ++ testname=response-file ++ echo -n 'Testing response-file ... ' Testing response-file ... ++ t=out/test/elf/x86_64/response-file ++ mkdir -p out/test/elf/x86_64/response-file + cat + cc -c -o out/test/elf/x86_64/response-file/a.o -xc - + cat + cc -c -o out/test/elf/x86_64/response-file/b.o -xc - + cat + cc -c -o out/test/elf/x86_64/response-file/c.o -xc - + echo ''\''out/test/elf/x86_64/response-file/b.o'\'' '\''out/test/elf/x86_64/response-file/c.o'\''' + cc -B. -o out/test/elf/x86_64/response-file/exe out/test/elf/x86_64/response-file/a.o -Wl,@out/test/elf/x86_64/response-file/rsp + on_exit + echo OK OK + exit 0 Test time = 0.86 sec ---------------------------------------------------------- Test Passed. "x86_64-response-file" end time: Nov 13 20:03 CET "x86_64-response-file" time elapsed: 00:00:00 ---------------------------------------------------------- 210/322 Testing: x86_64-rpath 210/322 Test: x86_64-rpath Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/rpath.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-rpath" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/rpath.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/rpath.sh .sh ++ testname=rpath ++ echo -n 'Testing rpath ... ' Testing rpath ... ++ t=out/test/elf/x86_64/rpath ++ mkdir -p out/test/elf/x86_64/rpath + cat + cc -o out/test/elf/x86_64/rpath/a.o -c -x assembler - + cc -B. -o out/test/elf/x86_64/rpath/exe1 out/test/elf/x86_64/rpath/a.o -Wl,-rpath,/foo,-rpath,/bar,-R/no/such/directory,-R/ + readelf --dynamic out/test/elf/x86_64/rpath/exe1 + grep -Fq 'Library runpath: [/foo:/bar:/no/such/directory:/]' + cc -B. -o out/test/elf/x86_64/rpath/exe2 out/test/elf/x86_64/rpath/a.o -Wl,-rpath,/foo,-rpath,/bar,-rpath,/foo,-rpath,/baz + readelf --dynamic out/test/elf/x86_64/rpath/exe2 + grep -Fq 'Library runpath: [/foo:/bar:/baz]' + on_exit + echo OK OK + exit 0 Test time = 0.79 sec ---------------------------------------------------------- Test Passed. "x86_64-rpath" end time: Nov 13 20:03 CET "x86_64-rpath" time elapsed: 00:00:00 ---------------------------------------------------------- 204/322 Testing: x86_64-require-defined 204/322 Test: x86_64-require-defined Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/require-defined.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-require-defined" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/require-defined.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/require-defined.sh .sh ++ testname=require-defined ++ echo -n 'Testing require-defined ... ' Testing require-defined ... ++ t=out/test/elf/x86_64/require-defined ++ mkdir -p out/test/elf/x86_64/require-defined + cat + cc -o out/test/elf/x86_64/require-defined/a.o -c -xc - + rm -f out/test/elf/x86_64/require-defined/b.a + ar rcs out/test/elf/x86_64/require-defined/b.a out/test/elf/x86_64/require-defined/a.o + cc -o out/test/elf/x86_64/require-defined/c.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/require-defined/exe out/test/elf/x86_64/require-defined/c.o out/test/elf/x86_64/require-defined/b.a + readelf --symbols out/test/elf/x86_64/require-defined/exe + grep -q foobar + cc -B. -o out/test/elf/x86_64/require-defined/exe out/test/elf/x86_64/require-defined/c.o out/test/elf/x86_64/require-defined/b.a -Wl,-require-defined,foobar + grep -q foobar + readelf --symbols out/test/elf/x86_64/require-defined/exe + cc -B. -o out/test/elf/x86_64/require-defined/exe out/test/elf/x86_64/require-defined/c.o out/test/elf/x86_64/require-defined/b.a -Wl,-require-defined,xyz + grep -q 'undefined symbol: xyz' out/test/elf/x86_64/require-defined/log + on_exit + echo OK OK + exit 0 Test time = 1.19 sec ---------------------------------------------------------- Test Passed. "x86_64-require-defined" end time: Nov 13 20:03 CET "x86_64-require-defined" time elapsed: 00:00:01 ---------------------------------------------------------- 203/322 Testing: x86_64-repro 203/322 Test: x86_64-repro Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/repro.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-repro" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/repro.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/repro.sh .sh ++ testname=repro ++ echo -n 'Testing repro ... ' Testing repro ... ++ t=out/test/elf/x86_64/repro ++ mkdir -p out/test/elf/x86_64/repro + cat + cc -c -o out/test/elf/x86_64/repro/a.o -xc - + rm -rf out/test/elf/x86_64/repro/exe.repro out/test/elf/x86_64/repro/exe.repro.tar + cc -B. -o out/test/elf/x86_64/repro/exe out/test/elf/x86_64/repro/a.o + '[' -f out/test/elf/x86_64/repro/exe.repro.tar ']' + cc -B. -o out/test/elf/x86_64/repro/exe out/test/elf/x86_64/repro/a.o -Wl,-repro + tar -C out/test/elf/x86_64/repro -xf out/test/elf/x86_64/repro/exe.repro.tar + grep -q /a.o out/test/elf/x86_64/repro/exe.repro/response.txt + grep -q '[ms]old' out/test/elf/x86_64/repro/exe.repro/version.txt + rm -rf out/test/elf/x86_64/repro/exe.repro out/test/elf/x86_64/repro/exe.repro.tar + MOLD_REPRO=1 + cc -B. -o out/test/elf/x86_64/repro/exe out/test/elf/x86_64/repro/a.o + tar -C out/test/elf/x86_64/repro -xf out/test/elf/x86_64/repro/exe.repro.tar + grep -q /a.o out/test/elf/x86_64/repro/exe.repro/response.txt + grep -q '[ms]old' out/test/elf/x86_64/repro/exe.repro/version.txt + on_exit + echo OK OK + exit 0 Test time = 1.28 sec ---------------------------------------------------------- Test Passed. "x86_64-repro" end time: Nov 13 20:03 CET "x86_64-repro" time elapsed: 00:00:01 ---------------------------------------------------------- 212/322 Testing: x86_64-section-align 212/322 Test: x86_64-section-align Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/section-align.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-section-align" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/section-align.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/section-align.sh .sh ++ testname=section-align ++ echo -n 'Testing section-align ... ' Testing section-align ... ++ t=out/test/elf/x86_64/section-align ++ mkdir -p out/test/elf/x86_64/section-align + cc -o out/test/elf/x86_64/section-align/a.o -c -xc -fno-PIC - + cat + cc -B. -o out/test/elf/x86_64/section-align/exe1 out/test/elf/x86_64/section-align/a.o -Wl,--section-align=.foo=0x2000 + readelf -WS out/test/elf/x86_64/section-align/exe1 + grep -q '\.foo.* 8192$' + cc -B. -o out/test/elf/x86_64/section-align/exe2 out/test/elf/x86_64/section-align/a.o -Wl,--section-align=.foo=256 + grep -q '\.foo.* 256$' + readelf -WS out/test/elf/x86_64/section-align/exe2 + cc -B. -o out/test/elf/x86_64/section-align/exe3 out/test/elf/x86_64/section-align/a.o -Wl,--section-align=.foo=3 + grep -q 'must be a power of 2' + on_exit + echo OK OK + exit 0 Test time = 0.98 sec ---------------------------------------------------------- Test Passed. "x86_64-section-align" end time: Nov 13 20:03 CET "x86_64-section-align" time elapsed: 00:00:00 ---------------------------------------------------------- 211/322 Testing: x86_64-run-clang 211/322 Test: x86_64-run-clang Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/run-clang.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-run-clang" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/run-clang.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/run-clang.sh .sh ++ testname=run-clang ++ echo -n 'Testing run-clang ... ' Testing run-clang ... ++ t=out/test/elf/x86_64/run-clang ++ mkdir -p out/test/elf/x86_64/run-clang + '[' cc = cc ']' + nm mold-wrapper.so + grep -q '__[at]san_init' + clang --version + cat + cc -xc -c -o out/test/elf/x86_64/run-clang/a.o - ++ pwd + LD_PRELOAD=/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/mold-wrapper.so ++ pwd + MOLD_PATH=/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/mold + clang -no-pie -o out/test/elf/x86_64/run-clang/exe out/test/elf/x86_64/run-clang/a.o -fuse-ld=/usr/bin/ld + readelf -p .comment out/test/elf/x86_64/run-clang/exe + grep -q '[ms]old' out/test/elf/x86_64/run-clang/log + on_exit + echo OK OK + exit 0 Test time = 1.10 sec ---------------------------------------------------------- Test Passed. "x86_64-run-clang" end time: Nov 13 20:03 CET "x86_64-run-clang" time elapsed: 00:00:01 ---------------------------------------------------------- 209/322 Testing: x86_64-rosegment 209/322 Test: x86_64-rosegment Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/rosegment.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-rosegment" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/rosegment.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/rosegment.sh .sh ++ testname=rosegment ++ echo -n 'Testing rosegment ... ' Testing rosegment ... ++ t=out/test/elf/x86_64/rosegment ++ mkdir -p out/test/elf/x86_64/rosegment + cat + cc -o out/test/elf/x86_64/rosegment/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/rosegment/exe1 out/test/elf/x86_64/rosegment/a.o + readelf -W --segments out/test/elf/x86_64/rosegment/exe1 + grep -q '\.interp .* \.text' out/test/elf/x86_64/rosegment/log1 + cc -B. -o out/test/elf/x86_64/rosegment/exe2 out/test/elf/x86_64/rosegment/a.o -Wl,--rosegment + readelf -W --segments out/test/elf/x86_64/rosegment/exe2 + grep -q '\.interp .* \.text' out/test/elf/x86_64/rosegment/log2 + cc -B. -o out/test/elf/x86_64/rosegment/exe3 out/test/elf/x86_64/rosegment/a.o -Wl,--no-rosegment + readelf -W --segments out/test/elf/x86_64/rosegment/exe3 + grep -q '\.interp .* \.text' out/test/elf/x86_64/rosegment/log3 + on_exit + echo OK OK + exit 0 Test time = 1.36 sec ---------------------------------------------------------- Test Passed. "x86_64-rosegment" end time: Nov 13 20:03 CET "x86_64-rosegment" time elapsed: 00:00:01 ---------------------------------------------------------- 208/322 Testing: x86_64-reverse-sections 208/322 Test: x86_64-reverse-sections Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/reverse-sections.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-reverse-sections" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/reverse-sections.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/reverse-sections.sh .sh ++ testname=reverse-sections ++ echo -n 'Testing reverse-sections ... ' Testing reverse-sections ... ++ t=out/test/elf/x86_64/reverse-sections ++ mkdir -p out/test/elf/x86_64/reverse-sections + cat + cc -o out/test/elf/x86_64/reverse-sections/a.o -c -xc++ - + cat + cc -o out/test/elf/x86_64/reverse-sections/b.o -c -xc++ - + cat + cc -o out/test/elf/x86_64/reverse-sections/c.o -c -xc++ - + c++ -B. -o out/test/elf/x86_64/reverse-sections/exe1 out/test/elf/x86_64/reverse-sections/a.o out/test/elf/x86_64/reverse-sections/b.o out/test/elf/x86_64/reverse-sections/c.o + out/test/elf/x86_64/reverse-sections/exe1 + grep -q 'foo1 foo2 foo3 foo4 foo5 foo6' + c++ -B. -o out/test/elf/x86_64/reverse-sections/exe2 out/test/elf/x86_64/reverse-sections/a.o out/test/elf/x86_64/reverse-sections/b.o out/test/elf/x86_64/reverse-sections/c.o -Wl,--reverse-sections + out/test/elf/x86_64/reverse-sections/exe2 + grep -q 'foo5 foo6 foo3 foo4 foo1 foo2' + on_exit + echo OK OK + exit 0 Test time = 1.54 sec ---------------------------------------------------------- Test Passed. "x86_64-reverse-sections" end time: Nov 13 20:03 CET "x86_64-reverse-sections" time elapsed: 00:00:01 ---------------------------------------------------------- 214/322 Testing: x86_64-section-start 214/322 Test: x86_64-section-start Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/section-start.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-section-start" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/section-start.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/section-start.sh .sh ++ testname=section-start ++ echo -n 'Testing section-start ... ' Testing section-start ... ++ t=out/test/elf/x86_64/section-start ++ mkdir -p out/test/elf/x86_64/section-start + '[' x86_64 = ppc64 ']' + [[ x86_64 = loongarch* ]] + '[' x86_64 = arm ']' + cat + cc -o out/test/elf/x86_64/section-start/a.o -c -xc -fno-PIC - + cc -B. -o out/test/elf/x86_64/section-start/exe1 out/test/elf/x86_64/section-start/a.o -no-pie -Wl,--section-start=.fn1=0x10000000,--section-start=.fn2=0x20000000 + out/test/elf/x86_64/section-start/exe1 + grep -q 'main fn1 fn2 0x10000000 0x20000000' + sed 's/0x[0-9a-f]*//' + grep ' LOAD ' + readelf -W --segments out/test/elf/x86_64/section-start/exe1 + diff out/test/elf/x86_64/section-start/log1 /dev/fd/63 ++ sort out/test/elf/x86_64/section-start/log1 + cc -B. -o out/test/elf/x86_64/section-start/exe2 out/test/elf/x86_64/section-start/a.o -no-pie -Wl,--section-start=.fn1=0x20000000,--section-start=.fn2=0x10000000 + grep -q 'main fn1 fn2 0x20000000 0x10000000' + out/test/elf/x86_64/section-start/exe2 + readelf -W --segments out/test/elf/x86_64/section-start/exe2 + grep ' LOAD ' + sed 's/0x[0-9a-f]*//' + diff out/test/elf/x86_64/section-start/log2 /dev/fd/63 ++ sort out/test/elf/x86_64/section-start/log2 + on_exit + echo OK OK + exit 0 Test time = 1.35 sec ---------------------------------------------------------- Test Passed. "x86_64-section-start" end time: Nov 13 20:03 CET "x86_64-section-start" time elapsed: 00:00:01 ---------------------------------------------------------- 222/322 Testing: x86_64-start-stop 222/322 Test: x86_64-start-stop Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/start-stop.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-start-stop" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/start-stop.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/start-stop.sh .sh ++ testname=start-stop ++ echo -n 'Testing start-stop ... ' Testing start-stop ... ++ t=out/test/elf/x86_64/start-stop ++ mkdir -p out/test/elf/x86_64/start-stop + cat + cc -c -o out/test/elf/x86_64/start-stop/a.o -xc - + cc -B. -o out/test/elf/x86_64/start-stop/exe1 out/test/elf/x86_64/start-stop/a.o -Wl,--start-stop + readelf -sW out/test/elf/x86_64/start-stop/exe1 + grep -q __start_text + readelf -sW out/test/elf/x86_64/start-stop/exe1 + grep -q __stop_text + on_exit + echo OK OK + exit 0 Test time = 1.02 sec ---------------------------------------------------------- Test Passed. "x86_64-start-stop" end time: Nov 13 20:03 CET "x86_64-start-stop" time elapsed: 00:00:01 ---------------------------------------------------------- 224/322 Testing: x86_64-stdout 224/322 Test: x86_64-stdout Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/stdout.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-stdout" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/stdout.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/stdout.sh .sh ++ testname=stdout ++ echo -n 'Testing stdout ... ' Testing stdout ... ++ t=out/test/elf/x86_64/stdout ++ mkdir -p out/test/elf/x86_64/stdout + cat + cc -o out/test/elf/x86_64/stdout/a.o -c -xc - + cc -B. -Wl,-build-id=sha1 out/test/elf/x86_64/stdout/a.o -o - + chmod 755 out/test/elf/x86_64/stdout/exe + out/test/elf/x86_64/stdout/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 1.00 sec ---------------------------------------------------------- Test Passed. "x86_64-stdout" end time: Nov 13 20:03 CET "x86_64-stdout" time elapsed: 00:00:00 ---------------------------------------------------------- 219/322 Testing: x86_64-soname 219/322 Test: x86_64-soname Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/soname.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-soname" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/soname.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/soname.sh .sh ++ testname=soname ++ echo -n 'Testing soname ... ' Testing soname ... ++ t=out/test/elf/x86_64/soname ++ mkdir -p out/test/elf/x86_64/soname + cat + cc -fPIC -c -o out/test/elf/x86_64/soname/a.o -xc - + cc -o out/test/elf/x86_64/soname/b.so -shared out/test/elf/x86_64/soname/a.o + readelf --dynamic out/test/elf/x86_64/soname/b.so + grep -Fq 'Library soname' out/test/elf/x86_64/soname/log + cc -B. -o out/test/elf/x86_64/soname/b.so -shared out/test/elf/x86_64/soname/a.o -Wl,-soname,foo + readelf --dynamic out/test/elf/x86_64/soname/b.so + grep -Fq 'Library soname: [foo]' + on_exit + echo OK OK + exit 0 Test time = 1.21 sec ---------------------------------------------------------- Test Passed. "x86_64-soname" end time: Nov 13 20:03 CET "x86_64-soname" time elapsed: 00:00:01 ---------------------------------------------------------- 225/322 Testing: x86_64-strip-debug 225/322 Test: x86_64-strip-debug Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/strip-debug.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-strip-debug" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/strip-debug.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/strip-debug.sh .sh ++ testname=strip-debug ++ echo -n 'Testing strip-debug ... ' Testing strip-debug ... ++ t=out/test/elf/x86_64/strip-debug ++ mkdir -p out/test/elf/x86_64/strip-debug + cat + cc -o out/test/elf/x86_64/strip-debug/a.o -c -xc - -g + cc -B. -o out/test/elf/x86_64/strip-debug/exe out/test/elf/x86_64/strip-debug/a.o -Wl,--strip-debug + readelf -W --sections out/test/elf/x86_64/strip-debug/exe + grep -Fq .debug_info out/test/elf/x86_64/strip-debug/log + readelf -W --symbols out/test/elf/x86_64/strip-debug/exe + grep -q ' bar' + on_exit + echo OK OK + exit 0 Test time = 1.11 sec ---------------------------------------------------------- Test Passed. "x86_64-strip-debug" end time: Nov 13 20:03 CET "x86_64-strip-debug" time elapsed: 00:00:01 ---------------------------------------------------------- 226/322 Testing: x86_64-strip 226/322 Test: x86_64-strip Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/strip.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-strip" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/strip.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/strip.sh .sh ++ testname=strip ++ echo -n 'Testing strip ... ' Testing strip ... ++ t=out/test/elf/x86_64/strip ++ mkdir -p out/test/elf/x86_64/strip + cat + cc -x assembler -c -o out/test/elf/x86_64/strip/a.o -Wa,-L - + ./mold -o out/test/elf/x86_64/strip/exe out/test/elf/x86_64/strip/a.o + readelf --symbols out/test/elf/x86_64/strip/exe + grep -Fq _start out/test/elf/x86_64/strip/log + grep -Fq foo out/test/elf/x86_64/strip/log + grep -Fq bar out/test/elf/x86_64/strip/log + '[' x86_64 '!=' riscv32 ']' + '[' x86_64 '!=' riscv64 ']' + grep -Fq .L.baz out/test/elf/x86_64/strip/log + ./mold -o out/test/elf/x86_64/strip/exe out/test/elf/x86_64/strip/a.o -strip-all + readelf --symbols out/test/elf/x86_64/strip/exe + grep -Fq _start out/test/elf/x86_64/strip/log + grep -Fq foo out/test/elf/x86_64/strip/log + grep -Fq bar out/test/elf/x86_64/strip/log + '[' x86_64 '!=' riscv32 ']' + '[' x86_64 '!=' riscv64 ']' + grep -Fq .L.baz out/test/elf/x86_64/strip/log + on_exit + echo OK OK + exit 0 Test time = 1.15 sec ---------------------------------------------------------- Test Passed. "x86_64-strip" end time: Nov 13 20:03 CET "x86_64-strip" time elapsed: 00:00:01 ---------------------------------------------------------- 216/322 Testing: x86_64-shared 216/322 Test: x86_64-shared Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shared.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-shared" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shared.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shared.sh .sh ++ testname=shared ++ echo -n 'Testing shared ... ' Testing shared ... ++ t=out/test/elf/x86_64/shared ++ mkdir -p out/test/elf/x86_64/shared + cat + cc -fPIC -c -o out/test/elf/x86_64/shared/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/shared/b.so out/test/elf/x86_64/shared/a.o + readelf --dyn-syms out/test/elf/x86_64/shared/b.so + grep -q '00000000 0 NOTYPE GLOBAL DEFAULT UND fn2' out/test/elf/x86_64/shared/log + grep -Eq 'FUNC GLOBAL DEFAULT .* fn1' out/test/elf/x86_64/shared/log + cat + cc -fPIC -c -o out/test/elf/x86_64/shared/c.o -xc - + cc -B. -o out/test/elf/x86_64/shared/exe out/test/elf/x86_64/shared/c.o out/test/elf/x86_64/shared/b.so + grep -q hello + out/test/elf/x86_64/shared/exe + readelf --symbols out/test/elf/x86_64/shared/exe + grep -q fn3 + on_exit + echo OK OK + exit 0 Test time = 1.64 sec ---------------------------------------------------------- Test Passed. "x86_64-shared" end time: Nov 13 20:03 CET "x86_64-shared" time elapsed: 00:00:01 ---------------------------------------------------------- 229/322 Testing: x86_64-symbol-version 229/322 Test: x86_64-symbol-version Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-symbol-version" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version.sh .sh ++ testname=symbol-version ++ echo -n 'Testing symbol-version ... ' Testing symbol-version ... ++ t=out/test/elf/x86_64/symbol-version ++ mkdir -p out/test/elf/x86_64/symbol-version + cat + cc -fPIC -c -o out/test/elf/x86_64/symbol-version/a.o -xc - + echo 'VER1 { local: *; }; VER2 { local: *; }; VER3 { local: *; };' + cc -B. -shared -o out/test/elf/x86_64/symbol-version/c.so out/test/elf/x86_64/symbol-version/a.o -Wl,--version-script=out/test/elf/x86_64/symbol-version/b.ver + readelf --symbols out/test/elf/x86_64/symbol-version/c.so + grep -Fq foo@VER1 out/test/elf/x86_64/symbol-version/log + grep -Fq foo@VER2 out/test/elf/x86_64/symbol-version/log + grep -Fq foo@@VER3 out/test/elf/x86_64/symbol-version/log + on_exit + echo OK OK + exit 0 Test time = 1.24 sec ---------------------------------------------------------- Test Passed. "x86_64-symbol-version" end time: Nov 13 20:03 CET "x86_64-symbol-version" time elapsed: 00:00:01 ---------------------------------------------------------- 232/322 Testing: x86_64-symtab-dso 232/322 Test: x86_64-symtab-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symtab-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-symtab-dso" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symtab-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symtab-dso.sh .sh ++ testname=symtab-dso ++ echo -n 'Testing symtab-dso ... ' Testing symtab-dso ... ++ t=out/test/elf/x86_64/symtab-dso ++ mkdir -p out/test/elf/x86_64/symtab-dso + cc -o out/test/elf/x86_64/symtab-dso/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/symtab-dso/exe out/test/elf/x86_64/symtab-dso/a.o + nm out/test/elf/x86_64/symtab-dso/exe + grep -q 'U puts$' + on_exit + echo OK OK + exit 0 Test time = 1.17 sec ---------------------------------------------------------- Test Passed. "x86_64-symtab-dso" end time: Nov 13 20:03 CET "x86_64-symtab-dso" time elapsed: 00:00:01 ---------------------------------------------------------- 233/322 Testing: x86_64-symtab-section-symbols 233/322 Test: x86_64-symtab-section-symbols Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symtab-section-symbols.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-symtab-section-symbols" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symtab-section-symbols.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symtab-section-symbols.sh .sh ++ testname=symtab-section-symbols ++ echo -n 'Testing symtab-section-symbols ... ' Testing symtab-section-symbols ... ++ t=out/test/elf/x86_64/symtab-section-symbols ++ mkdir -p out/test/elf/x86_64/symtab-section-symbols + cat + cc -o out/test/elf/x86_64/symtab-section-symbols/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/symtab-section-symbols/exe out/test/elf/x86_64/symtab-section-symbols/a.o + readelf -s out/test/elf/x86_64/symtab-section-symbols/exe + grep -q 'SECTION LOCAL DEFAULT' + on_exit + echo OK OK + exit 0 Test time = 1.14 sec ---------------------------------------------------------- Test Passed. "x86_64-symtab-section-symbols" end time: Nov 13 20:03 CET "x86_64-symtab-section-symbols" time elapsed: 00:00:01 ---------------------------------------------------------- 231/322 Testing: x86_64-symbol-version3 231/322 Test: x86_64-symbol-version3 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version3.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-symbol-version3" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version3.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version3.sh .sh ++ testname=symbol-version3 ++ echo -n 'Testing symbol-version3 ... ' Testing symbol-version3 ... ++ t=out/test/elf/x86_64/symbol-version3 ++ mkdir -p out/test/elf/x86_64/symbol-version3 + cat + cc -o out/test/elf/x86_64/symbol-version3/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/symbol-version3/c.so -shared out/test/elf/x86_64/symbol-version3/a.o -Wl,--version-script=out/test/elf/x86_64/symbol-version3/b.version + readelf -W --dyn-syms out/test/elf/x86_64/symbol-version3/c.so + grep -q ' foo@@TEST1' out/test/elf/x86_64/symbol-version3/log + grep -q ' foo@TEST2' out/test/elf/x86_64/symbol-version3/log + grep -q ' foo@TEST3' out/test/elf/x86_64/symbol-version3/log + grep -q ' foo$' out/test/elf/x86_64/symbol-version3/log + on_exit + echo OK OK + exit 0 Test time = 1.31 sec ---------------------------------------------------------- Test Passed. "x86_64-symbol-version3" end time: Nov 13 20:03 CET "x86_64-symbol-version3" time elapsed: 00:00:01 ---------------------------------------------------------- 220/322 Testing: x86_64-start-lib 220/322 Test: x86_64-start-lib Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/start-lib.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-start-lib" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/start-lib.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/start-lib.sh .sh ++ testname=start-lib ++ echo -n 'Testing start-lib ... ' Testing start-lib ... ++ t=out/test/elf/x86_64/start-lib ++ mkdir -p out/test/elf/x86_64/start-lib + cat + cc -o out/test/elf/x86_64/start-lib/a.o -c -xc - + cat + cc -o out/test/elf/x86_64/start-lib/b.o -c -xc - + cat + cc -o out/test/elf/x86_64/start-lib/c.o -c -xc - + cc -B. -o out/test/elf/x86_64/start-lib/exe -Wl,-start-lib out/test/elf/x86_64/start-lib/a.o -Wl,-end-lib out/test/elf/x86_64/start-lib/b.o out/test/elf/x86_64/start-lib/c.o + nm out/test/elf/x86_64/start-lib/exe + grep -q ' foo$' out/test/elf/x86_64/start-lib/log + grep -q ' bar$' out/test/elf/x86_64/start-lib/log + on_exit + echo OK OK + exit 0 Test time = 1.77 sec ---------------------------------------------------------- Test Passed. "x86_64-start-lib" end time: Nov 13 20:03 CET "x86_64-start-lib" time elapsed: 00:00:01 ---------------------------------------------------------- 230/322 Testing: x86_64-symbol-version2 230/322 Test: x86_64-symbol-version2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-symbol-version2" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version2.sh .sh ++ testname=symbol-version2 ++ echo -n 'Testing symbol-version2 ... ' Testing symbol-version2 ... ++ t=out/test/elf/x86_64/symbol-version2 ++ mkdir -p out/test/elf/x86_64/symbol-version2 + cat + cc -o out/test/elf/x86_64/symbol-version2/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/symbol-version2/c.so -shared out/test/elf/x86_64/symbol-version2/a.o -Wl,--version-script=out/test/elf/x86_64/symbol-version2/b.version + readelf -W --dyn-syms out/test/elf/x86_64/symbol-version2/c.so + grep -q ' foo@TEST' out/test/elf/x86_64/symbol-version2/log + grep -q ' bar@TEST' out/test/elf/x86_64/symbol-version2/log + grep -q ' bar1' out/test/elf/x86_64/symbol-version2/log + grep -q ' foo@@TEST' out/test/elf/x86_64/symbol-version2/log + on_exit + echo OK OK + exit 0 Test time = 1.45 sec ---------------------------------------------------------- Test Passed. "x86_64-symbol-version2" end time: Nov 13 20:03 CET "x86_64-symbol-version2" time elapsed: 00:00:01 ---------------------------------------------------------- 234/322 Testing: x86_64-symtab 234/322 Test: x86_64-symtab Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symtab.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-symtab" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symtab.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symtab.sh .sh ++ testname=symtab ++ echo -n 'Testing symtab ... ' Testing symtab ... ++ t=out/test/elf/x86_64/symtab ++ mkdir -p out/test/elf/x86_64/symtab + cat + cc -o out/test/elf/x86_64/symtab/a.o -c -x assembler - + cc -o out/test/elf/x86_64/symtab/b.o -c -x assembler - + cat + echo '{ local: module_local; global: *; };' + ./mold -o out/test/elf/x86_64/symtab/exe out/test/elf/x86_64/symtab/a.o out/test/elf/x86_64/symtab/b.o --version-script=out/test/elf/x86_64/symtab/c.map + readelf --symbols out/test/elf/x86_64/symtab/exe + grep -Eq '0 NOTYPE LOCAL DEFAULT .* local1' out/test/elf/x86_64/symtab/log + grep -Eq '0 NOTYPE LOCAL DEFAULT .* local2' out/test/elf/x86_64/symtab/log + grep -Eq '0 NOTYPE LOCAL DEFAULT .* module_local' out/test/elf/x86_64/symtab/log + grep -Eq '0 NOTYPE GLOBAL DEFAULT .* foo' out/test/elf/x86_64/symtab/log + grep -Eq '0 NOTYPE GLOBAL DEFAULT .* bar' out/test/elf/x86_64/symtab/log + grep -Eq '0 NOTYPE GLOBAL DEFAULT .* this_is_global' out/test/elf/x86_64/symtab/log + on_exit + echo OK OK + exit 0 Test time = 1.09 sec ---------------------------------------------------------- Test Passed. "x86_64-symtab" end time: Nov 13 20:03 CET "x86_64-symtab" time elapsed: 00:00:01 ---------------------------------------------------------- 213/322 Testing: x86_64-section-order 213/322 Test: x86_64-section-order Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/section-order.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-section-order" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/section-order.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/section-order.sh .sh ++ testname=section-order ++ echo -n 'Testing section-order ... ' Testing section-order ... ++ t=out/test/elf/x86_64/section-order ++ mkdir -p out/test/elf/x86_64/section-order + '[' -z '' ']' + cat + cc -o out/test/elf/x86_64/section-order/a.o -c -xc -fno-PIC - + cc -B. -o out/test/elf/x86_64/section-order/exe1 out/test/elf/x86_64/section-order/a.o -no-pie '-Wl,--section-order==0x100000 PHDR =0x200000 .fn2 TEXT =0x300000 .fn1 DATA BSS RODATA' + out/test/elf/x86_64/section-order/exe1 + grep -q Hello + readelf -SW out/test/elf/x86_64/section-order/exe1 + grep -q '\.fn2 .*00200000' + grep -q '\.fn1 .*00300000' + readelf -SW out/test/elf/x86_64/section-order/exe1 + readelf -sw out/test/elf/x86_64/section-order/exe1 + grep -Eq ': 0+\s.*\s__ehdr_start$' + cc -B. -o out/test/elf/x86_64/section-order/exe2 out/test/elf/x86_64/section-order/a.o -no-pie '-Wl,--section-order==0x200000 EHDR RODATA =0x300000 PHDR =0x400000 .fn2 TEXT DATA BSS' + readelf -SW out/test/elf/x86_64/section-order/exe2 + grep -q '\.fn2 .*00400000' + readelf -sW out/test/elf/x86_64/section-order/exe2 + grep -Eq ': 0+200000\s.*\s__ehdr_start$' + readelf -W --segments out/test/elf/x86_64/section-order/exe2 + grep -Eq 'PHDR\s.*0x0+300000\s' + cc -B. -o out/test/elf/x86_64/section-order/exe3 out/test/elf/x86_64/section-order/a.o -no-pie '-Wl,--section-order==0x200000 !ehdr_start EHDR %0x20 !rodata_start RODATA =0x300000 !phdr_start PHDR %4096 !phdr_end =0x400000 !text_start TEXT DATA BSS' + readelf -sW out/test/elf/x86_64/section-order/exe3 + grep -Eq '\b0+200000 .* ehdr_start$' out/test/elf/x86_64/section-order/log3 + grep -Eq '\b0+200040 .* rodata_start$' out/test/elf/x86_64/section-order/log3 + grep -Eq '\b0+300000 .* phdr_start$' out/test/elf/x86_64/section-order/log3 + grep -Eq '\b0+301000 .* phdr_end$' out/test/elf/x86_64/section-order/log3 + grep -Eq '\b0+400000 .* text_start$' out/test/elf/x86_64/section-order/log3 + on_exit + echo OK OK + exit 0 Test time = 2.35 sec ---------------------------------------------------------- Test Passed. "x86_64-section-order" end time: Nov 13 20:03 CET "x86_64-section-order" time elapsed: 00:00:02 ---------------------------------------------------------- 228/322 Testing: x86_64-symbol-version-lto 228/322 Test: x86_64-symbol-version-lto Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version-lto.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-symbol-version-lto" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version-lto.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-version-lto.sh .sh ++ testname=symbol-version-lto ++ echo -n 'Testing symbol-version-lto ... ' Testing symbol-version-lto ... ++ t=out/test/elf/x86_64/symbol-version-lto ++ mkdir -p out/test/elf/x86_64/symbol-version-lto + cc -fPIC -c -o out/test/elf/x86_64/symbol-version-lto/a.o -xc - -flto + cat + echo 'VER1 { foo; };' + cc -B. -shared -o out/test/elf/x86_64/symbol-version-lto/c.so out/test/elf/x86_64/symbol-version-lto/a.o -Wl,--version-script=out/test/elf/x86_64/symbol-version-lto/b.ver -flto mold: warning: out/test/elf/x86_64/symbol-version-lto/b.ver: cannot assign version `VER1` to symbol `foo`: symbol not found + readelf --symbols out/test/elf/x86_64/symbol-version-lto/c.so + grep -Fq foo@@VER1 out/test/elf/x86_64/symbol-version-lto/log + on_exit + echo OK OK + exit 0 Test time = 1.66 sec ---------------------------------------------------------- Test Passed. "x86_64-symbol-version-lto" end time: Nov 13 20:03 CET "x86_64-symbol-version-lto" time elapsed: 00:00:01 ---------------------------------------------------------- 221/322 Testing: x86_64-start-stop-symbol 221/322 Test: x86_64-start-stop-symbol Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/start-stop-symbol.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-start-stop-symbol" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/start-stop-symbol.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/start-stop-symbol.sh .sh ++ testname=start-stop-symbol ++ echo -n 'Testing start-stop-symbol ... ' Testing start-stop-symbol ... ++ t=out/test/elf/x86_64/start-stop-symbol ++ mkdir -p out/test/elf/x86_64/start-stop-symbol + cat + cc -c -o out/test/elf/x86_64/start-stop-symbol/a.o -xc - + ar rcs out/test/elf/x86_64/start-stop-symbol/b.a out/test/elf/x86_64/start-stop-symbol/a.o + cc -c -o out/test/elf/x86_64/start-stop-symbol/c.o -xc - + cat + cc -B. -o out/test/elf/x86_64/start-stop-symbol/exe out/test/elf/x86_64/start-stop-symbol/c.o out/test/elf/x86_64/start-stop-symbol/b.a + out/test/elf/x86_64/start-stop-symbol/exe + grep -q 'section foo section foo' + cc -B. -o out/test/elf/x86_64/start-stop-symbol/exe out/test/elf/x86_64/start-stop-symbol/c.o out/test/elf/x86_64/start-stop-symbol/b.a -Wl,-gc-sections + out/test/elf/x86_64/start-stop-symbol/exe + grep -q 'section foo section foo' + on_exit + echo OK OK + exit 0 Test time = 1.96 sec ---------------------------------------------------------- Test Passed. "x86_64-start-stop-symbol" end time: Nov 13 20:03 CET "x86_64-start-stop-symbol" time elapsed: 00:00:01 ---------------------------------------------------------- 223/322 Testing: x86_64-static-archive 223/322 Test: x86_64-static-archive Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/static-archive.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-static-archive" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/static-archive.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/static-archive.sh .sh ++ testname=static-archive ++ echo -n 'Testing static-archive ... ' Testing static-archive ... ++ t=out/test/elf/x86_64/static-archive ++ mkdir -p out/test/elf/x86_64/static-archive + cat + cc -o out/test/elf/x86_64/static-archive/long-long-long-filename.o -c -xc - + cc -o out/test/elf/x86_64/static-archive/b.o -c -xc - + cat + cat + cc -o out/test/elf/x86_64/static-archive/c.o -c -xc - + rm -f out/test/elf/x86_64/static-archive/d.a + cd out/test/elf/x86_64/static-archive + ar rcs d.a long-long-long-filename.o b.o + cc -B. -Wl,--trace -o out/test/elf/x86_64/static-archive/exe out/test/elf/x86_64/static-archive/c.o out/test/elf/x86_64/static-archive/d.a + grep -Fq 'static-archive/d.a(long-long-long-filename.o)' out/test/elf/x86_64/static-archive/log + grep -Fq 'static-archive/d.a(b.o)' out/test/elf/x86_64/static-archive/log + grep -Fq static-archive/c.o out/test/elf/x86_64/static-archive/log + out/test/elf/x86_64/static-archive/exe + grep -q 8 + on_exit + echo OK OK + exit 0 Test time = 1.98 sec ---------------------------------------------------------- Test Passed. "x86_64-static-archive" end time: Nov 13 20:03 CET "x86_64-static-archive" time elapsed: 00:00:01 ---------------------------------------------------------- 197/322 Testing: x86_64-relocatable-many-sections 197/322 Test: x86_64-relocatable-many-sections Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-many-sections.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-relocatable-many-sections" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-many-sections.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/relocatable-many-sections.sh .sh ++ testname=relocatable-many-sections ++ echo -n 'Testing relocatable-many-sections ... ' Testing relocatable-many-sections ... ++ t=out/test/elf/x86_64/relocatable-many-sections ++ mkdir -p out/test/elf/x86_64/relocatable-many-sections + grep -q __tsan_init + nm mold + seq 1 80000 + sed 's/.*/.section .data.\0,"aw"\n.word 0\n/g' + cc -c -xassembler -o out/test/elf/x86_64/relocatable-many-sections/a.o - + cat + cc -c -xc -o out/test/elf/x86_64/relocatable-many-sections/b.o - + ./mold -r -o out/test/elf/x86_64/relocatable-many-sections/c.o out/test/elf/x86_64/relocatable-many-sections/a.o out/test/elf/x86_64/relocatable-many-sections/b.o + cc -B. -o out/test/elf/x86_64/relocatable-many-sections/exe out/test/elf/x86_64/relocatable-many-sections/c.o + out/test/elf/x86_64/relocatable-many-sections/exe + grep -q Hello + on_exit + echo OK OK + exit 0 Test time = 3.34 sec ---------------------------------------------------------- Test Passed. "x86_64-relocatable-many-sections" end time: Nov 13 20:03 CET "x86_64-relocatable-many-sections" time elapsed: 00:00:03 ---------------------------------------------------------- 215/322 Testing: x86_64-shared-abs-sym 215/322 Test: x86_64-shared-abs-sym Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shared-abs-sym.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-shared-abs-sym" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shared-abs-sym.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shared-abs-sym.sh .sh ++ testname=shared-abs-sym ++ echo -n 'Testing shared-abs-sym ... ' Testing shared-abs-sym ... ++ t=out/test/elf/x86_64/shared-abs-sym ++ mkdir -p out/test/elf/x86_64/shared-abs-sym + cat + cc -fPIC -c -o out/test/elf/x86_64/shared-abs-sym/a.o -xassembler - + cc -B. -shared -o out/test/elf/x86_64/shared-abs-sym/b.so out/test/elf/x86_64/shared-abs-sym/a.o + cat + cc -fPIC -c -o out/test/elf/x86_64/shared-abs-sym/d.o out/test/elf/x86_64/shared-abs-sym/c.c + cc -B. -o out/test/elf/x86_64/shared-abs-sym/exe1 -pie out/test/elf/x86_64/shared-abs-sym/d.o out/test/elf/x86_64/shared-abs-sym/b.so + out/test/elf/x86_64/shared-abs-sym/exe1 + grep -q foo=0x3 + nm -D out/test/elf/x86_64/shared-abs-sym/exe1 + grep -q foo out/test/elf/x86_64/shared-abs-sym/log1 + cc -fPIC -c -o out/test/elf/x86_64/shared-abs-sym/e.o out/test/elf/x86_64/shared-abs-sym/c.c + cc -B. -o out/test/elf/x86_64/shared-abs-sym/exe2 -no-pie out/test/elf/x86_64/shared-abs-sym/e.o out/test/elf/x86_64/shared-abs-sym/b.so + out/test/elf/x86_64/shared-abs-sym/exe2 + grep -q foo=0x3 + nm -D out/test/elf/x86_64/shared-abs-sym/exe2 + grep -q foo out/test/elf/x86_64/shared-abs-sym/log2 + on_exit + echo OK OK + exit 0 Test time = 2.42 sec ---------------------------------------------------------- Test Passed. "x86_64-shared-abs-sym" end time: Nov 13 20:03 CET "x86_64-shared-abs-sym" time elapsed: 00:00:02 ---------------------------------------------------------- 227/322 Testing: x86_64-symbol-rank 227/322 Test: x86_64-symbol-rank Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-rank.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-symbol-rank" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-rank.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/symbol-rank.sh .sh ++ testname=symbol-rank ++ echo -n 'Testing symbol-rank ... ' Testing symbol-rank ... ++ t=out/test/elf/x86_64/symbol-rank ++ mkdir -p out/test/elf/x86_64/symbol-rank + cat + cc -o out/test/elf/x86_64/symbol-rank/a.o -c -xc - + cat + cc -o out/test/elf/x86_64/symbol-rank/b.o -c -xc - -fcommon + cat + cc -o out/test/elf/x86_64/symbol-rank/c.o -c -xc - + cat + cc -o out/test/elf/x86_64/symbol-rank/d.o -c -xc - -fcommon + rm -f out/test/elf/x86_64/symbol-rank/x.a + ar rcs out/test/elf/x86_64/symbol-rank/x.a out/test/elf/x86_64/symbol-rank/a.o out/test/elf/x86_64/symbol-rank/b.o out/test/elf/x86_64/symbol-rank/c.o + cc -B. -o out/test/elf/x86_64/symbol-rank/exe out/test/elf/x86_64/symbol-rank/d.o out/test/elf/x86_64/symbol-rank/x.a + out/test/elf/x86_64/symbol-rank/exe + grep -q '^0 0 0 5$' + on_exit + echo OK OK + exit 0 Test time = 2.03 sec ---------------------------------------------------------- Test Passed. "x86_64-symbol-rank" end time: Nov 13 20:03 CET "x86_64-symbol-rank" time elapsed: 00:00:02 ---------------------------------------------------------- 236/322 Testing: x86_64-sysroot-linker-script 236/322 Test: x86_64-sysroot-linker-script Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/sysroot-linker-script.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-sysroot-linker-script" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/sysroot-linker-script.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/sysroot-linker-script.sh .sh ++ testname=sysroot-linker-script ++ echo -n 'Testing sysroot-linker-script ... ' Testing sysroot-linker-script ... ++ t=out/test/elf/x86_64/sysroot-linker-script ++ mkdir -p out/test/elf/x86_64/sysroot-linker-script + [[ x86_64 = loongarch* ]] + cat + cc -o out/test/elf/x86_64/sysroot-linker-script/a.o -c -xc - + mkdir -p out/test/elf/x86_64/sysroot-linker-script/foo/bar + rm -f out/test/elf/x86_64/sysroot-linker-script/foo/bar/libfoo.a + ar rcs out/test/elf/x86_64/sysroot-linker-script/foo/bar/libfoo.a out/test/elf/x86_64/sysroot-linker-script/a.o + cat + cat + cc -o out/test/elf/x86_64/sysroot-linker-script/c.o -c -xc - + cc -B. -o out/test/elf/x86_64/sysroot-linker-script/exe out/test/elf/x86_64/sysroot-linker-script/c.o -Wl,--sysroot=out/test/elf/x86_64/sysroot-linker-script/ out/test/elf/x86_64/sysroot-linker-script/foo/bar/b.script + on_exit + echo OK OK + exit 0 Test time = 1.42 sec ---------------------------------------------------------- Test Passed. "x86_64-sysroot-linker-script" end time: Nov 13 20:03 CET "x86_64-sysroot-linker-script" time elapsed: 00:00:01 ---------------------------------------------------------- 243/322 Testing: x86_64-tls-common 243/322 Test: x86_64-tls-common Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-common.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-common" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-common.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-common.sh .sh ++ testname=tls-common ++ echo -n 'Testing tls-common ... ' Testing tls-common ... ++ t=out/test/elf/x86_64/tls-common ++ mkdir -p out/test/elf/x86_64/tls-common + cat + gcc -o out/test/elf/x86_64/tls-common/a.o -c -xassembler - + cat + cc -o out/test/elf/x86_64/tls-common/b.o -c -xc -std=c11 - + cc -B. -o out/test/elf/x86_64/tls-common/exe out/test/elf/x86_64/tls-common/a.o out/test/elf/x86_64/tls-common/b.o + out/test/elf/x86_64/tls-common/exe + grep -q '^foo=0$' + on_exit + echo OK OK + exit 0 Test time = 1.11 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-common" end time: Nov 13 20:03 CET "x86_64-tls-common" time elapsed: 00:00:01 ---------------------------------------------------------- 239/322 Testing: x86_64-tail-call 239/322 Test: x86_64-tail-call Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tail-call.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tail-call" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tail-call.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tail-call.sh .sh ++ testname=tail-call ++ echo -n 'Testing tail-call ... ' Testing tail-call ... ++ t=out/test/elf/x86_64/tail-call ++ mkdir -p out/test/elf/x86_64/tail-call + cat + cc -O2 -o out/test/elf/x86_64/tail-call/a.o -c -xc - + cat + cc -O2 -o out/test/elf/x86_64/tail-call/b.o -c -xc - + cat + cc -O2 -o out/test/elf/x86_64/tail-call/c.o -c -xc - + cc -B. -o out/test/elf/x86_64/tail-call/exe out/test/elf/x86_64/tail-call/a.o out/test/elf/x86_64/tail-call/b.o out/test/elf/x86_64/tail-call/c.o + out/test/elf/x86_64/tail-call/exe + grep -q 42 + '[' x86_64 = riscv32 -o x86_64 = riscv64 ']' + on_exit + echo OK OK + exit 0 Test time = 1.74 sec ---------------------------------------------------------- Test Passed. "x86_64-tail-call" end time: Nov 13 20:03 CET "x86_64-tail-call" time elapsed: 00:00:01 ---------------------------------------------------------- 244/322 Testing: x86_64-tls-df-static-tls 244/322 Test: x86_64-tls-df-static-tls Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-df-static-tls.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-df-static-tls" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-df-static-tls.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-df-static-tls.sh .sh ++ testname=tls-df-static-tls ++ echo -n 'Testing tls-df-static-tls ... ' Testing tls-df-static-tls ... ++ t=out/test/elf/x86_64/tls-df-static-tls ++ mkdir -p out/test/elf/x86_64/tls-df-static-tls + cat + cc -fPIC -ftls-model=initial-exec -c -o out/test/elf/x86_64/tls-df-static-tls/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/tls-df-static-tls/b.so out/test/elf/x86_64/tls-df-static-tls/a.o -Wl,--relax + readelf --dynamic out/test/elf/x86_64/tls-df-static-tls/b.so + grep -q STATIC_TLS + cc -B. -shared -o out/test/elf/x86_64/tls-df-static-tls/c.so out/test/elf/x86_64/tls-df-static-tls/a.o -Wl,--no-relax + readelf --dynamic out/test/elf/x86_64/tls-df-static-tls/c.so + grep -q STATIC_TLS + on_exit + echo OK OK + exit 0 Test time = 1.35 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-df-static-tls" end time: Nov 13 20:03 CET "x86_64-tls-df-static-tls" time elapsed: 00:00:01 ---------------------------------------------------------- 242/322 Testing: x86_64-tls-alignment-multi 242/322 Test: x86_64-tls-alignment-multi Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-alignment-multi.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-alignment-multi" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-alignment-multi.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-alignment-multi.sh .sh ++ testname=tls-alignment-multi ++ echo -n 'Testing tls-alignment-multi ... ' Testing tls-alignment-multi ... ++ t=out/test/elf/x86_64/tls-alignment-multi ++ mkdir -p out/test/elf/x86_64/tls-alignment-multi + cat + cc -fPIC -c -o out/test/elf/x86_64/tls-alignment-multi/a.o -xc - + cat + cc -fPIC -c -o out/test/elf/x86_64/tls-alignment-multi/b.o -xc - + cc -B. -shared -o out/test/elf/x86_64/tls-alignment-multi/a.so out/test/elf/x86_64/tls-alignment-multi/a.o + cc -B. -ldl -pthread -o out/test/elf/x86_64/tls-alignment-multi/exe out/test/elf/x86_64/tls-alignment-multi/b.o -Wl,-rpath,out/test/elf/x86_64/tls-alignment-multi + out/test/elf/x86_64/tls-alignment-multi/exe + on_exit + echo OK OK + exit 0 Test time = 1.62 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-alignment-multi" end time: Nov 13 20:03 CET "x86_64-tls-alignment-multi" time elapsed: 00:00:01 ---------------------------------------------------------- 256/322 Testing: x86_64-tls-le-error 256/322 Test: x86_64-tls-le-error Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-le-error.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-le-error" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-le-error.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-le-error.sh .sh ++ testname=tls-le-error ++ echo -n 'Testing tls-le-error ... ' Testing tls-le-error ... ++ t=out/test/elf/x86_64/tls-le-error ++ mkdir -p out/test/elf/x86_64/tls-le-error + cat + gcc -fPIC -c -o out/test/elf/x86_64/tls-le-error/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/tls-le-error/b.so out/test/elf/x86_64/tls-le-error/a.o + grep -q 'relocation .* against `foo` can not be used when making a shared object; recompile with -fPIC' out/test/elf/x86_64/tls-le-error/log + on_exit + echo OK OK + exit 0 Test time = 0.90 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-le-error" end time: Nov 13 20:03 CET "x86_64-tls-le-error" time elapsed: 00:00:00 ---------------------------------------------------------- 253/322 Testing: x86_64-tls-large-static-image 253/322 Test: x86_64-tls-large-static-image Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-large-static-image.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-large-static-image" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-large-static-image.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-large-static-image.sh .sh ++ testname=tls-large-static-image ++ echo -n 'Testing tls-large-static-image ... ' Testing tls-large-static-image ... ++ t=out/test/elf/x86_64/tls-large-static-image ++ mkdir -p out/test/elf/x86_64/tls-large-static-image + cat + cc -fPIC -c -o out/test/elf/x86_64/tls-large-static-image/a.o -xc - + cat + cc -fPIC -c -o out/test/elf/x86_64/tls-large-static-image/b.o -xc - + cc -B. -o out/test/elf/x86_64/tls-large-static-image/exe out/test/elf/x86_64/tls-large-static-image/a.o out/test/elf/x86_64/tls-large-static-image/b.o + out/test/elf/x86_64/tls-large-static-image/exe + grep -q '^1 2 3 0 5$' + on_exit + echo OK OK + exit 0 Test time = 1.16 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-large-static-image" end time: Nov 13 20:03 CET "x86_64-tls-large-static-image" time elapsed: 00:00:01 ---------------------------------------------------------- 245/322 Testing: x86_64-tls-dso 245/322 Test: x86_64-tls-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-dso" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-dso.sh .sh ++ testname=tls-dso ++ echo -n 'Testing tls-dso ... ' Testing tls-dso ... ++ t=out/test/elf/x86_64/tls-dso ++ mkdir -p out/test/elf/x86_64/tls-dso + cat + cc -fPIC -shared -o out/test/elf/x86_64/tls-dso/a.so -xc - + cat + cc -c -o out/test/elf/x86_64/tls-dso/b.o -xc - + cc -B. -o out/test/elf/x86_64/tls-dso/exe out/test/elf/x86_64/tls-dso/a.so out/test/elf/x86_64/tls-dso/b.o + out/test/elf/x86_64/tls-dso/exe + grep -q '5 3 5 3 5 3' + on_exit + echo OK OK + exit 0 Test time = 1.62 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-dso" end time: Nov 13 20:03 CET "x86_64-tls-dso" time elapsed: 00:00:01 ---------------------------------------------------------- 241/322 Testing: x86_64-thread-count 241/322 Test: x86_64-thread-count Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/thread-count.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-thread-count" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/thread-count.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/thread-count.sh .sh ++ testname=thread-count ++ echo -n 'Testing thread-count ... ' Testing thread-count ... ++ t=out/test/elf/x86_64/thread-count ++ mkdir -p out/test/elf/x86_64/thread-count + cc -o out/test/elf/x86_64/thread-count/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/thread-count/exe out/test/elf/x86_64/thread-count/a.o -Wl,-no-threads + cc -B. -o out/test/elf/x86_64/thread-count/exe out/test/elf/x86_64/thread-count/a.o -Wl,-thread-count=1 + cc -B. -o out/test/elf/x86_64/thread-count/exe out/test/elf/x86_64/thread-count/a.o -Wl,-threads + cc -B. -o out/test/elf/x86_64/thread-count/exe out/test/elf/x86_64/thread-count/a.o -Wl,-threads=1 + cc -B. -o out/test/elf/x86_64/thread-count/exe out/test/elf/x86_64/thread-count/a.o -Wl,--threads=1 + on_exit + echo OK OK + exit 0 Test time = 1.99 sec ---------------------------------------------------------- Test Passed. "x86_64-thread-count" end time: Nov 13 20:03 CET "x86_64-thread-count" time elapsed: 00:00:01 ---------------------------------------------------------- 235/322 Testing: x86_64-synthetic-symbols 235/322 Test: x86_64-synthetic-symbols Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/synthetic-symbols.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-synthetic-symbols" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/synthetic-symbols.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/synthetic-symbols.sh .sh ++ testname=synthetic-symbols ++ echo -n 'Testing synthetic-symbols ... ' Testing synthetic-symbols ... ++ t=out/test/elf/x86_64/synthetic-symbols ++ mkdir -p out/test/elf/x86_64/synthetic-symbols + cat + cc -c -o out/test/elf/x86_64/synthetic-symbols/a.o -xc - + cc -c -o out/test/elf/x86_64/synthetic-symbols/b.o -xc - + cat + cc -B. -no-pie -Wl,--image-base=0x40000 -o out/test/elf/x86_64/synthetic-symbols/exe out/test/elf/x86_64/synthetic-symbols/a.o out/test/elf/x86_64/synthetic-symbols/b.o + out/test/elf/x86_64/synthetic-symbols/exe + grep -q '^__ehdr_start=0x40000$' out/test/elf/x86_64/synthetic-symbols/log + grep -q '^__executable_start=0x40000$' out/test/elf/x86_64/synthetic-symbols/log + grep -q '^__dso_handle=' out/test/elf/x86_64/synthetic-symbols/log + grep -q '^section foo$' out/test/elf/x86_64/synthetic-symbols/log + cc -c -o out/test/elf/x86_64/synthetic-symbols/c.o -xc - + cat + cc -B. -no-pie -Wl,--image-base=0x40000 -o out/test/elf/x86_64/synthetic-symbols/exe out/test/elf/x86_64/synthetic-symbols/a.o out/test/elf/x86_64/synthetic-symbols/c.o + out/test/elf/x86_64/synthetic-symbols/exe + grep -q '^end=foo$' out/test/elf/x86_64/synthetic-symbols/log + grep -q '^etext=foo$' out/test/elf/x86_64/synthetic-symbols/log + grep -q '^edata=foo$' out/test/elf/x86_64/synthetic-symbols/log + grep -q '^__ehdr_start=0x40000$' out/test/elf/x86_64/synthetic-symbols/log + grep -q '^__executable_start=0x40000$' out/test/elf/x86_64/synthetic-symbols/log + grep -q '^section foo$' out/test/elf/x86_64/synthetic-symbols/log + on_exit + echo OK OK + exit 0 Test time = 2.59 sec ---------------------------------------------------------- Test Passed. "x86_64-synthetic-symbols" end time: Nov 13 20:03 CET "x86_64-synthetic-symbols" time elapsed: 00:00:02 ---------------------------------------------------------- 246/322 Testing: x86_64-tls-gd-dlopen 246/322 Test: x86_64-tls-gd-dlopen Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd-dlopen.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-gd-dlopen" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd-dlopen.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd-dlopen.sh .sh ++ testname=tls-gd-dlopen ++ echo -n 'Testing tls-gd-dlopen ... ' Testing tls-gd-dlopen ... ++ t=out/test/elf/x86_64/tls-gd-dlopen ++ mkdir -p out/test/elf/x86_64/tls-gd-dlopen + cat + gcc -fPIC -c -o out/test/elf/x86_64/tls-gd-dlopen/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/tls-gd-dlopen/b.so out/test/elf/x86_64/tls-gd-dlopen/a.o + cat + gcc -fPIC -c -o out/test/elf/x86_64/tls-gd-dlopen/c.o -xc - + cc -B. -o out/test/elf/x86_64/tls-gd-dlopen/exe out/test/elf/x86_64/tls-gd-dlopen/c.o -ldl + out/test/elf/x86_64/tls-gd-dlopen/exe out/test/elf/x86_64/tls-gd-dlopen/b.so + grep -q '3 0 5' + on_exit + echo OK OK + exit 0 Test time = 1.67 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-gd-dlopen" end time: Nov 13 20:03 CET "x86_64-tls-gd-dlopen" time elapsed: 00:00:01 ---------------------------------------------------------- 238/322 Testing: x86_64-sysroot2 238/322 Test: x86_64-sysroot2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/sysroot2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-sysroot2" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/sysroot2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/sysroot2.sh .sh ++ testname=sysroot2 ++ echo -n 'Testing sysroot2 ... ' Testing sysroot2 ... ++ t=out/test/elf/x86_64/sysroot2 ++ mkdir -p out/test/elf/x86_64/sysroot2 + [[ x86_64 = loongarch* ]] + mkdir -p out/test/elf/x86_64/sysroot2/bin out/test/elf/x86_64/sysroot2/sysroot/foo + cat + cat + cat + cc -c -o out/test/elf/x86_64/sysroot2/sysroot/foo/x.o -xc - + cat + cc -c -o out/test/elf/x86_64/sysroot2/sysroot/foo/y.o -xc - + cat + cc -c -o out/test/elf/x86_64/sysroot2/c.o -xc - + cc -B. -o out/test/elf/x86_64/sysroot2/exe -Wl,--sysroot=out/test/elf/x86_64/sysroot2/sysroot out/test/elf/x86_64/sysroot2/a.script out/test/elf/x86_64/sysroot2/sysroot/b.script out/test/elf/x86_64/sysroot2/c.o ++ realpath out/test/elf/x86_64/sysroot2 + cc -B. -o out/test/elf/x86_64/sysroot2/exe -Wl,--sysroot=/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/out/test/elf/x86_64/sysroot2/bin/../sysroot out/test/elf/x86_64/sysroot2/a.script out/test/elf/x86_64/sysroot2/sysroot/b.script out/test/elf/x86_64/sysroot2/c.o + on_exit + echo OK OK + exit 0 Test time = 2.28 sec ---------------------------------------------------------- Test Passed. "x86_64-sysroot2" end time: Nov 13 20:03 CET "x86_64-sysroot2" time elapsed: 00:00:02 ---------------------------------------------------------- 240/322 Testing: x86_64-thin-archive 240/322 Test: x86_64-thin-archive Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/thin-archive.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-thin-archive" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/thin-archive.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/thin-archive.sh .sh ++ testname=thin-archive ++ echo -n 'Testing thin-archive ... ' Testing thin-archive ... ++ t=out/test/elf/x86_64/thin-archive ++ mkdir -p out/test/elf/x86_64/thin-archive + cc -o out/test/elf/x86_64/thin-archive/long-long-long-filename.o -c -xc - + cat + cat + cc -o out/test/elf/x86_64/thin-archive/b.o -c -xc - + cat + cc -o out/test/elf/x86_64/thin-archive/c.o -c -xc - + cat + cc -o out/test/elf/x86_64/thin-archive/d.o -c -xc - + rm -f out/test/elf/x86_64/thin-archive/d.a + cd out/test/elf/x86_64/thin-archive ++ pwd + ar rcsT d.a long-long-long-filename.o b.o /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build/out/test/elf/x86_64/thin-archive/c.o + cc -B. -Wl,--trace -o out/test/elf/x86_64/thin-archive/exe out/test/elf/x86_64/thin-archive/d.o out/test/elf/x86_64/thin-archive/d.a + grep -Eq 'thin-archive/d.a\(.*long-long-long-filename.o\)' out/test/elf/x86_64/thin-archive/log + grep -Eq 'thin-archive/d.a\(.*/b.o\)' out/test/elf/x86_64/thin-archive/log + grep -Fq thin-archive/d.o out/test/elf/x86_64/thin-archive/log + out/test/elf/x86_64/thin-archive/exe + grep -q 15 + on_exit + echo OK OK + exit 0 Test time = 2.23 sec ---------------------------------------------------------- Test Passed. "x86_64-thin-archive" end time: Nov 13 20:03 CET "x86_64-thin-archive" time elapsed: 00:00:02 ---------------------------------------------------------- 255/322 Testing: x86_64-tls-ld 255/322 Test: x86_64-tls-ld Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-ld.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-ld" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-ld.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-ld.sh .sh ++ testname=tls-ld ++ echo -n 'Testing tls-ld ... ' Testing tls-ld ... ++ t=out/test/elf/x86_64/tls-ld ++ mkdir -p out/test/elf/x86_64/tls-ld + cat + cc -fPIC -ftls-model=local-dynamic -c -o out/test/elf/x86_64/tls-ld/a.o -xc - + cat + gcc -fPIC -ftls-model=local-dynamic -c -o out/test/elf/x86_64/tls-ld/b.o -xc - + cc -B. -o out/test/elf/x86_64/tls-ld/exe1 out/test/elf/x86_64/tls-ld/a.o out/test/elf/x86_64/tls-ld/b.o -Wl,-relax + grep -q '3 5 3 5' + out/test/elf/x86_64/tls-ld/exe1 + cc -B. -o out/test/elf/x86_64/tls-ld/exe2 out/test/elf/x86_64/tls-ld/a.o out/test/elf/x86_64/tls-ld/b.o -Wl,-no-relax + out/test/elf/x86_64/tls-ld/exe2 + grep -q '3 5 3 5' + on_exit + echo OK OK + exit 0 Test time = 1.45 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-ld" end time: Nov 13 20:03 CET "x86_64-tls-ld" time elapsed: 00:00:01 ---------------------------------------------------------- 254/322 Testing: x86_64-tls-ld-noplt 254/322 Test: x86_64-tls-ld-noplt Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-ld-noplt.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-ld-noplt" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-ld-noplt.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-ld-noplt.sh .sh ++ testname=tls-ld-noplt ++ echo -n 'Testing tls-ld-noplt ... ' Testing tls-ld-noplt ... ++ t=out/test/elf/x86_64/tls-ld-noplt ++ mkdir -p out/test/elf/x86_64/tls-ld-noplt + cat + gcc -fPIC -ftls-model=local-dynamic -fno-plt -c -o out/test/elf/x86_64/tls-ld-noplt/a.o -xc - + cat + gcc -fPIC -ftls-model=local-dynamic -fno-plt -c -o out/test/elf/x86_64/tls-ld-noplt/b.o -xc - + cc -B. -o out/test/elf/x86_64/tls-ld-noplt/exe out/test/elf/x86_64/tls-ld-noplt/a.o out/test/elf/x86_64/tls-ld-noplt/b.o + out/test/elf/x86_64/tls-ld-noplt/exe + grep -q '3 5 3 5' + cc -B. -o out/test/elf/x86_64/tls-ld-noplt/exe out/test/elf/x86_64/tls-ld-noplt/a.o out/test/elf/x86_64/tls-ld-noplt/b.o -Wl,-no-relax + out/test/elf/x86_64/tls-ld-noplt/exe + grep -q '3 5 3 5' + on_exit + echo OK OK + exit 0 Test time = 1.58 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-ld-noplt" end time: Nov 13 20:03 CET "x86_64-tls-ld-noplt" time elapsed: 00:00:01 ---------------------------------------------------------- 258/322 Testing: x86_64-tls-nopic 258/322 Test: x86_64-tls-nopic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-nopic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-nopic" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-nopic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-nopic.sh .sh ++ testname=tls-nopic ++ echo -n 'Testing tls-nopic ... ' Testing tls-nopic ... ++ t=out/test/elf/x86_64/tls-nopic ++ mkdir -p out/test/elf/x86_64/tls-nopic + gcc -c -o out/test/elf/x86_64/tls-nopic/a.o -xc - + cat + cat + cc -xc -c -o out/test/elf/x86_64/tls-nopic/b.o - + cc -B. -o out/test/elf/x86_64/tls-nopic/exe out/test/elf/x86_64/tls-nopic/a.o out/test/elf/x86_64/tls-nopic/b.o + out/test/elf/x86_64/tls-nopic/exe + grep -q '3 5 3 5' + on_exit + echo OK OK + exit 0 Test time = 1.02 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-nopic" end time: Nov 13 20:03 CET "x86_64-tls-nopic" time elapsed: 00:00:01 ---------------------------------------------------------- 257/322 Testing: x86_64-tls-le 257/322 Test: x86_64-tls-le Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-le.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-le" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-le.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-le.sh .sh ++ testname=tls-le ++ echo -n 'Testing tls-le ... ' Testing tls-le ... ++ t=out/test/elf/x86_64/tls-le ++ mkdir -p out/test/elf/x86_64/tls-le + cat + gcc -fPIC -c -o out/test/elf/x86_64/tls-le/a.o -xc - + + cat gcc -fPIC -c -o out/test/elf/x86_64/tls-le/b.o -xc - + cc -B. -o out/test/elf/x86_64/tls-le/exe out/test/elf/x86_64/tls-le/a.o out/test/elf/x86_64/tls-le/b.o + out/test/elf/x86_64/tls-le/exe + grep -q '3 5 3 5' + cc -B. -o out/test/elf/x86_64/tls-le/exe out/test/elf/x86_64/tls-le/a.o out/test/elf/x86_64/tls-le/b.o -Wl,-no-relax + out/test/elf/x86_64/tls-le/exe + grep -q '3 5 3 5' + on_exit + echo OK OK + exit 0 Test time = 1.37 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-le" end time: Nov 13 20:03 CET "x86_64-tls-le" time elapsed: 00:00:01 ---------------------------------------------------------- 251/322 Testing: x86_64-tls-irregular-start-addr 251/322 Test: x86_64-tls-irregular-start-addr Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-irregular-start-addr.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-irregular-start-addr" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-irregular-start-addr.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-irregular-start-addr.sh .sh ++ testname=tls-irregular-start-addr ++ echo -n 'Testing tls-irregular-start-addr ... ' Testing tls-irregular-start-addr ... ++ t=out/test/elf/x86_64/tls-irregular-start-addr ++ mkdir -p out/test/elf/x86_64/tls-irregular-start-addr + cat + cc -fPIC -c -o out/test/elf/x86_64/tls-irregular-start-addr/a.o -xc - + cc -B. -o out/test/elf/x86_64/tls-irregular-start-addr/exe1 out/test/elf/x86_64/tls-irregular-start-addr/a.o -pie -Wl,-section-start=.tdata=0x100001 -Wl,-relax + out/test/elf/x86_64/tls-irregular-start-addr/exe1 + grep -q '^42$' + cc -B. -o out/test/elf/x86_64/tls-irregular-start-addr/exe2 out/test/elf/x86_64/tls-irregular-start-addr/a.o -pie -Wl,-section-start=.tdata=0x100001 -Wl,-no-relax + out/test/elf/x86_64/tls-irregular-start-addr/exe2 + grep -q '^42$' + cc -B. -o out/test/elf/x86_64/tls-irregular-start-addr/exe3 out/test/elf/x86_64/tls-irregular-start-addr/a.o -pie -Wl,-section-start=.tdata=0x10000f -Wl,-relax + + grep -q '^42$' out/test/elf/x86_64/tls-irregular-start-addr/exe3 + cc -B. -o out/test/elf/x86_64/tls-irregular-start-addr/exe4 out/test/elf/x86_64/tls-irregular-start-addr/a.o -pie -Wl,-section-start=.tdata=0x10000f -Wl,-no-relax + out/test/elf/x86_64/tls-irregular-start-addr/exe4 + grep -q '^42$' + on_exit + echo OK OK + exit 0 Test time = 1.91 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-irregular-start-addr" end time: Nov 13 20:03 CET "x86_64-tls-irregular-start-addr" time elapsed: 00:00:01 ---------------------------------------------------------- 250/322 Testing: x86_64-tls-ie 250/322 Test: x86_64-tls-ie Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-ie.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-ie" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-ie.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-ie.sh .sh ++ testname=tls-ie ++ echo -n 'Testing tls-ie ... ' Testing tls-ie ... ++ t=out/test/elf/x86_64/tls-ie ++ mkdir -p out/test/elf/x86_64/tls-ie + cat + gcc -fPIC -c -o out/test/elf/x86_64/tls-ie/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/tls-ie/b.so out/test/elf/x86_64/tls-ie/a.o + cat + gcc -c -o out/test/elf/x86_64/tls-ie/c.o -xc - + cc -B. -o out/test/elf/x86_64/tls-ie/exe out/test/elf/x86_64/tls-ie/b.so out/test/elf/x86_64/tls-ie/c.o + out/test/elf/x86_64/tls-ie/exe + grep -q '^0 0 3 5 7$' + cc -B. -o out/test/elf/x86_64/tls-ie/exe out/test/elf/x86_64/tls-ie/b.so out/test/elf/x86_64/tls-ie/c.o -Wl,-no-relax + out/test/elf/x86_64/tls-ie/exe + grep -q '^0 0 3 5 7$' + on_exit + echo OK OK + exit 0 Test time = 1.96 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-ie" end time: Nov 13 20:03 CET "x86_64-tls-ie" time elapsed: 00:00:01 ---------------------------------------------------------- 252/322 Testing: x86_64-tls-large-alignment 252/322 Test: x86_64-tls-large-alignment Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-large-alignment.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-large-alignment" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-large-alignment.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-large-alignment.sh .sh ++ testname=tls-large-alignment ++ echo -n 'Testing tls-large-alignment ... ' Testing tls-large-alignment ... ++ t=out/test/elf/x86_64/tls-large-alignment ++ mkdir -p out/test/elf/x86_64/tls-large-alignment + cat + cc -fPIC -std=c11 -c -o out/test/elf/x86_64/tls-large-alignment/a.o -xc - + cat + cc -fPIC -std=c11 -c -o out/test/elf/x86_64/tls-large-alignment/b.o -xc - + cc -fPIC -c -o out/test/elf/x86_64/tls-large-alignment/c.o -xc - + cat + cc -B. -shared -o out/test/elf/x86_64/tls-large-alignment/d.so out/test/elf/x86_64/tls-large-alignment/a.o out/test/elf/x86_64/tls-large-alignment/b.o + cc -B. -o out/test/elf/x86_64/tls-large-alignment/exe1 out/test/elf/x86_64/tls-large-alignment/a.o out/test/elf/x86_64/tls-large-alignment/b.o out/test/elf/x86_64/tls-large-alignment/c.o + out/test/elf/x86_64/tls-large-alignment/exe1 + grep -q '^42 1 2 3$' + cc -B. -o out/test/elf/x86_64/tls-large-alignment/exe2 out/test/elf/x86_64/tls-large-alignment/c.o out/test/elf/x86_64/tls-large-alignment/d.so + out/test/elf/x86_64/tls-large-alignment/exe2 + grep -q '^42 1 2 3$' + on_exit + echo OK OK + exit 0 Test time = 1.90 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-large-alignment" end time: Nov 13 20:03 CET "x86_64-tls-large-alignment" time elapsed: 00:00:01 ---------------------------------------------------------- 259/322 Testing: x86_64-tls-pic 259/322 Test: x86_64-tls-pic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-pic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-pic" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-pic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-pic.sh .sh ++ testname=tls-pic ++ echo -n 'Testing tls-pic ... ' Testing tls-pic ... ++ t=out/test/elf/x86_64/tls-pic ++ mkdir -p out/test/elf/x86_64/tls-pic + gcc -fPIC -c -o out/test/elf/x86_64/tls-pic/a.o -xc - + cat + cat + cc -xc -c -o out/test/elf/x86_64/tls-pic/b.o - + cc -B. -o out/test/elf/x86_64/tls-pic/exe out/test/elf/x86_64/tls-pic/a.o out/test/elf/x86_64/tls-pic/b.o + out/test/elf/x86_64/tls-pic/exe + grep -q '3 5 3 5' + on_exit + echo OK OK + exit 0 Test time = 0.98 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-pic" end time: Nov 13 20:03 CET "x86_64-tls-pic" time elapsed: 00:00:00 ---------------------------------------------------------- 237/322 Testing: x86_64-sysroot 237/322 Test: x86_64-sysroot Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/sysroot.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-sysroot" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/sysroot.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/sysroot.sh .sh ++ testname=sysroot ++ echo -n 'Testing sysroot ... ' Testing sysroot ... ++ t=out/test/elf/x86_64/sysroot ++ mkdir -p out/test/elf/x86_64/sysroot + [[ x86_64 = loongarch* ]] + cat + cc -c -o out/test/elf/x86_64/sysroot/a.o -xc - + cc -c -o out/test/elf/x86_64/sysroot/b.o -xc - + cat + mkdir -p out/test/elf/x86_64/sysroot/foo/bar + rm -f out/test/elf/x86_64/sysroot/foo/bar/libfoo.a + ar rcs out/test/elf/x86_64/sysroot/foo/bar/libfoo.a out/test/elf/x86_64/sysroot/a.o out/test/elf/x86_64/sysroot/b.o + cc -c -o out/test/elf/x86_64/sysroot/c.o -xc - + cat + cc -B. -o out/test/elf/x86_64/sysroot/exe out/test/elf/x86_64/sysroot/c.o -Wl,--sysroot=out/test/elf/x86_64/sysroot/ -Wl,-L=foo/bar -lfoo + cc -B. -o out/test/elf/x86_64/sysroot/exe out/test/elf/x86_64/sysroot/c.o -Wl,--sysroot=out/test/elf/x86_64/sysroot/ -Wl,-L=/foo/bar -lfoo + cc -B. -o out/test/elf/x86_64/sysroot/exe out/test/elf/x86_64/sysroot/c.o -Wl,--sysroot=out/test/elf/x86_64/sysroot/ '-Wl,-L$SYSROOTfoo/bar' -lfoo + cc -B. -o out/test/elf/x86_64/sysroot/exe out/test/elf/x86_64/sysroot/c.o -Wl,--sysroot=out/test/elf/x86_64/sysroot/ '-Wl,-L$SYSROOT/foo/bar' -lfoo + cc -B. -o out/test/elf/x86_64/sysroot/exe out/test/elf/x86_64/sysroot/c.o -lfoo + cc -B. -o out/test/elf/x86_64/sysroot/exe out/test/elf/x86_64/sysroot/c.o -Wl,--sysroot=out/test/elf/x86_64/sysroot -Wl,-Lfoo/bar -lfoo + on_exit + echo OK OK + exit 0 Test time = 2.90 sec ---------------------------------------------------------- Test Passed. "x86_64-sysroot" end time: Nov 13 20:03 CET "x86_64-sysroot" time elapsed: 00:00:02 ---------------------------------------------------------- 247/322 Testing: x86_64-tls-gd-noplt 247/322 Test: x86_64-tls-gd-noplt Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd-noplt.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-gd-noplt" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd-noplt.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd-noplt.sh .sh ++ testname=tls-gd-noplt ++ echo -n 'Testing tls-gd-noplt ... ' Testing tls-gd-noplt ... ++ t=out/test/elf/x86_64/tls-gd-noplt ++ mkdir -p out/test/elf/x86_64/tls-gd-noplt + cat + gcc -fPIC -fno-plt -c -o out/test/elf/x86_64/tls-gd-noplt/a.o -xc - + cat + gcc -fPIC -fno-plt -c -o out/test/elf/x86_64/tls-gd-noplt/b.o -xc - + cat + gcc -fPIC -fno-plt -c -o out/test/elf/x86_64/tls-gd-noplt/c.o -xc - + cc -B. -shared -o out/test/elf/x86_64/tls-gd-noplt/d.so out/test/elf/x86_64/tls-gd-noplt/b.o + cc -B. -shared -o out/test/elf/x86_64/tls-gd-noplt/e.so out/test/elf/x86_64/tls-gd-noplt/c.o -Wl,--no-relax + cc -B. -o out/test/elf/x86_64/tls-gd-noplt/exe out/test/elf/x86_64/tls-gd-noplt/a.o out/test/elf/x86_64/tls-gd-noplt/d.so out/test/elf/x86_64/tls-gd-noplt/e.so + grep -q '1 2 3 4 5 6' + out/test/elf/x86_64/tls-gd-noplt/exe + cc -B. -o out/test/elf/x86_64/tls-gd-noplt/exe out/test/elf/x86_64/tls-gd-noplt/a.o out/test/elf/x86_64/tls-gd-noplt/d.so out/test/elf/x86_64/tls-gd-noplt/e.so -Wl,-no-relax + out/test/elf/x86_64/tls-gd-noplt/exe + grep -q '1 2 3 4 5 6' + on_exit + echo OK OK + exit 0 Test time = 2.20 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-gd-noplt" end time: Nov 13 20:03 CET "x86_64-tls-gd-noplt" time elapsed: 00:00:02 ---------------------------------------------------------- 261/322 Testing: x86_64-tlsdesc-dlopen 261/322 Test: x86_64-tlsdesc-dlopen Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-dlopen.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tlsdesc-dlopen" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-dlopen.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-dlopen.sh .sh ++ testname=tlsdesc-dlopen ++ echo -n 'Testing tlsdesc-dlopen ... ' Testing tlsdesc-dlopen ... ++ t=out/test/elf/x86_64/tlsdesc-dlopen ++ mkdir -p out/test/elf/x86_64/tlsdesc-dlopen + supports_tlsdesc + '[' x86_64 = arm ']' + '[' -n -mtls-dialect=gnu2 ']' + gcc -fPIC -c -o out/test/elf/x86_64/tlsdesc-dlopen/a.o -xc - -mtls-dialect=gnu2 + cat + cc -B. -shared -o out/test/elf/x86_64/tlsdesc-dlopen/b.so out/test/elf/x86_64/tlsdesc-dlopen/a.o + cat + gcc -fPIC -c -o out/test/elf/x86_64/tlsdesc-dlopen/c.o -xc - -mtls-dialect=gnu2 + cc -B. -o out/test/elf/x86_64/tlsdesc-dlopen/exe out/test/elf/x86_64/tlsdesc-dlopen/c.o -ldl + out/test/elf/x86_64/tlsdesc-dlopen/exe out/test/elf/x86_64/tlsdesc-dlopen/b.so + grep -q '3 0 5' + on_exit + echo OK OK + exit 0 Test time = 0.87 sec ---------------------------------------------------------- Test Passed. "x86_64-tlsdesc-dlopen" end time: Nov 13 20:03 CET "x86_64-tlsdesc-dlopen" time elapsed: 00:00:00 ---------------------------------------------------------- 260/322 Testing: x86_64-tls-small-alignment 260/322 Test: x86_64-tls-small-alignment Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-small-alignment.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-small-alignment" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-small-alignment.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-small-alignment.sh .sh ++ testname=tls-small-alignment ++ echo -n 'Testing tls-small-alignment ... ' Testing tls-small-alignment ... ++ t=out/test/elf/x86_64/tls-small-alignment ++ mkdir -p out/test/elf/x86_64/tls-small-alignment + cc -fPIC -c -o out/test/elf/x86_64/tls-small-alignment/a.o -xassembler - + cat + cat + cc -fPIC -std=c11 -c -o out/test/elf/x86_64/tls-small-alignment/b.o -xc - + cat + cc -fPIC -c -o out/test/elf/x86_64/tls-small-alignment/c.o -xc - + cc -B. -shared -o out/test/elf/x86_64/tls-small-alignment/d.so out/test/elf/x86_64/tls-small-alignment/a.o out/test/elf/x86_64/tls-small-alignment/b.o + cc -B. -o out/test/elf/x86_64/tls-small-alignment/exe1 out/test/elf/x86_64/tls-small-alignment/a.o out/test/elf/x86_64/tls-small-alignment/b.o out/test/elf/x86_64/tls-small-alignment/c.o + out/test/elf/x86_64/tls-small-alignment/exe1 + grep -q '^42$' + cc -B. -o out/test/elf/x86_64/tls-small-alignment/exe2 out/test/elf/x86_64/tls-small-alignment/c.o out/test/elf/x86_64/tls-small-alignment/d.so + out/test/elf/x86_64/tls-small-alignment/exe2 + grep -q '^42$' + on_exit + echo OK OK + exit 0 Test time = 1.08 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-small-alignment" end time: Nov 13 20:03 CET "x86_64-tls-small-alignment" time elapsed: 00:00:01 ---------------------------------------------------------- 248/322 Testing: x86_64-tls-gd-to-ie 248/322 Test: x86_64-tls-gd-to-ie Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd-to-ie.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-gd-to-ie" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd-to-ie.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd-to-ie.sh .sh ++ testname=tls-gd-to-ie ++ echo -n 'Testing tls-gd-to-ie ... ' Testing tls-gd-to-ie ... ++ t=out/test/elf/x86_64/tls-gd-to-ie ++ mkdir -p out/test/elf/x86_64/tls-gd-to-ie + cat + gcc -fPIC -c -o out/test/elf/x86_64/tls-gd-to-ie/a.o -xc - + cat + cc -fPIC -c -o out/test/elf/x86_64/tls-gd-to-ie/b.o -xc - + cc -B. -shared -o out/test/elf/x86_64/tls-gd-to-ie/c.so out/test/elf/x86_64/tls-gd-to-ie/a.o + cc -B. -o out/test/elf/x86_64/tls-gd-to-ie/exe1 out/test/elf/x86_64/tls-gd-to-ie/b.o out/test/elf/x86_64/tls-gd-to-ie/c.so + out/test/elf/x86_64/tls-gd-to-ie/exe1 + grep -q '1 2 3' + cc -B. -shared -o out/test/elf/x86_64/tls-gd-to-ie/d.so out/test/elf/x86_64/tls-gd-to-ie/a.o -Wl,-no-relax + cc -B. -o out/test/elf/x86_64/tls-gd-to-ie/exe2 out/test/elf/x86_64/tls-gd-to-ie/b.o out/test/elf/x86_64/tls-gd-to-ie/d.so + out/test/elf/x86_64/tls-gd-to-ie/exe2 + grep -q '1 2 3' + cc -B. -shared -o out/test/elf/x86_64/tls-gd-to-ie/e.so out/test/elf/x86_64/tls-gd-to-ie/a.o -Wl,-z,nodlopen + cc -B. -o out/test/elf/x86_64/tls-gd-to-ie/exe3 out/test/elf/x86_64/tls-gd-to-ie/b.o out/test/elf/x86_64/tls-gd-to-ie/e.so + out/test/elf/x86_64/tls-gd-to-ie/exe3 + grep -q '1 2 3' + cc -B. -shared -o out/test/elf/x86_64/tls-gd-to-ie/f.so out/test/elf/x86_64/tls-gd-to-ie/a.o -Wl,-z,nodlopen -Wl,-no-relax + cc -B. -o out/test/elf/x86_64/tls-gd-to-ie/exe4 out/test/elf/x86_64/tls-gd-to-ie/b.o out/test/elf/x86_64/tls-gd-to-ie/f.so + out/test/elf/x86_64/tls-gd-to-ie/exe4 + grep -q '1 2 3' + on_exit + echo OK OK + exit 0 Test time = 2.34 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-gd-to-ie" end time: Nov 13 20:03 CET "x86_64-tls-gd-to-ie" time elapsed: 00:00:02 ---------------------------------------------------------- 249/322 Testing: x86_64-tls-gd 249/322 Test: x86_64-tls-gd Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tls-gd" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tls-gd.sh .sh ++ testname=tls-gd ++ echo -n 'Testing tls-gd ... ' Testing tls-gd ... ++ t=out/test/elf/x86_64/tls-gd ++ mkdir -p out/test/elf/x86_64/tls-gd + cat + gcc -fPIC -c -o out/test/elf/x86_64/tls-gd/a.o -xc - + cat + gcc -fPIC -c -o out/test/elf/x86_64/tls-gd/b.o -xc - + gcc -fPIC -c -o out/test/elf/x86_64/tls-gd/c.o -xc - + cat + cc -B. -shared -o out/test/elf/x86_64/tls-gd/d.so out/test/elf/x86_64/tls-gd/b.o + cc -B. -shared -o out/test/elf/x86_64/tls-gd/e.so out/test/elf/x86_64/tls-gd/c.o -Wl,--no-relax + cc -B. -o out/test/elf/x86_64/tls-gd/exe1 out/test/elf/x86_64/tls-gd/a.o out/test/elf/x86_64/tls-gd/d.so out/test/elf/x86_64/tls-gd/e.so + out/test/elf/x86_64/tls-gd/exe1 + grep -q '1 2 3 4 5 6' + cc -B. -o out/test/elf/x86_64/tls-gd/exe2 out/test/elf/x86_64/tls-gd/a.o out/test/elf/x86_64/tls-gd/d.so out/test/elf/x86_64/tls-gd/e.so -Wl,-no-relax + out/test/elf/x86_64/tls-gd/exe2 + grep -q '1 2 3 4 5 6' + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + cc -B. -o out/test/elf/x86_64/tls-gd/exe3 out/test/elf/x86_64/tls-gd/a.o out/test/elf/x86_64/tls-gd/b.o out/test/elf/x86_64/tls-gd/c.o -static + out/test/elf/x86_64/tls-gd/exe3 + grep -q '1 2 3 4 5 6' + cc -B. -o out/test/elf/x86_64/tls-gd/exe4 out/test/elf/x86_64/tls-gd/a.o out/test/elf/x86_64/tls-gd/b.o out/test/elf/x86_64/tls-gd/c.o -static -Wl,-no-relax + out/test/elf/x86_64/tls-gd/exe4 + grep -q '1 2 3 4 5 6' + on_exit + echo OK OK + exit 0 Test time = 2.30 sec ---------------------------------------------------------- Test Passed. "x86_64-tls-gd" end time: Nov 13 20:03 CET "x86_64-tls-gd" time elapsed: 00:00:02 ---------------------------------------------------------- 218/322 Testing: x86_64-shuffle-sections 218/322 Test: x86_64-shuffle-sections Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shuffle-sections.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-shuffle-sections" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shuffle-sections.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shuffle-sections.sh .sh ++ testname=shuffle-sections ++ echo -n 'Testing shuffle-sections ... ' Testing shuffle-sections ... ++ t=out/test/elf/x86_64/shuffle-sections ++ mkdir -p out/test/elf/x86_64/shuffle-sections + cat + cc -o out/test/elf/x86_64/shuffle-sections/a.o -ffunction-sections -c -xc - + cc -o out/test/elf/x86_64/shuffle-sections/b.o -ffunction-sections -c -xc - ++ seq 1 1000 + for i in `seq 1 1000` + echo 'void fn1() {}' + for i in `seq 1 1000` + echo 'void fn2() {}' + for i in `seq 1 1000` + echo 'void fn3() {}' + for i in `seq 1 1000` + echo 'void fn4() {}' + for i in `seq 1 1000` + echo 'void fn5() {}' + for i in `seq 1 1000` + echo 'void fn6() {}' + for i in `seq 1 1000` + echo 'void fn7() {}' + for i in `seq 1 1000` + echo 'void fn8() {}' + for i in `seq 1 1000` + echo 'void fn9() {}' + for i in `seq 1 1000` + echo 'void fn10() {}' + for i in `seq 1 1000` + echo 'void fn11() {}' + for i in `seq 1 1000` + echo 'void fn12() {}' + for i in `seq 1 1000` + echo 'void fn13() {}' + for i in `seq 1 1000` + echo 'void fn14() {}' + for i in `seq 1 1000` + echo 'void fn15() {}' + for i in `seq 1 1000` + echo 'void fn16() {}' + for i in `seq 1 1000` + echo 'void fn17() {}' + for i in `seq 1 1000` + echo 'void fn18() {}' + for i in `seq 1 1000` + echo 'void fn19() {}' + for i in `seq 1 1000` + echo 'void fn20() {}' + for i in `seq 1 1000` + echo 'void fn21() {}' + for i in `seq 1 1000` + echo 'void fn22() {}' + for i in `seq 1 1000` + echo 'void fn23() {}' + for i in `seq 1 1000` + echo 'void fn24() {}' + for i in `seq 1 1000` + echo 'void fn25() {}' + for i in `seq 1 1000` + echo 'void fn26() {}' + for i in `seq 1 1000` + echo 'void fn27() {}' + for i in `seq 1 1000` + echo 'void fn28() {}' + for i in `seq 1 1000` + echo 'void fn29() {}' + for i in `seq 1 1000` + echo 'void fn30() {}' + for i in `seq 1 1000` + echo 'void fn31() {}' + for i in `seq 1 1000` + echo 'void fn32() {}' + for i in `seq 1 1000` + echo 'void fn33() {}' + for i in `seq 1 1000` + echo 'void fn34() {}' + for i in `seq 1 1000` + echo 'void fn35() {}' + for i in `seq 1 1000` + echo 'void fn36() {}' + for i in `seq 1 1000` + echo 'void fn37() {}' + for i in `seq 1 1000` + echo 'void fn38() {}' + for i in `seq 1 1000` + echo 'void fn39() {}' + for i in `seq 1 1000` + echo 'void fn40() {}' + for i in `seq 1 1000` + echo 'void fn41() {}' + for i in `seq 1 1000` + echo 'void fn42() {}' + for i in `seq 1 1000` + echo 'void fn43() {}' + for i in `seq 1 1000` + echo 'void fn44() {}' + for i in `seq 1 1000` + echo 'void fn45() {}' + for i in `seq 1 1000` + echo 'void fn46() {}' + for i in `seq 1 1000` + echo 'void fn47() {}' + for i in `seq 1 1000` + echo 'void fn48() {}' + for i in `seq 1 1000` + echo 'void fn49() {}' + for i in `seq 1 1000` + echo 'void fn50() {}' + for i in `seq 1 1000` + echo 'void fn51() {}' + for i in `seq 1 1000` + echo 'void fn52() {}' + for i in `seq 1 1000` + echo 'void fn53() {}' + for i in `seq 1 1000` + echo 'void fn54() {}' + for i in `seq 1 1000` + echo 'void fn55() {}' + for i in `seq 1 1000` + echo 'void fn56() {}' + for i in `seq 1 1000` + echo 'void fn57() {}' + for i in `seq 1 1000` + echo 'void fn58() {}' + for i in `seq 1 1000` + echo 'void fn59() {}' + for i in `seq 1 1000` + echo 'void fn60() {}' + for i in `seq 1 1000` + echo 'void fn61() {}' + for i in `seq 1 1000` + echo 'void fn62() {}' + for i in `seq 1 1000` + echo 'void fn63() {}' + for i in `seq 1 1000` + echo 'void fn64() {}' + for i in `seq 1 1000` + echo 'void fn65() {}' + for i in `seq 1 1000` + echo 'void fn66() {}' + for i in `seq 1 1000` + echo 'void fn67() {}' + for i in `seq 1 1000` + echo 'void fn68() {}' + for i in `seq 1 1000` + echo 'void fn69() {}' + for i in `seq 1 1000` + echo 'void fn70() {}' + for i in `seq 1 1000` + echo 'void fn71() {}' + for i in `seq 1 1000` + echo 'void fn72() {}' + for i in `seq 1 1000` + echo 'void fn73() {}' + for i in `seq 1 1000` + echo 'void fn74() {}' + for i in `seq 1 1000` + echo 'void fn75() {}' + for i in `seq 1 1000` + echo 'void fn76() {}' + for i in `seq 1 1000` + echo 'void fn77() {}' + for i in `seq 1 1000` + echo 'void fn78() {}' + for i in `seq 1 1000` + echo 'void fn79() {}' + for i in `seq 1 1000` + echo 'void fn80() {}' + for i in `seq 1 1000` + echo 'void fn81() {}' + for i in `seq 1 1000` + echo 'void fn82() {}' + for i in `seq 1 1000` + echo 'void fn83() {}' + for i in `seq 1 1000` + echo 'void fn84() {}' + for i in `seq 1 1000` + echo 'void fn85() {}' + for i in `seq 1 1000` + echo 'void fn86() {}' + for i in `seq 1 1000` + echo 'void fn87() {}' + for i in `seq 1 1000` + echo 'void fn88() {}' + for i in `seq 1 1000` + echo 'void fn89() {}' + for i in `seq 1 1000` + echo 'void fn90() {}' + for i in `seq 1 1000` + echo 'void fn91() {}' + for i in `seq 1 1000` + echo 'void fn92() {}' + for i in `seq 1 1000` + echo 'void fn93() {}' + for i in `seq 1 1000` + echo 'void fn94() {}' + for i in `seq 1 1000` + echo 'void fn95() {}' + for i in `seq 1 1000` + echo 'void fn96() {}' + for i in `seq 1 1000` + echo 'void fn97() {}' + for i in `seq 1 1000` + echo 'void fn98() {}' + for i in `seq 1 1000` + echo 'void fn99() {}' + for i in `seq 1 1000` + echo 'void fn100() {}' + for i in `seq 1 1000` + echo 'void fn101() {}' + for i in `seq 1 1000` + echo 'void fn102() {}' + for i in `seq 1 1000` + echo 'void fn103() {}' + for i in `seq 1 1000` + echo 'void fn104() {}' + for i in `seq 1 1000` + echo 'void fn105() {}' + for i in `seq 1 1000` + echo 'void fn106() {}' + for i in `seq 1 1000` + echo 'void fn107() {}' + for i in `seq 1 1000` + echo 'void fn108() {}' + for i in `seq 1 1000` + echo 'void fn109() {}' + for i in `seq 1 1000` + echo 'void fn110() {}' + for i in `seq 1 1000` + echo 'void fn111() {}' + for i in `seq 1 1000` + echo 'void fn112() {}' + for i in `seq 1 1000` + echo 'void fn113() {}' + for i in `seq 1 1000` + echo 'void fn114() {}' + for i in `seq 1 1000` + echo 'void fn115() {}' + for i in `seq 1 1000` + echo 'void fn116() {}' + for i in `seq 1 1000` + echo 'void fn117() {}' + for i in `seq 1 1000` + echo 'void fn118() {}' + for i in `seq 1 1000` + echo 'void fn119() {}' + for i in `seq 1 1000` + echo 'void fn120() {}' + for i in `seq 1 1000` + echo 'void fn121() {}' + for i in `seq 1 1000` + echo 'void fn122() {}' + for i in `seq 1 1000` + echo 'void fn123() {}' + for i in `seq 1 1000` + echo 'void fn124() {}' + for i in `seq 1 1000` + echo 'void fn125() {}' + for i in `seq 1 1000` + echo 'void fn126() {}' + for i in `seq 1 1000` + echo 'void fn127() {}' + for i in `seq 1 1000` + echo 'void fn128() {}' + for i in `seq 1 1000` + echo 'void fn129() {}' + for i in `seq 1 1000` + echo 'void fn130() {}' + for i in `seq 1 1000` + echo 'void fn131() {}' + for i in `seq 1 1000` + echo 'void fn132() {}' + for i in `seq 1 1000` + echo 'void fn133() {}' + for i in `seq 1 1000` + echo 'void fn134() {}' + for i in `seq 1 1000` + echo 'void fn135() {}' + for i in `seq 1 1000` + echo 'void fn136() {}' + for i in `seq 1 1000` + echo 'void fn137() {}' + for i in `seq 1 1000` + echo 'void fn138() {}' + for i in `seq 1 1000` + echo 'void fn139() {}' + for i in `seq 1 1000` + echo 'void fn140() {}' + for i in `seq 1 1000` + echo 'void fn141() {}' + for i in `seq 1 1000` + echo 'void fn142() {}' + for i in `seq 1 1000` + echo 'void fn143() {}' + for i in `seq 1 1000` + echo 'void fn144() {}' + for i in `seq 1 1000` + echo 'void fn145() {}' + for i in `seq 1 1000` + echo 'void fn146() {}' + for i in `seq 1 1000` + echo 'void fn147() {}' + for i in `seq 1 1000` + echo 'void fn148() {}' + for i in `seq 1 1000` + echo 'void fn149() {}' + for i in `seq 1 1000` + echo 'void fn150() {}' + for i in `seq 1 1000` + echo 'void fn151() {}' + for i in `seq 1 1000` + echo 'void fn152() {}' + for i in `seq 1 1000` + echo 'void fn153() {}' + for i in `seq 1 1000` + echo 'void fn154() {}' + for i in `seq 1 1000` + echo 'void fn155() {}' + for i in `seq 1 1000` + echo 'void fn156() {}' + for i in `seq 1 1000` + echo 'void fn157() {}' + for i in `seq 1 1000` + echo 'void fn158() {}' + for i in `seq 1 1000` + echo 'void fn159() {}' + for i in `seq 1 1000` + echo 'void fn160() {}' + for i in `seq 1 1000` + echo 'void fn161() {}' + for i in `seq 1 1000` + echo 'void fn162() {}' + for i in `seq 1 1000` + echo 'void fn163() {}' + for i in `seq 1 1000` + echo 'void fn164() {}' + for i in `seq 1 1000` + echo 'void fn165() {}' + for i in `seq 1 1000` + echo 'void fn166() {}' + for i in `seq 1 1000` + echo 'void fn167() {}' + for i in `seq 1 1000` + echo 'void fn168() {}' + for i in `seq 1 1000` + echo 'void fn169() {}' + for i in `seq 1 1000` + echo 'void fn170() {}' + for i in `seq 1 1000` + echo 'void fn171() {}' + for i in `seq 1 1000` + echo 'void fn172() {}' + for i in `seq 1 1000` + echo 'void fn173() {}' + for i in `seq 1 1000` + echo 'void fn174() {}' + for i in `seq 1 1000` + echo 'void fn175() {}' + for i in `seq 1 1000` + echo 'void fn176() {}' + for i in `seq 1 1000` + echo 'void fn177() {}' + for i in `seq 1 1000` + echo 'void fn178() {}' + for i in `seq 1 1000` + echo 'void fn179() {}' + for i in `seq 1 1000` + echo 'void fn180() {}' + for i in `seq 1 1000` + echo 'void fn181() {}' + for i in `seq 1 1000` + echo 'void fn182() {}' + for i in `seq 1 1000` + echo 'void fn183() {}' + for i in `seq 1 1000` + echo 'void fn184() {}' + for i in `seq 1 1000` + echo 'void fn185() {}' + for i in `seq 1 1000` + echo 'void fn186() {}' + for i in `seq 1 1000` + echo 'void fn187() {}' + for i in `seq 1 1000` + echo 'void fn188() {}' + for i in `seq 1 1000` + echo 'void fn189() {}' + for i in `seq 1 1000` + echo 'void fn190() {}' + for i in `seq 1 1000` + echo 'void fn191() {}' + for i in `seq 1 1000` + echo 'void fn192() {}' + for i in `seq 1 1000` + echo 'void fn193() {}' + for i in `seq 1 1000` + echo 'void fn194() {}' + for i in `seq 1 1000` + echo 'void fn195() {}' + for i in `seq 1 1000` + echo 'void fn196() {}' + for i in `seq 1 1000` + echo 'void fn197() {}' + for i in `seq 1 1000` + echo 'void fn198() {}' + for i in `seq 1 1000` + echo 'void fn199() {}' + for i in `seq 1 1000` + echo 'void fn200() {}' + for i in `seq 1 1000` + echo 'void fn201() {}' + for i in `seq 1 1000` + echo 'void fn202() {}' + for i in `seq 1 1000` + echo 'void fn203() {}' + for i in `seq 1 1000` + echo 'void fn204() {}' + for i in `seq 1 1000` + echo 'void fn205() {}' + for i in `seq 1 1000` + echo 'void fn206() {}' + for i in `seq 1 1000` + echo 'void fn207() {}' + for i in `seq 1 1000` + echo 'void fn208() {}' + for i in `seq 1 1000` + echo 'void fn209() {}' + for i in `seq 1 1000` + echo 'void fn210() {}' + for i in `seq 1 1000` + echo 'void fn211() {}' + for i in `seq 1 1000` + echo 'void fn212() {}' + for i in `seq 1 1000` + echo 'void fn213() {}' + for i in `seq 1 1000` + echo 'void fn214() {}' + for i in `seq 1 1000` + echo 'void fn215() {}' + for i in `seq 1 1000` + echo 'void fn216() {}' + for i in `seq 1 1000` + echo 'void fn217() {}' + for i in `seq 1 1000` + echo 'void fn218() {}' + for i in `seq 1 1000` + echo 'void fn219() {}' + for i in `seq 1 1000` + echo 'void fn220() {}' + for i in `seq 1 1000` + echo 'void fn221() {}' + for i in `seq 1 1000` + echo 'void fn222() {}' + for i in `seq 1 1000` + echo 'void fn223() {}' + for i in `seq 1 1000` + echo 'void fn224() {}' + for i in `seq 1 1000` + echo 'void fn225() {}' + for i in `seq 1 1000` + echo 'void fn226() {}' + for i in `seq 1 1000` + echo 'void fn227() {}' + for i in `seq 1 1000` + echo 'void fn228() {}' + for i in `seq 1 1000` + echo 'void fn229() {}' + for i in `seq 1 1000` + echo 'void fn230() {}' + for i in `seq 1 1000` + echo 'void fn231() {}' + for i in `seq 1 1000` + echo 'void fn232() {}' + for i in `seq 1 1000` + echo 'void fn233() {}' + for i in `seq 1 1000` + echo 'void fn234() {}' + for i in `seq 1 1000` + echo 'void fn235() {}' + for i in `seq 1 1000` + echo 'void fn236() {}' + for i in `seq 1 1000` + echo 'void fn237() {}' + for i in `seq 1 1000` + echo 'void fn238() {}' + for i in `seq 1 1000` + echo 'void fn239() {}' + for i in `seq 1 1000` + echo 'void fn240() {}' + for i in `seq 1 1000` + echo 'void fn241() {}' + for i in `seq 1 1000` + echo 'void fn242() {}' + for i in `seq 1 1000` + echo 'void fn243() {}' + for i in `seq 1 1000` + echo 'void fn244() {}' + for i in `seq 1 1000` + echo 'void fn245() {}' + for i in `seq 1 1000` + echo 'void fn246() {}' + for i in `seq 1 1000` + echo 'void fn247() {}' + for i in `seq 1 1000` + echo 'void fn248() {}' + for i in `seq 1 1000` + echo 'void fn249() {}' + for i in `seq 1 1000` + echo 'void fn250() {}' + for i in `seq 1 1000` + echo 'void fn251() {}' + for i in `seq 1 1000` + echo 'void fn252() {}' + for i in `seq 1 1000` + echo 'void fn253() {}' + for i in `seq 1 1000` + echo 'void fn254() {}' + for i in `seq 1 1000` + echo 'void fn255() {}' + for i in `seq 1 1000` + echo 'void fn256() {}' + for i in `seq 1 1000` + echo 'void fn257() {}' + for i in `seq 1 1000` + echo 'void fn258() {}' + for i in `seq 1 1000` + echo 'void fn259() {}' + for i in `seq 1 1000` + echo 'void fn260() {}' + for i in `seq 1 1000` + echo 'void fn261() {}' + for i in `seq 1 1000` + echo 'void fn262() {}' + for i in `seq 1 1000` + echo 'void fn263() {}' + for i in `seq 1 1000` + echo 'void fn264() {}' + for i in `seq 1 1000` + echo 'void fn265() {}' + for i in `seq 1 1000` + echo 'void fn266() {}' + for i in `seq 1 1000` + echo 'void fn267() {}' + for i in `seq 1 1000` + echo 'void fn268() {}' + for i in `seq 1 1000` + echo 'void fn269() {}' + for i in `seq 1 1000` + echo 'void fn270() {}' + for i in `seq 1 1000` + echo 'void fn271() {}' + for i in `seq 1 1000` + echo 'void fn272() {}' + for i in `seq 1 1000` + echo 'void fn273() {}' + for i in `seq 1 1000` + echo 'void fn274() {}' + for i in `seq 1 1000` + echo 'void fn275() {}' + for i in `seq 1 1000` + echo 'void fn276() {}' + for i in `seq 1 1000` + echo 'void fn277() {}' + for i in `seq 1 1000` + echo 'void fn278() {}' + for i in `seq 1 1000` + echo 'void fn279() {}' + for i in `seq 1 1000` + echo 'void fn280() {}' + for i in `seq 1 1000` + echo 'void fn281() {}' + for i in `seq 1 1000` + echo 'void fn282() {}' + for i in `seq 1 1000` + echo 'void fn283() {}' + for i in `seq 1 1000` + echo 'void fn284() {}' + for i in `seq 1 1000` + echo 'void fn285() {}' + for i in `seq 1 1000` + echo 'void fn286() {}' + for i in `seq 1 1000` + echo 'void fn287() {}' + for i in `seq 1 1000` + echo 'void fn288() {}' + for i in `seq 1 1000` + echo 'void fn289() {}' + for i in `seq 1 1000` + echo 'void fn290() {}' + for i in `seq 1 1000` + echo 'void fn291() {}' + for i in `seq 1 1000` + echo 'void fn292() {}' + for i in `seq 1 1000` + echo 'void fn293() {}' + for i in `seq 1 1000` + echo 'void fn294() {}' + for i in `seq 1 1000` + echo 'void fn295() {}' + for i in `seq 1 1000` + echo 'void fn296() {}' + for i in `seq 1 1000` + echo 'void fn297() {}' + for i in `seq 1 1000` + echo 'void fn298() {}' + for i in `seq 1 1000` + echo 'void fn299() {}' + for i in `seq 1 1000` + echo 'void fn300() {}' + for i in `seq 1 1000` + echo 'void fn301() {}' + for i in `seq 1 1000` + echo 'void fn302() {}' + for i in `seq 1 1000` + echo 'void fn303() {}' + for i in `seq 1 1000` + echo 'void fn304() {}' + for i in `seq 1 1000` + echo 'void fn305() {}' + for i in `seq 1 1000` + echo 'void fn306() {}' + for i in `seq 1 1000` + echo 'void fn307() {}' + for i in `seq 1 1000` + echo 'void fn308() {}' + for i in `seq 1 1000` + echo 'void fn309() {}' + for i in `seq 1 1000` + echo 'void fn310() {}' + for i in `seq 1 1000` + echo 'void fn311() {}' + for i in `seq 1 1000` + echo 'void fn312() {}' + for i in `seq 1 1000` + echo 'void fn313() {}' + for i in `seq 1 1000` + echo 'void fn314() {}' + for i in `seq 1 1000` + echo 'void fn315() {}' + for i in `seq 1 1000` + echo 'void fn316() {}' + for i in `seq 1 1000` + echo 'void fn317() {}' + for i in `seq 1 1000` + echo 'void fn318() {}' + for i in `seq 1 1000` + echo 'void fn319() {}' + for i in `seq 1 1000` + echo 'void fn320() {}' + for i in `seq 1 1000` + echo 'void fn321() {}' + for i in `seq 1 1000` + echo 'void fn322() {}' + for i in `seq 1 1000` + echo 'void fn323() {}' + for i in `seq 1 1000` + echo 'void fn324() {}' + for i in `seq 1 1000` + echo 'void fn325() {}' + for i in `seq 1 1000` + echo 'void fn326() {}' + for i in `seq 1 1000` + echo 'void fn327() {}' + for i in `seq 1 1000` + echo 'void fn328() {}' + for i in `seq 1 1000` + echo 'void fn329() {}' + for i in `seq 1 1000` + echo 'void fn330() {}' + for i in `seq 1 1000` + echo 'void fn331() {}' + for i in `seq 1 1000` + echo 'void fn332() {}' + for i in `seq 1 1000` + echo 'void fn333() {}' + for i in `seq 1 1000` + echo 'void fn334() {}' + for i in `seq 1 1000` + echo 'void fn335() {}' + for i in `seq 1 1000` + echo 'void fn336() {}' + for i in `seq 1 1000` + echo 'void fn337() {}' + for i in `seq 1 1000` + echo 'void fn338() {}' + for i in `seq 1 1000` + echo 'void fn339() {}' + for i in `seq 1 1000` + echo 'void fn340() {}' + for i in `seq 1 1000` + echo 'void fn341() {}' + for i in `seq 1 1000` + echo 'void fn342() {}' + for i in `seq 1 1000` + echo 'void fn343() {}' + for i in `seq 1 1000` + echo 'void fn344() {}' + for i in `seq 1 1000` + echo 'void fn345() {}' + for i in `seq 1 1000` + echo 'void fn346() {}' + for i in `seq 1 1000` + echo 'void fn347() {}' + for i in `seq 1 1000` + echo 'void fn348() {}' + for i in `seq 1 1000` + echo 'void fn349() {}' + for i in `seq 1 1000` + echo 'void fn350() {}' + for i in `seq 1 1000` + echo 'void fn351() {}' + for i in `seq 1 1000` + echo 'void fn352() {}' + for i in `seq 1 1000` + echo 'void fn353() {}' + for i in `seq 1 1000` + echo 'void fn354() {}' + for i in `seq 1 1000` + echo 'void fn355() {}' + for i in `seq 1 1000` + echo 'void fn356() {}' + for i in `seq 1 1000` + echo 'void fn357() {}' + for i in `seq 1 1000` + echo 'void fn358() {}' + for i in `seq 1 1000` + echo 'void fn359() {}' + for i in `seq 1 1000` + echo 'void fn360() {}' + for i in `seq 1 1000` + echo 'void fn361() {}' + for i in `seq 1 1000` + echo 'void fn362() {}' + for i in `seq 1 1000` + echo 'void fn363() {}' + for i in `seq 1 1000` + echo 'void fn364() {}' + for i in `seq 1 1000` + echo 'void fn365() {}' + for i in `seq 1 1000` + echo 'void fn366() {}' + for i in `seq 1 1000` + echo 'void fn367() {}' + for i in `seq 1 1000` + echo 'void fn368() {}' + for i in `seq 1 1000` + echo 'void fn369() {}' + for i in `seq 1 1000` + echo 'void fn370() {}' + for i in `seq 1 1000` + echo 'void fn371() {}' + for i in `seq 1 1000` + echo 'void fn372() {}' + for i in `seq 1 1000` + echo 'void fn373() {}' + for i in `seq 1 1000` + echo 'void fn374() {}' + for i in `seq 1 1000` + echo 'void fn375() {}' + for i in `seq 1 1000` + echo 'void fn376() {}' + for i in `seq 1 1000` + echo 'void fn377() {}' + for i in `seq 1 1000` + echo 'void fn378() {}' + for i in `seq 1 1000` + echo 'void fn379() {}' + for i in `seq 1 1000` + echo 'void fn380() {}' + for i in `seq 1 1000` + echo 'void fn381() {}' + for i in `seq 1 1000` + echo 'void fn382() {}' + for i in `seq 1 1000` + echo 'void fn383() {}' + for i in `seq 1 1000` + echo 'void fn384() {}' + for i in `seq 1 1000` + echo 'void fn385() {}' + for i in `seq 1 1000` + echo 'void fn386() {}' + for i in `seq 1 1000` + echo 'void fn387() {}' + for i in `seq 1 1000` + echo 'void fn388() {}' + for i in `seq 1 1000` + echo 'void fn389() {}' + for i in `seq 1 1000` + echo 'void fn390() {}' + for i in `seq 1 1000` + echo 'void fn391() {}' + for i in `seq 1 1000` + echo 'void fn392() {}' + for i in `seq 1 1000` + echo 'void fn393() {}' + for i in `seq 1 1000` + echo 'void fn394() {}' + for i in `seq 1 1000` + echo 'void fn395() {}' + for i in `seq 1 1000` + echo 'void fn396() {}' + for i in `seq 1 1000` + echo 'void fn397() {}' + for i in `seq 1 1000` + echo 'void fn398() {}' + for i in `seq 1 1000` + echo 'void fn399() {}' + for i in `seq 1 1000` + echo 'void fn400() {}' + for i in `seq 1 1000` + echo 'void fn401() {}' + for i in `seq 1 1000` + echo 'void fn402() {}' + for i in `seq 1 1000` + echo 'void fn403() {}' + for i in `seq 1 1000` + echo 'void fn404() {}' + for i in `seq 1 1000` + echo 'void fn405() {}' + for i in `seq 1 1000` + echo 'void fn406() {}' + for i in `seq 1 1000` + echo 'void fn407() {}' + for i in `seq 1 1000` + echo 'void fn408() {}' + for i in `seq 1 1000` + echo 'void fn409() {}' + for i in `seq 1 1000` + echo 'void fn410() {}' + for i in `seq 1 1000` + echo 'void fn411() {}' + for i in `seq 1 1000` + echo 'void fn412() {}' + for i in `seq 1 1000` + echo 'void fn413() {}' + for i in `seq 1 1000` + echo 'void fn414() {}' + for i in `seq 1 1000` + echo 'void fn415() {}' + for i in `seq 1 1000` + echo 'void fn416() {}' + for i in `seq 1 1000` + echo 'void fn417() {}' + for i in `seq 1 1000` + echo 'void fn418() {}' + for i in `seq 1 1000` + echo 'void fn419() {}' + for i in `seq 1 1000` + echo 'void fn420() {}' + for i in `seq 1 1000` + echo 'void fn421() {}' + for i in `seq 1 1000` + echo 'void fn422() {}' + for i in `seq 1 1000` + echo 'void fn423() {}' + for i in `seq 1 1000` + echo 'void fn424() {}' + for i in `seq 1 1000` + echo 'void fn425() {}' + for i in `seq 1 1000` + echo 'void fn426() {}' + for i in `seq 1 1000` + echo 'void fn427() {}' + for i in `seq 1 1000` + echo 'void fn428() {}' + for i in `seq 1 1000` + echo 'void fn429() {}' + for i in `seq 1 1000` + echo 'void fn430() {}' + for i in `seq 1 1000` + echo 'void fn431() {}' + for i in `seq 1 1000` + echo 'void fn432() {}' + for i in `seq 1 1000` + echo 'void fn433() {}' + for i in `seq 1 1000` + echo 'void fn434() {}' + for i in `seq 1 1000` + echo 'void fn435() {}' + for i in `seq 1 1000` + echo 'void fn436() {}' + for i in `seq 1 1000` + echo 'void fn437() {}' + for i in `seq 1 1000` + echo 'void fn438() {}' + for i in `seq 1 1000` + echo 'void fn439() {}' + for i in `seq 1 1000` + echo 'void fn440() {}' + for i in `seq 1 1000` + echo 'void fn441() {}' + for i in `seq 1 1000` + echo 'void fn442() {}' + for i in `seq 1 1000` + echo 'void fn443() {}' + for i in `seq 1 1000` + echo 'void fn444() {}' + for i in `seq 1 1000` + echo 'void fn445() {}' + for i in `seq 1 1000` + echo 'void fn446() {}' + for i in `seq 1 1000` + echo 'void fn447() {}' + for i in `seq 1 1000` + echo 'void fn448() {}' + for i in `seq 1 1000` + echo 'void fn449() {}' + for i in `seq 1 1000` + echo 'void fn450() {}' + for i in `seq 1 1000` + echo 'void fn451() {}' + for i in `seq 1 1000` + echo 'void fn452() {}' + for i in `seq 1 1000` + echo 'void fn453() {}' + for i in `seq 1 1000` + echo 'void fn454() {}' + for i in `seq 1 1000` + echo 'void fn455() {}' + for i in `seq 1 1000` + echo 'void fn456() {}' + for i in `seq 1 1000` + echo 'void fn457() {}' + for i in `seq 1 1000` + echo 'void fn458() {}' + for i in `seq 1 1000` + echo 'void fn459() {}' + for i in `seq 1 1000` + echo 'void fn460() {}' + for i in `seq 1 1000` + echo 'void fn461() {}' + for i in `seq 1 1000` + echo 'void fn462() {}' + for i in `seq 1 1000` + echo 'void fn463() {}' + for i in `seq 1 1000` + echo 'void fn464() {}' + for i in `seq 1 1000` + echo 'void fn465() {}' + for i in `seq 1 1000` + echo 'void fn466() {}' + for i in `seq 1 1000` + echo 'void fn467() {}' + for i in `seq 1 1000` + echo 'void fn468() {}' + for i in `seq 1 1000` + echo 'void fn469() {}' + for i in `seq 1 1000` + echo 'void fn470() {}' + for i in `seq 1 1000` + echo 'void fn471() {}' + for i in `seq 1 1000` + echo 'void fn472() {}' + for i in `seq 1 1000` + echo 'void fn473() {}' + for i in `seq 1 1000` + echo 'void fn474() {}' + for i in `seq 1 1000` + echo 'void fn475() {}' + for i in `seq 1 1000` + echo 'void fn476() {}' + for i in `seq 1 1000` + echo 'void fn477() {}' + for i in `seq 1 1000` + echo 'void fn478() {}' + for i in `seq 1 1000` + echo 'void fn479() {}' + for i in `seq 1 1000` + echo 'void fn480() {}' + for i in `seq 1 1000` + echo 'void fn481() {}' + for i in `seq 1 1000` + echo 'void fn482() {}' + for i in `seq 1 1000` + echo 'void fn483() {}' + for i in `seq 1 1000` + echo 'void fn484() {}' + for i in `seq 1 1000` + echo 'void fn485() {}' + for i in `seq 1 1000` + echo 'void fn486() {}' + for i in `seq 1 1000` + echo 'void fn487() {}' + for i in `seq 1 1000` + echo 'void fn488() {}' + for i in `seq 1 1000` + echo 'void fn489() {}' + for i in `seq 1 1000` + echo 'void fn490() {}' + for i in `seq 1 1000` + echo 'void fn491() {}' + for i in `seq 1 1000` + echo 'void fn492() {}' + for i in `seq 1 1000` + echo 'void fn493() {}' + for i in `seq 1 1000` + echo 'void fn494() {}' + for i in `seq 1 1000` + echo 'void fn495() {}' + for i in `seq 1 1000` + echo 'void fn496() {}' + for i in `seq 1 1000` + echo 'void fn497() {}' + for i in `seq 1 1000` + echo 'void fn498() {}' + for i in `seq 1 1000` + echo 'void fn499() {}' + for i in `seq 1 1000` + echo 'void fn500() {}' + for i in `seq 1 1000` + echo 'void fn501() {}' + for i in `seq 1 1000` + echo 'void fn502() {}' + for i in `seq 1 1000` + echo 'void fn503() {}' + for i in `seq 1 1000` + echo 'void fn504() {}' + for i in `seq 1 1000` + echo 'void fn505() {}' + for i in `seq 1 1000` + echo 'void fn506() {}' + for i in `seq 1 1000` + echo 'void fn507() {}' + for i in `seq 1 1000` + echo 'void fn508() {}' + for i in `seq 1 1000` + echo 'void fn509() {}' + for i in `seq 1 1000` + echo 'void fn510() {}' + for i in `seq 1 1000` + echo 'void fn511() {}' + for i in `seq 1 1000` + echo 'void fn512() {}' + for i in `seq 1 1000` + echo 'void fn513() {}' + for i in `seq 1 1000` + echo 'void fn514() {}' + for i in `seq 1 1000` + echo 'void fn515() {}' + for i in `seq 1 1000` + echo 'void fn516() {}' + for i in `seq 1 1000` + echo 'void fn517() {}' + for i in `seq 1 1000` + echo 'void fn518() {}' + for i in `seq 1 1000` + echo 'void fn519() {}' + for i in `seq 1 1000` + echo 'void fn520() {}' + for i in `seq 1 1000` + echo 'void fn521() {}' + for i in `seq 1 1000` + echo 'void fn522() {}' + for i in `seq 1 1000` + echo 'void fn523() {}' + for i in `seq 1 1000` + echo 'void fn524() {}' + for i in `seq 1 1000` + echo 'void fn525() {}' + for i in `seq 1 1000` + echo 'void fn526() {}' + for i in `seq 1 1000` + echo 'void fn527() {}' + for i in `seq 1 1000` + echo 'void fn528() {}' + for i in `seq 1 1000` + echo 'void fn529() {}' + for i in `seq 1 1000` + echo 'void fn530() {}' + for i in `seq 1 1000` + echo 'void fn531() {}' + for i in `seq 1 1000` + echo 'void fn532() {}' + for i in `seq 1 1000` + echo 'void fn533() {}' + for i in `seq 1 1000` + echo 'void fn534() {}' + for i in `seq 1 1000` + echo 'void fn535() {}' + for i in `seq 1 1000` + echo 'void fn536() {}' + for i in `seq 1 1000` + echo 'void fn537() {}' + for i in `seq 1 1000` + echo 'void fn538() {}' + for i in `seq 1 1000` + echo 'void fn539() {}' + for i in `seq 1 1000` + echo 'void fn540() {}' + for i in `seq 1 1000` + echo 'void fn541() {}' + for i in `seq 1 1000` + echo 'void fn542() {}' + for i in `seq 1 1000` + echo 'void fn543() {}' + for i in `seq 1 1000` + echo 'void fn544() {}' + for i in `seq 1 1000` + echo 'void fn545() {}' + for i in `seq 1 1000` + echo 'void fn546() {}' + for i in `seq 1 1000` + echo 'void fn547() {}' + for i in `seq 1 1000` + echo 'void fn548() {}' + for i in `seq 1 1000` + echo 'void fn549() {}' + for i in `seq 1 1000` + echo 'void fn550() {}' + for i in `seq 1 1000` + echo 'void fn551() {}' + for i in `seq 1 1000` + echo 'void fn552() {}' + for i in `seq 1 1000` + echo 'void fn553() {}' + for i in `seq 1 1000` + echo 'void fn554() {}' + for i in `seq 1 1000` + echo 'void fn555() {}' + for i in `seq 1 1000` + echo 'void fn556() {}' + for i in `seq 1 1000` + echo 'void fn557() {}' + for i in `seq 1 1000` + echo 'void fn558() {}' + for i in `seq 1 1000` + echo 'void fn559() {}' + for i in `seq 1 1000` + echo 'void fn560() {}' + for i in `seq 1 1000` + echo 'void fn561() {}' + for i in `seq 1 1000` + echo 'void fn562() {}' + for i in `seq 1 1000` + echo 'void fn563() {}' + for i in `seq 1 1000` + echo 'void fn564() {}' + for i in `seq 1 1000` + echo 'void fn565() {}' + for i in `seq 1 1000` + echo 'void fn566() {}' + for i in `seq 1 1000` + echo 'void fn567() {}' + for i in `seq 1 1000` + echo 'void fn568() {}' + for i in `seq 1 1000` + echo 'void fn569() {}' + for i in `seq 1 1000` + echo 'void fn570() {}' + for i in `seq 1 1000` + echo 'void fn571() {}' + for i in `seq 1 1000` + echo 'void fn572() {}' + for i in `seq 1 1000` + echo 'void fn573() {}' + for i in `seq 1 1000` + echo 'void fn574() {}' + for i in `seq 1 1000` + echo 'void fn575() {}' + for i in `seq 1 1000` + echo 'void fn576() {}' + for i in `seq 1 1000` + echo 'void fn577() {}' + for i in `seq 1 1000` + echo 'void fn578() {}' + for i in `seq 1 1000` + echo 'void fn579() {}' + for i in `seq 1 1000` + echo 'void fn580() {}' + for i in `seq 1 1000` + echo 'void fn581() {}' + for i in `seq 1 1000` + echo 'void fn582() {}' + for i in `seq 1 1000` + echo 'void fn583() {}' + for i in `seq 1 1000` + echo 'void fn584() {}' + for i in `seq 1 1000` + echo 'void fn585() {}' + for i in `seq 1 1000` + echo 'void fn586() {}' + for i in `seq 1 1000` + echo 'void fn587() {}' + for i in `seq 1 1000` + echo 'void fn588() {}' + for i in `seq 1 1000` + echo 'void fn589() {}' + for i in `seq 1 1000` + echo 'void fn590() {}' + for i in `seq 1 1000` + echo 'void fn591() {}' + for i in `seq 1 1000` + echo 'void fn592() {}' + for i in `seq 1 1000` + echo 'void fn593() {}' + for i in `seq 1 1000` + echo 'void fn594() {}' + for i in `seq 1 1000` + echo 'void fn595() {}' + for i in `seq 1 1000` + echo 'void fn596() {}' + for i in `seq 1 1000` + echo 'void fn597() {}' + for i in `seq 1 1000` + echo 'void fn598() {}' + for i in `seq 1 1000` + echo 'void fn599() {}' + for i in `seq 1 1000` + echo 'void fn600() {}' + for i in `seq 1 1000` + echo 'void fn601() {}' + for i in `seq 1 1000` + echo 'void fn602() {}' + for i in `seq 1 1000` + echo 'void fn603() {}' + for i in `seq 1 1000` + echo 'void fn604() {}' + for i in `seq 1 1000` + echo 'void fn605() {}' + for i in `seq 1 1000` + echo 'void fn606() {}' + for i in `seq 1 1000` + echo 'void fn607() {}' + for i in `seq 1 1000` + echo 'void fn608() {}' + for i in `seq 1 1000` + echo 'void fn609() {}' + for i in `seq 1 1000` + echo 'void fn610() {}' + for i in `seq 1 1000` + echo 'void fn611() {}' + for i in `seq 1 1000` + echo 'void fn612() {}' + for i in `seq 1 1000` + echo 'void fn613() {}' + for i in `seq 1 1000` + echo 'void fn614() {}' + for i in `seq 1 1000` + echo 'void fn615() {}' + for i in `seq 1 1000` + echo 'void fn616() {}' + for i in `seq 1 1000` + echo 'void fn617() {}' + for i in `seq 1 1000` + echo 'void fn618() {}' + for i in `seq 1 1000` + echo 'void fn619() {}' + for i in `seq 1 1000` + echo 'void fn620() {}' + for i in `seq 1 1000` + echo 'void fn621() {}' + for i in `seq 1 1000` + echo 'void fn622() {}' + for i in `seq 1 1000` + echo 'void fn623() {}' + for i in `seq 1 1000` + echo 'void fn624() {}' + for i in `seq 1 1000` + echo 'void fn625() {}' + for i in `seq 1 1000` + echo 'void fn626() {}' + for i in `seq 1 1000` + echo 'void fn627() {}' + for i in `seq 1 1000` + echo 'void fn628() {}' + for i in `seq 1 1000` + echo 'void fn629() {}' + for i in `seq 1 1000` + echo 'void fn630() {}' + for i in `seq 1 1000` + echo 'void fn631() {}' + for i in `seq 1 1000` + echo 'void fn632() {}' + for i in `seq 1 1000` + echo 'void fn633() {}' + for i in `seq 1 1000` + echo 'void fn634() {}' + for i in `seq 1 1000` + echo 'void fn635() {}' + for i in `seq 1 1000` + echo 'void fn636() {}' + for i in `seq 1 1000` + echo 'void fn637() {}' + for i in `seq 1 1000` + echo 'void fn638() {}' + for i in `seq 1 1000` + echo 'void fn639() {}' + for i in `seq 1 1000` + echo 'void fn640() {}' + for i in `seq 1 1000` + echo 'void fn641() {}' + for i in `seq 1 1000` + echo 'void fn642() {}' + for i in `seq 1 1000` + echo 'void fn643() {}' + for i in `seq 1 1000` + echo 'void fn644() {}' + for i in `seq 1 1000` + echo 'void fn645() {}' + for i in `seq 1 1000` + echo 'void fn646() {}' + for i in `seq 1 1000` + echo 'void fn647() {}' + for i in `seq 1 1000` + echo 'void fn648() {}' + for i in `seq 1 1000` + echo 'void fn649() {}' + for i in `seq 1 1000` + echo 'void fn650() {}' + for i in `seq 1 1000` + echo 'void fn651() {}' + for i in `seq 1 1000` + echo 'void fn652() {}' + for i in `seq 1 1000` + echo 'void fn653() {}' + for i in `seq 1 1000` + echo 'void fn654() {}' + for i in `seq 1 1000` + echo 'void fn655() {}' + for i in `seq 1 1000` + echo 'void fn656() {}' + for i in `seq 1 1000` + echo 'void fn657() {}' + for i in `seq 1 1000` + echo 'void fn658() {}' + for i in `seq 1 1000` + echo 'void fn659() {}' + for i in `seq 1 1000` + echo 'void fn660() {}' + for i in `seq 1 1000` + echo 'void fn661() {}' + for i in `seq 1 1000` + echo 'void fn662() {}' + for i in `seq 1 1000` + echo 'void fn663() {}' + for i in `seq 1 1000` + echo 'void fn664() {}' + for i in `seq 1 1000` + echo 'void fn665() {}' + for i in `seq 1 1000` + echo 'void fn666() {}' + for i in `seq 1 1000` + echo 'void fn667() {}' + for i in `seq 1 1000` + echo 'void fn668() {}' + for i in `seq 1 1000` + echo 'void fn669() {}' + for i in `seq 1 1000` + echo 'void fn670() {}' + for i in `seq 1 1000` + echo 'void fn671() {}' + for i in `seq 1 1000` + echo 'void fn672() {}' + for i in `seq 1 1000` + echo 'void fn673() {}' + for i in `seq 1 1000` + echo 'void fn674() {}' + for i in `seq 1 1000` + echo 'void fn675() {}' + for i in `seq 1 1000` + echo 'void fn676() {}' + for i in `seq 1 1000` + echo 'void fn677() {}' + for i in `seq 1 1000` + echo 'void fn678() {}' + for i in `seq 1 1000` + echo 'void fn679() {}' + for i in `seq 1 1000` + echo 'void fn680() {}' + for i in `seq 1 1000` + echo 'void fn681() {}' + for i in `seq 1 1000` + echo 'void fn682() {}' + for i in `seq 1 1000` + echo 'void fn683() {}' + for i in `seq 1 1000` + echo 'void fn684() {}' + for i in `seq 1 1000` + echo 'void fn685() {}' + for i in `seq 1 1000` + echo 'void fn686() {}' + for i in `seq 1 1000` + echo 'void fn687() {}' + for i in `seq 1 1000` + echo 'void fn688() {}' + for i in `seq 1 1000` + echo 'void fn689() {}' + for i in `seq 1 1000` + echo 'void fn690() {}' + for i in `seq 1 1000` + echo 'void fn691() {}' + for i in `seq 1 1000` + echo 'void fn692() {}' + for i in `seq 1 1000` + echo 'void fn693() {}' + for i in `seq 1 1000` + echo 'void fn694() {}' + for i in `seq 1 1000` + echo 'void fn695() {}' + for i in `seq 1 1000` + echo 'void fn696() {}' + for i in `seq 1 1000` + echo 'void fn697() {}' + for i in `seq 1 1000` + echo 'void fn698() {}' + for i in `seq 1 1000` + echo 'void fn699() {}' + for i in `seq 1 1000` + echo 'void fn700() {}' + for i in `seq 1 1000` + echo 'void fn701() {}' + for i in `seq 1 1000` + echo 'void fn702() {}' + for i in `seq 1 1000` + echo 'void fn703() {}' + for i in `seq 1 1000` + echo 'void fn704() {}' + for i in `seq 1 1000` + echo 'void fn705() {}' + for i in `seq 1 1000` + echo 'void fn706() {}' + for i in `seq 1 1000` + echo 'void fn707() {}' + for i in `seq 1 1000` + echo 'void fn708() {}' + for i in `seq 1 1000` + echo 'void fn709() {}' + for i in `seq 1 1000` + echo 'void fn710() {}' + for i in `seq 1 1000` + echo 'void fn711() {}' + for i in `seq 1 1000` + echo 'void fn712() {}' + for i in `seq 1 1000` + echo 'void fn713() {}' + for i in `seq 1 1000` + echo 'void fn714() {}' + for i in `seq 1 1000` + echo 'void fn715() {}' + for i in `seq 1 1000` + echo 'void fn716() {}' + for i in `seq 1 1000` + echo 'void fn717() {}' + for i in `seq 1 1000` + echo 'void fn718() {}' + for i in `seq 1 1000` + echo 'void fn719() {}' + for i in `seq 1 1000` + echo 'void fn720() {}' + for i in `seq 1 1000` + echo 'void fn721() {}' + for i in `seq 1 1000` + echo 'void fn722() {}' + for i in `seq 1 1000` + echo 'void fn723() {}' + for i in `seq 1 1000` + echo 'void fn724() {}' + for i in `seq 1 1000` + echo 'void fn725() {}' + for i in `seq 1 1000` + echo 'void fn726() {}' + for i in `seq 1 1000` + echo 'void fn727() {}' + for i in `seq 1 1000` + echo 'void fn728() {}' + for i in `seq 1 1000` + echo 'void fn729() {}' + for i in `seq 1 1000` + echo 'void fn730() {}' + for i in `seq 1 1000` + echo 'void fn731() {}' + for i in `seq 1 1000` + echo 'void fn732() {}' + for i in `seq 1 1000` + echo 'void fn733() {}' + for i in `seq 1 1000` + echo 'void fn734() {}' + for i in `seq 1 1000` + echo 'void fn735() {}' + for i in `seq 1 1000` + echo 'void fn736() {}' + for i in `seq 1 1000` + echo 'void fn737() {}' + for i in `seq 1 1000` + echo 'void fn738() {}' + for i in `seq 1 1000` + echo 'void fn739() {}' + for i in `seq 1 1000` + echo 'void fn740() {}' + for i in `seq 1 1000` + echo 'void fn741() {}' + for i in `seq 1 1000` + echo 'void fn742() {}' + for i in `seq 1 1000` + echo 'void fn743() {}' + for i in `seq 1 1000` + echo 'void fn744() {}' + for i in `seq 1 1000` + echo 'void fn745() {}' + for i in `seq 1 1000` + echo 'void fn746() {}' + for i in `seq 1 1000` + echo 'void fn747() {}' + for i in `seq 1 1000` + echo 'void fn748() {}' + for i in `seq 1 1000` + echo 'void fn749() {}' + for i in `seq 1 1000` + echo 'void fn750() {}' + for i in `seq 1 1000` + echo 'void fn751() {}' + for i in `seq 1 1000` + echo 'void fn752() {}' + for i in `seq 1 1000` + echo 'void fn753() {}' + for i in `seq 1 1000` + echo 'void fn754() {}' + for i in `seq 1 1000` + echo 'void fn755() {}' + for i in `seq 1 1000` + echo 'void fn756() {}' + for i in `seq 1 1000` + echo 'void fn757() {}' + for i in `seq 1 1000` + echo 'void fn758() {}' + for i in `seq 1 1000` + echo 'void fn759() {}' + for i in `seq 1 1000` + echo 'void fn760() {}' + for i in `seq 1 1000` + echo 'void fn761() {}' + for i in `seq 1 1000` + echo 'void fn762() {}' + for i in `seq 1 1000` + echo 'void fn763() {}' + for i in `seq 1 1000` + echo 'void fn764() {}' + for i in `seq 1 1000` + echo 'void fn765() {}' + for i in `seq 1 1000` + echo 'void fn766() {}' + for i in `seq 1 1000` + echo 'void fn767() {}' + for i in `seq 1 1000` + echo 'void fn768() {}' + for i in `seq 1 1000` + echo 'void fn769() {}' + for i in `seq 1 1000` + echo 'void fn770() {}' + for i in `seq 1 1000` + echo 'void fn771() {}' + for i in `seq 1 1000` + echo 'void fn772() {}' + for i in `seq 1 1000` + echo 'void fn773() {}' + for i in `seq 1 1000` + echo 'void fn774() {}' + for i in `seq 1 1000` + echo 'void fn775() {}' + for i in `seq 1 1000` + echo 'void fn776() {}' + for i in `seq 1 1000` + echo 'void fn777() {}' + for i in `seq 1 1000` + echo 'void fn778() {}' + for i in `seq 1 1000` + echo 'void fn779() {}' + for i in `seq 1 1000` + echo 'void fn780() {}' + for i in `seq 1 1000` + echo 'void fn781() {}' + for i in `seq 1 1000` + echo 'void fn782() {}' + for i in `seq 1 1000` + echo 'void fn783() {}' + for i in `seq 1 1000` + echo 'void fn784() {}' + for i in `seq 1 1000` + echo 'void fn785() {}' + for i in `seq 1 1000` + echo 'void fn786() {}' + for i in `seq 1 1000` + echo 'void fn787() {}' + for i in `seq 1 1000` + echo 'void fn788() {}' + for i in `seq 1 1000` + echo 'void fn789() {}' + for i in `seq 1 1000` + echo 'void fn790() {}' + for i in `seq 1 1000` + echo 'void fn791() {}' + for i in `seq 1 1000` + echo 'void fn792() {}' + for i in `seq 1 1000` + echo 'void fn793() {}' + for i in `seq 1 1000` + echo 'void fn794() {}' + for i in `seq 1 1000` + echo 'void fn795() {}' + for i in `seq 1 1000` + echo 'void fn796() {}' + for i in `seq 1 1000` + echo 'void fn797() {}' + for i in `seq 1 1000` + echo 'void fn798() {}' + for i in `seq 1 1000` + echo 'void fn799() {}' + for i in `seq 1 1000` + echo 'void fn800() {}' + for i in `seq 1 1000` + echo 'void fn801() {}' + for i in `seq 1 1000` + echo 'void fn802() {}' + for i in `seq 1 1000` + echo 'void fn803() {}' + for i in `seq 1 1000` + echo 'void fn804() {}' + for i in `seq 1 1000` + echo 'void fn805() {}' + for i in `seq 1 1000` + echo 'void fn806() {}' + for i in `seq 1 1000` + echo 'void fn807() {}' + for i in `seq 1 1000` + echo 'void fn808() {}' + for i in `seq 1 1000` + echo 'void fn809() {}' + for i in `seq 1 1000` + echo 'void fn810() {}' + for i in `seq 1 1000` + echo 'void fn811() {}' + for i in `seq 1 1000` + echo 'void fn812() {}' + for i in `seq 1 1000` + echo 'void fn813() {}' + for i in `seq 1 1000` + echo 'void fn814() {}' + for i in `seq 1 1000` + echo 'void fn815() {}' + for i in `seq 1 1000` + echo 'void fn816() {}' + for i in `seq 1 1000` + echo 'void fn817() {}' + for i in `seq 1 1000` + echo 'void fn818() {}' + for i in `seq 1 1000` + echo 'void fn819() {}' + for i in `seq 1 1000` + echo 'void fn820() {}' + for i in `seq 1 1000` + echo 'void fn821() {}' + for i in `seq 1 1000` + echo 'void fn822() {}' + for i in `seq 1 1000` + echo 'void fn823() {}' + for i in `seq 1 1000` + echo 'void fn824() {}' + for i in `seq 1 1000` + echo 'void fn825() {}' + for i in `seq 1 1000` + echo 'void fn826() {}' + for i in `seq 1 1000` + echo 'void fn827() {}' + for i in `seq 1 1000` + echo 'void fn828() {}' + for i in `seq 1 1000` + echo 'void fn829() {}' + for i in `seq 1 1000` + echo 'void fn830() {}' + for i in `seq 1 1000` + echo 'void fn831() {}' + for i in `seq 1 1000` + echo 'void fn832() {}' + for i in `seq 1 1000` + echo 'void fn833() {}' + for i in `seq 1 1000` + echo 'void fn834() {}' + for i in `seq 1 1000` + echo 'void fn835() {}' + for i in `seq 1 1000` + echo 'void fn836() {}' + for i in `seq 1 1000` + echo 'void fn837() {}' + for i in `seq 1 1000` + echo 'void fn838() {}' + for i in `seq 1 1000` + echo 'void fn839() {}' + for i in `seq 1 1000` + echo 'void fn840() {}' + for i in `seq 1 1000` + echo 'void fn841() {}' + for i in `seq 1 1000` + echo 'void fn842() {}' + for i in `seq 1 1000` + echo 'void fn843() {}' + for i in `seq 1 1000` + echo 'void fn844() {}' + for i in `seq 1 1000` + echo 'void fn845() {}' + for i in `seq 1 1000` + echo 'void fn846() {}' + for i in `seq 1 1000` + echo 'void fn847() {}' + for i in `seq 1 1000` + echo 'void fn848() {}' + for i in `seq 1 1000` + echo 'void fn849() {}' + for i in `seq 1 1000` + echo 'void fn850() {}' + for i in `seq 1 1000` + echo 'void fn851() {}' + for i in `seq 1 1000` + echo 'void fn852() {}' + for i in `seq 1 1000` + echo 'void fn853() {}' + for i in `seq 1 1000` + echo 'void fn854() {}' + for i in `seq 1 1000` + echo 'void fn855() {}' + for i in `seq 1 1000` + echo 'void fn856() {}' + for i in `seq 1 1000` + echo 'void fn857() {}' + for i in `seq 1 1000` + echo 'void fn858() {}' + for i in `seq 1 1000` + echo 'void fn859() {}' + for i in `seq 1 1000` + echo 'void fn860() {}' + for i in `seq 1 1000` + echo 'void fn861() {}' + for i in `seq 1 1000` + echo 'void fn862() {}' + for i in `seq 1 1000` + echo 'void fn863() {}' + for i in `seq 1 1000` + echo 'void fn864() {}' + for i in `seq 1 1000` + echo 'void fn865() {}' + for i in `seq 1 1000` + echo 'void fn866() {}' + for i in `seq 1 1000` + echo 'void fn867() {}' + for i in `seq 1 1000` + echo 'void fn868() {}' + for i in `seq 1 1000` + echo 'void fn869() {}' + for i in `seq 1 1000` + echo 'void fn870() {}' + for i in `seq 1 1000` + echo 'void fn871() {}' + for i in `seq 1 1000` + echo 'void fn872() {}' + for i in `seq 1 1000` + echo 'void fn873() {}' + for i in `seq 1 1000` + echo 'void fn874() {}' + for i in `seq 1 1000` + echo 'void fn875() {}' + for i in `seq 1 1000` + echo 'void fn876() {}' + for i in `seq 1 1000` + echo 'void fn877() {}' + for i in `seq 1 1000` + echo 'void fn878() {}' + for i in `seq 1 1000` + echo 'void fn879() {}' + for i in `seq 1 1000` + echo 'void fn880() {}' + for i in `seq 1 1000` + echo 'void fn881() {}' + for i in `seq 1 1000` + echo 'void fn882() {}' + for i in `seq 1 1000` + echo 'void fn883() {}' + for i in `seq 1 1000` + echo 'void fn884() {}' + for i in `seq 1 1000` + echo 'void fn885() {}' + for i in `seq 1 1000` + echo 'void fn886() {}' + for i in `seq 1 1000` + echo 'void fn887() {}' + for i in `seq 1 1000` + echo 'void fn888() {}' + for i in `seq 1 1000` + echo 'void fn889() {}' + for i in `seq 1 1000` + echo 'void fn890() {}' + for i in `seq 1 1000` + echo 'void fn891() {}' + for i in `seq 1 1000` + echo 'void fn892() {}' + for i in `seq 1 1000` + echo 'void fn893() {}' + for i in `seq 1 1000` + echo 'void fn894() {}' + for i in `seq 1 1000` + echo 'void fn895() {}' + for i in `seq 1 1000` + echo 'void fn896() {}' + for i in `seq 1 1000` + echo 'void fn897() {}' + for i in `seq 1 1000` + echo 'void fn898() {}' + for i in `seq 1 1000` + echo 'void fn899() {}' + for i in `seq 1 1000` + echo 'void fn900() {}' + for i in `seq 1 1000` + echo 'void fn901() {}' + for i in `seq 1 1000` + echo 'void fn902() {}' + for i in `seq 1 1000` + echo 'void fn903() {}' + for i in `seq 1 1000` + echo 'void fn904() {}' + for i in `seq 1 1000` + echo 'void fn905() {}' + for i in `seq 1 1000` + echo 'void fn906() {}' + for i in `seq 1 1000` + echo 'void fn907() {}' + for i in `seq 1 1000` + echo 'void fn908() {}' + for i in `seq 1 1000` + echo 'void fn909() {}' + for i in `seq 1 1000` + echo 'void fn910() {}' + for i in `seq 1 1000` + echo 'void fn911() {}' + for i in `seq 1 1000` + echo 'void fn912() {}' + for i in `seq 1 1000` + echo 'void fn913() {}' + for i in `seq 1 1000` + echo 'void fn914() {}' + for i in `seq 1 1000` + echo 'void fn915() {}' + for i in `seq 1 1000` + echo 'void fn916() {}' + for i in `seq 1 1000` + echo 'void fn917() {}' + for i in `seq 1 1000` + echo 'void fn918() {}' + for i in `seq 1 1000` + echo 'void fn919() {}' + for i in `seq 1 1000` + echo 'void fn920() {}' + for i in `seq 1 1000` + echo 'void fn921() {}' + for i in `seq 1 1000` + echo 'void fn922() {}' + for i in `seq 1 1000` + echo 'void fn923() {}' + for i in `seq 1 1000` + echo 'void fn924() {}' + for i in `seq 1 1000` + echo 'void fn925() {}' + for i in `seq 1 1000` + echo 'void fn926() {}' + for i in `seq 1 1000` + echo 'void fn927() {}' + for i in `seq 1 1000` + echo 'void fn928() {}' + for i in `seq 1 1000` + echo 'void fn929() {}' + for i in `seq 1 1000` + echo 'void fn930() {}' + for i in `seq 1 1000` + echo 'void fn931() {}' + for i in `seq 1 1000` + echo 'void fn932() {}' + for i in `seq 1 1000` + echo 'void fn933() {}' + for i in `seq 1 1000` + echo 'void fn934() {}' + for i in `seq 1 1000` + echo 'void fn935() {}' + for i in `seq 1 1000` + echo 'void fn936() {}' + for i in `seq 1 1000` + echo 'void fn937() {}' + for i in `seq 1 1000` + echo 'void fn938() {}' + for i in `seq 1 1000` + echo 'void fn939() {}' + for i in `seq 1 1000` + echo 'void fn940() {}' + for i in `seq 1 1000` + echo 'void fn941() {}' + for i in `seq 1 1000` + echo 'void fn942() {}' + for i in `seq 1 1000` + echo 'void fn943() {}' + for i in `seq 1 1000` + echo 'void fn944() {}' + for i in `seq 1 1000` + echo 'void fn945() {}' + for i in `seq 1 1000` + echo 'void fn946() {}' + for i in `seq 1 1000` + echo 'void fn947() {}' + for i in `seq 1 1000` + echo 'void fn948() {}' + for i in `seq 1 1000` + echo 'void fn949() {}' + for i in `seq 1 1000` + echo 'void fn950() {}' + for i in `seq 1 1000` + echo 'void fn951() {}' + for i in `seq 1 1000` + echo 'void fn952() {}' + for i in `seq 1 1000` + echo 'void fn953() {}' + for i in `seq 1 1000` + echo 'void fn954() {}' + for i in `seq 1 1000` + echo 'void fn955() {}' + for i in `seq 1 1000` + echo 'void fn956() {}' + for i in `seq 1 1000` + echo 'void fn957() {}' + for i in `seq 1 1000` + echo 'void fn958() {}' + for i in `seq 1 1000` + echo 'void fn959() {}' + for i in `seq 1 1000` + echo 'void fn960() {}' + for i in `seq 1 1000` + echo 'void fn961() {}' + for i in `seq 1 1000` + echo 'void fn962() {}' + for i in `seq 1 1000` + echo 'void fn963() {}' + for i in `seq 1 1000` + echo 'void fn964() {}' + for i in `seq 1 1000` + echo 'void fn965() {}' + for i in `seq 1 1000` + echo 'void fn966() {}' + for i in `seq 1 1000` + echo 'void fn967() {}' + for i in `seq 1 1000` + echo 'void fn968() {}' + for i in `seq 1 1000` + echo 'void fn969() {}' + for i in `seq 1 1000` + echo 'void fn970() {}' + for i in `seq 1 1000` + echo 'void fn971() {}' + for i in `seq 1 1000` + echo 'void fn972() {}' + for i in `seq 1 1000` + echo 'void fn973() {}' + for i in `seq 1 1000` + echo 'void fn974() {}' + for i in `seq 1 1000` + echo 'void fn975() {}' + for i in `seq 1 1000` + echo 'void fn976() {}' + for i in `seq 1 1000` + echo 'void fn977() {}' + for i in `seq 1 1000` + echo 'void fn978() {}' + for i in `seq 1 1000` + echo 'void fn979() {}' + for i in `seq 1 1000` + echo 'void fn980() {}' + for i in `seq 1 1000` + echo 'void fn981() {}' + for i in `seq 1 1000` + echo 'void fn982() {}' + for i in `seq 1 1000` + echo 'void fn983() {}' + for i in `seq 1 1000` + echo 'void fn984() {}' + for i in `seq 1 1000` + echo 'void fn985() {}' + for i in `seq 1 1000` + echo 'void fn986() {}' + for i in `seq 1 1000` + echo 'void fn987() {}' + for i in `seq 1 1000` + echo 'void fn988() {}' + for i in `seq 1 1000` + echo 'void fn989() {}' + for i in `seq 1 1000` + echo 'void fn990() {}' + for i in `seq 1 1000` + echo 'void fn991() {}' + for i in `seq 1 1000` + echo 'void fn992() {}' + for i in `seq 1 1000` + echo 'void fn993() {}' + for i in `seq 1 1000` + echo 'void fn994() {}' + for i in `seq 1 1000` + echo 'void fn995() {}' + for i in `seq 1 1000` + echo 'void fn996() {}' + for i in `seq 1 1000` + echo 'void fn997() {}' + for i in `seq 1 1000` + echo 'void fn998() {}' + for i in `seq 1 1000` + echo 'void fn999() {}' + for i in `seq 1 1000` + echo 'void fn1000() {}' + cc -B. -o out/test/elf/x86_64/shuffle-sections/exe1 out/test/elf/x86_64/shuffle-sections/a.o out/test/elf/x86_64/shuffle-sections/b.o + out/test/elf/x86_64/shuffle-sections/exe1 + grep -q 'Hello world' + cc -B. -o out/test/elf/x86_64/shuffle-sections/exe2 out/test/elf/x86_64/shuffle-sections/a.o out/test/elf/x86_64/shuffle-sections/b.o -Wl,-shuffle-sections + out/test/elf/x86_64/shuffle-sections/exe2 + grep -q 'Hello world' + diff out/test/elf/x86_64/shuffle-sections/exe1 out/test/elf/x86_64/shuffle-sections/exe2 + on_exit + echo OK OK + exit 0 Test time = 4.33 sec ---------------------------------------------------------- Test Passed. "x86_64-shuffle-sections" end time: Nov 13 20:03 CET "x86_64-shuffle-sections" time elapsed: 00:00:04 ---------------------------------------------------------- 217/322 Testing: x86_64-shuffle-sections-seed 217/322 Test: x86_64-shuffle-sections-seed Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shuffle-sections-seed.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-shuffle-sections-seed" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shuffle-sections-seed.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/shuffle-sections-seed.sh .sh ++ testname=shuffle-sections-seed ++ echo -n 'Testing shuffle-sections-seed ... ' Testing shuffle-sections-seed ... ++ t=out/test/elf/x86_64/shuffle-sections-seed ++ mkdir -p out/test/elf/x86_64/shuffle-sections-seed + cat + cc -o out/test/elf/x86_64/shuffle-sections-seed/a.o -ffunction-sections -c -xc - + cc -o out/test/elf/x86_64/shuffle-sections-seed/b.o -ffunction-sections -c -xc - ++ seq 1 1000 + for i in `seq 1 1000` + echo 'void fn1() {}' + for i in `seq 1 1000` + echo 'void fn2() {}' + for i in `seq 1 1000` + echo 'void fn3() {}' + for i in `seq 1 1000` + echo 'void fn4() {}' + for i in `seq 1 1000` + echo 'void fn5() {}' + for i in `seq 1 1000` + echo 'void fn6() {}' + for i in `seq 1 1000` + echo 'void fn7() {}' + for i in `seq 1 1000` + echo 'void fn8() {}' + for i in `seq 1 1000` + echo 'void fn9() {}' + for i in `seq 1 1000` + echo 'void fn10() {}' + for i in `seq 1 1000` + echo 'void fn11() {}' + for i in `seq 1 1000` + echo 'void fn12() {}' + for i in `seq 1 1000` + echo 'void fn13() {}' + for i in `seq 1 1000` + echo 'void fn14() {}' + for i in `seq 1 1000` + echo 'void fn15() {}' + for i in `seq 1 1000` + echo 'void fn16() {}' + for i in `seq 1 1000` + echo 'void fn17() {}' + for i in `seq 1 1000` + echo 'void fn18() {}' + for i in `seq 1 1000` + echo 'void fn19() {}' + for i in `seq 1 1000` + echo 'void fn20() {}' + for i in `seq 1 1000` + echo 'void fn21() {}' + for i in `seq 1 1000` + echo 'void fn22() {}' + for i in `seq 1 1000` + echo 'void fn23() {}' + for i in `seq 1 1000` + echo 'void fn24() {}' + for i in `seq 1 1000` + echo 'void fn25() {}' + for i in `seq 1 1000` + echo 'void fn26() {}' + for i in `seq 1 1000` + echo 'void fn27() {}' + for i in `seq 1 1000` + echo 'void fn28() {}' + for i in `seq 1 1000` + echo 'void fn29() {}' + for i in `seq 1 1000` + echo 'void fn30() {}' + for i in `seq 1 1000` + echo 'void fn31() {}' + for i in `seq 1 1000` + echo 'void fn32() {}' + for i in `seq 1 1000` + echo 'void fn33() {}' + for i in `seq 1 1000` + echo 'void fn34() {}' + for i in `seq 1 1000` + echo 'void fn35() {}' + for i in `seq 1 1000` + echo 'void fn36() {}' + for i in `seq 1 1000` + echo 'void fn37() {}' + for i in `seq 1 1000` + echo 'void fn38() {}' + for i in `seq 1 1000` + echo 'void fn39() {}' + for i in `seq 1 1000` + echo 'void fn40() {}' + for i in `seq 1 1000` + echo 'void fn41() {}' + for i in `seq 1 1000` + echo 'void fn42() {}' + for i in `seq 1 1000` + echo 'void fn43() {}' + for i in `seq 1 1000` + echo 'void fn44() {}' + for i in `seq 1 1000` + echo 'void fn45() {}' + for i in `seq 1 1000` + echo 'void fn46() {}' + for i in `seq 1 1000` + echo 'void fn47() {}' + for i in `seq 1 1000` + echo 'void fn48() {}' + for i in `seq 1 1000` + echo 'void fn49() {}' + for i in `seq 1 1000` + echo 'void fn50() {}' + for i in `seq 1 1000` + echo 'void fn51() {}' + for i in `seq 1 1000` + echo 'void fn52() {}' + for i in `seq 1 1000` + echo 'void fn53() {}' + for i in `seq 1 1000` + echo 'void fn54() {}' + for i in `seq 1 1000` + echo 'void fn55() {}' + for i in `seq 1 1000` + echo 'void fn56() {}' + for i in `seq 1 1000` + echo 'void fn57() {}' + for i in `seq 1 1000` + echo 'void fn58() {}' + for i in `seq 1 1000` + echo 'void fn59() {}' + for i in `seq 1 1000` + echo 'void fn60() {}' + for i in `seq 1 1000` + echo 'void fn61() {}' + for i in `seq 1 1000` + echo 'void fn62() {}' + for i in `seq 1 1000` + echo 'void fn63() {}' + for i in `seq 1 1000` + echo 'void fn64() {}' + for i in `seq 1 1000` + echo 'void fn65() {}' + for i in `seq 1 1000` + echo 'void fn66() {}' + for i in `seq 1 1000` + echo 'void fn67() {}' + for i in `seq 1 1000` + echo 'void fn68() {}' + for i in `seq 1 1000` + echo 'void fn69() {}' + for i in `seq 1 1000` + echo 'void fn70() {}' + for i in `seq 1 1000` + echo 'void fn71() {}' + for i in `seq 1 1000` + echo 'void fn72() {}' + for i in `seq 1 1000` + echo 'void fn73() {}' + for i in `seq 1 1000` + echo 'void fn74() {}' + for i in `seq 1 1000` + echo 'void fn75() {}' + for i in `seq 1 1000` + echo 'void fn76() {}' + for i in `seq 1 1000` + echo 'void fn77() {}' + for i in `seq 1 1000` + echo 'void fn78() {}' + for i in `seq 1 1000` + echo 'void fn79() {}' + for i in `seq 1 1000` + echo 'void fn80() {}' + for i in `seq 1 1000` + echo 'void fn81() {}' + for i in `seq 1 1000` + echo 'void fn82() {}' + for i in `seq 1 1000` + echo 'void fn83() {}' + for i in `seq 1 1000` + echo 'void fn84() {}' + for i in `seq 1 1000` + echo 'void fn85() {}' + for i in `seq 1 1000` + echo 'void fn86() {}' + for i in `seq 1 1000` + echo 'void fn87() {}' + for i in `seq 1 1000` + echo 'void fn88() {}' + for i in `seq 1 1000` + echo 'void fn89() {}' + for i in `seq 1 1000` + echo 'void fn90() {}' + for i in `seq 1 1000` + echo 'void fn91() {}' + for i in `seq 1 1000` + echo 'void fn92() {}' + for i in `seq 1 1000` + echo 'void fn93() {}' + for i in `seq 1 1000` + echo 'void fn94() {}' + for i in `seq 1 1000` + echo 'void fn95() {}' + for i in `seq 1 1000` + echo 'void fn96() {}' + for i in `seq 1 1000` + echo 'void fn97() {}' + for i in `seq 1 1000` + echo 'void fn98() {}' + for i in `seq 1 1000` + echo 'void fn99() {}' + for i in `seq 1 1000` + echo 'void fn100() {}' + for i in `seq 1 1000` + echo 'void fn101() {}' + for i in `seq 1 1000` + echo 'void fn102() {}' + for i in `seq 1 1000` + echo 'void fn103() {}' + for i in `seq 1 1000` + echo 'void fn104() {}' + for i in `seq 1 1000` + echo 'void fn105() {}' + for i in `seq 1 1000` + echo 'void fn106() {}' + for i in `seq 1 1000` + echo 'void fn107() {}' + for i in `seq 1 1000` + echo 'void fn108() {}' + for i in `seq 1 1000` + echo 'void fn109() {}' + for i in `seq 1 1000` + echo 'void fn110() {}' + for i in `seq 1 1000` + echo 'void fn111() {}' + for i in `seq 1 1000` + echo 'void fn112() {}' + for i in `seq 1 1000` + echo 'void fn113() {}' + for i in `seq 1 1000` + echo 'void fn114() {}' + for i in `seq 1 1000` + echo 'void fn115() {}' + for i in `seq 1 1000` + echo 'void fn116() {}' + for i in `seq 1 1000` + echo 'void fn117() {}' + for i in `seq 1 1000` + echo 'void fn118() {}' + for i in `seq 1 1000` + echo 'void fn119() {}' + for i in `seq 1 1000` + echo 'void fn120() {}' + for i in `seq 1 1000` + echo 'void fn121() {}' + for i in `seq 1 1000` + echo 'void fn122() {}' + for i in `seq 1 1000` + echo 'void fn123() {}' + for i in `seq 1 1000` + echo 'void fn124() {}' + for i in `seq 1 1000` + echo 'void fn125() {}' + for i in `seq 1 1000` + echo 'void fn126() {}' + for i in `seq 1 1000` + echo 'void fn127() {}' + for i in `seq 1 1000` + echo 'void fn128() {}' + for i in `seq 1 1000` + echo 'void fn129() {}' + for i in `seq 1 1000` + echo 'void fn130() {}' + for i in `seq 1 1000` + echo 'void fn131() {}' + for i in `seq 1 1000` + echo 'void fn132() {}' + for i in `seq 1 1000` + echo 'void fn133() {}' + for i in `seq 1 1000` + echo 'void fn134() {}' + for i in `seq 1 1000` + echo 'void fn135() {}' + for i in `seq 1 1000` + echo 'void fn136() {}' + for i in `seq 1 1000` + echo 'void fn137() {}' + for i in `seq 1 1000` + echo 'void fn138() {}' + for i in `seq 1 1000` + echo 'void fn139() {}' + for i in `seq 1 1000` + echo 'void fn140() {}' + for i in `seq 1 1000` + echo 'void fn141() {}' + for i in `seq 1 1000` + echo 'void fn142() {}' + for i in `seq 1 1000` + echo 'void fn143() {}' + for i in `seq 1 1000` + echo 'void fn144() {}' + for i in `seq 1 1000` + echo 'void fn145() {}' + for i in `seq 1 1000` + echo 'void fn146() {}' + for i in `seq 1 1000` + echo 'void fn147() {}' + for i in `seq 1 1000` + echo 'void fn148() {}' + for i in `seq 1 1000` + echo 'void fn149() {}' + for i in `seq 1 1000` + echo 'void fn150() {}' + for i in `seq 1 1000` + echo 'void fn151() {}' + for i in `seq 1 1000` + echo 'void fn152() {}' + for i in `seq 1 1000` + echo 'void fn153() {}' + for i in `seq 1 1000` + echo 'void fn154() {}' + for i in `seq 1 1000` + echo 'void fn155() {}' + for i in `seq 1 1000` + echo 'void fn156() {}' + for i in `seq 1 1000` + echo 'void fn157() {}' + for i in `seq 1 1000` + echo 'void fn158() {}' + for i in `seq 1 1000` + echo 'void fn159() {}' + for i in `seq 1 1000` + echo 'void fn160() {}' + for i in `seq 1 1000` + echo 'void fn161() {}' + for i in `seq 1 1000` + echo 'void fn162() {}' + for i in `seq 1 1000` + echo 'void fn163() {}' + for i in `seq 1 1000` + echo 'void fn164() {}' + for i in `seq 1 1000` + echo 'void fn165() {}' + for i in `seq 1 1000` + echo 'void fn166() {}' + for i in `seq 1 1000` + echo 'void fn167() {}' + for i in `seq 1 1000` + echo 'void fn168() {}' + for i in `seq 1 1000` + echo 'void fn169() {}' + for i in `seq 1 1000` + echo 'void fn170() {}' + for i in `seq 1 1000` + echo 'void fn171() {}' + for i in `seq 1 1000` + echo 'void fn172() {}' + for i in `seq 1 1000` + echo 'void fn173() {}' + for i in `seq 1 1000` + echo 'void fn174() {}' + for i in `seq 1 1000` + echo 'void fn175() {}' + for i in `seq 1 1000` + echo 'void fn176() {}' + for i in `seq 1 1000` + echo 'void fn177() {}' + for i in `seq 1 1000` + echo 'void fn178() {}' + for i in `seq 1 1000` + echo 'void fn179() {}' + for i in `seq 1 1000` + echo 'void fn180() {}' + for i in `seq 1 1000` + echo 'void fn181() {}' + for i in `seq 1 1000` + echo 'void fn182() {}' + for i in `seq 1 1000` + echo 'void fn183() {}' + for i in `seq 1 1000` + echo 'void fn184() {}' + for i in `seq 1 1000` + echo 'void fn185() {}' + for i in `seq 1 1000` + echo 'void fn186() {}' + for i in `seq 1 1000` + echo 'void fn187() {}' + for i in `seq 1 1000` + echo 'void fn188() {}' + for i in `seq 1 1000` + echo 'void fn189() {}' + for i in `seq 1 1000` + echo 'void fn190() {}' + for i in `seq 1 1000` + echo 'void fn191() {}' + for i in `seq 1 1000` + echo 'void fn192() {}' + for i in `seq 1 1000` + echo 'void fn193() {}' + for i in `seq 1 1000` + echo 'void fn194() {}' + for i in `seq 1 1000` + echo 'void fn195() {}' + for i in `seq 1 1000` + echo 'void fn196() {}' + for i in `seq 1 1000` + echo 'void fn197() {}' + for i in `seq 1 1000` + echo 'void fn198() {}' + for i in `seq 1 1000` + echo 'void fn199() {}' + for i in `seq 1 1000` + echo 'void fn200() {}' + for i in `seq 1 1000` + echo 'void fn201() {}' + for i in `seq 1 1000` + echo 'void fn202() {}' + for i in `seq 1 1000` + echo 'void fn203() {}' + for i in `seq 1 1000` + echo 'void fn204() {}' + for i in `seq 1 1000` + echo 'void fn205() {}' + for i in `seq 1 1000` + echo 'void fn206() {}' + for i in `seq 1 1000` + echo 'void fn207() {}' + for i in `seq 1 1000` + echo 'void fn208() {}' + for i in `seq 1 1000` + echo 'void fn209() {}' + for i in `seq 1 1000` + echo 'void fn210() {}' + for i in `seq 1 1000` + echo 'void fn211() {}' + for i in `seq 1 1000` + echo 'void fn212() {}' + for i in `seq 1 1000` + echo 'void fn213() {}' + for i in `seq 1 1000` + echo 'void fn214() {}' + for i in `seq 1 1000` + echo 'void fn215() {}' + for i in `seq 1 1000` + echo 'void fn216() {}' + for i in `seq 1 1000` + echo 'void fn217() {}' + for i in `seq 1 1000` + echo 'void fn218() {}' + for i in `seq 1 1000` + echo 'void fn219() {}' + for i in `seq 1 1000` + echo 'void fn220() {}' + for i in `seq 1 1000` + echo 'void fn221() {}' + for i in `seq 1 1000` + echo 'void fn222() {}' + for i in `seq 1 1000` + echo 'void fn223() {}' + for i in `seq 1 1000` + echo 'void fn224() {}' + for i in `seq 1 1000` + echo 'void fn225() {}' + for i in `seq 1 1000` + echo 'void fn226() {}' + for i in `seq 1 1000` + echo 'void fn227() {}' + for i in `seq 1 1000` + echo 'void fn228() {}' + for i in `seq 1 1000` + echo 'void fn229() {}' + for i in `seq 1 1000` + echo 'void fn230() {}' + for i in `seq 1 1000` + echo 'void fn231() {}' + for i in `seq 1 1000` + echo 'void fn232() {}' + for i in `seq 1 1000` + echo 'void fn233() {}' + for i in `seq 1 1000` + echo 'void fn234() {}' + for i in `seq 1 1000` + echo 'void fn235() {}' + for i in `seq 1 1000` + echo 'void fn236() {}' + for i in `seq 1 1000` + echo 'void fn237() {}' + for i in `seq 1 1000` + echo 'void fn238() {}' + for i in `seq 1 1000` + echo 'void fn239() {}' + for i in `seq 1 1000` + echo 'void fn240() {}' + for i in `seq 1 1000` + echo 'void fn241() {}' + for i in `seq 1 1000` + echo 'void fn242() {}' + for i in `seq 1 1000` + echo 'void fn243() {}' + for i in `seq 1 1000` + echo 'void fn244() {}' + for i in `seq 1 1000` + echo 'void fn245() {}' + for i in `seq 1 1000` + echo 'void fn246() {}' + for i in `seq 1 1000` + echo 'void fn247() {}' + for i in `seq 1 1000` + echo 'void fn248() {}' + for i in `seq 1 1000` + echo 'void fn249() {}' + for i in `seq 1 1000` + echo 'void fn250() {}' + for i in `seq 1 1000` + echo 'void fn251() {}' + for i in `seq 1 1000` + echo 'void fn252() {}' + for i in `seq 1 1000` + echo 'void fn253() {}' + for i in `seq 1 1000` + echo 'void fn254() {}' + for i in `seq 1 1000` + echo 'void fn255() {}' + for i in `seq 1 1000` + echo 'void fn256() {}' + for i in `seq 1 1000` + echo 'void fn257() {}' + for i in `seq 1 1000` + echo 'void fn258() {}' + for i in `seq 1 1000` + echo 'void fn259() {}' + for i in `seq 1 1000` + echo 'void fn260() {}' + for i in `seq 1 1000` + echo 'void fn261() {}' + for i in `seq 1 1000` + echo 'void fn262() {}' + for i in `seq 1 1000` + echo 'void fn263() {}' + for i in `seq 1 1000` + echo 'void fn264() {}' + for i in `seq 1 1000` + echo 'void fn265() {}' + for i in `seq 1 1000` + echo 'void fn266() {}' + for i in `seq 1 1000` + echo 'void fn267() {}' + for i in `seq 1 1000` + echo 'void fn268() {}' + for i in `seq 1 1000` + echo 'void fn269() {}' + for i in `seq 1 1000` + echo 'void fn270() {}' + for i in `seq 1 1000` + echo 'void fn271() {}' + for i in `seq 1 1000` + echo 'void fn272() {}' + for i in `seq 1 1000` + echo 'void fn273() {}' + for i in `seq 1 1000` + echo 'void fn274() {}' + for i in `seq 1 1000` + echo 'void fn275() {}' + for i in `seq 1 1000` + echo 'void fn276() {}' + for i in `seq 1 1000` + echo 'void fn277() {}' + for i in `seq 1 1000` + echo 'void fn278() {}' + for i in `seq 1 1000` + echo 'void fn279() {}' + for i in `seq 1 1000` + echo 'void fn280() {}' + for i in `seq 1 1000` + echo 'void fn281() {}' + for i in `seq 1 1000` + echo 'void fn282() {}' + for i in `seq 1 1000` + echo 'void fn283() {}' + for i in `seq 1 1000` + echo 'void fn284() {}' + for i in `seq 1 1000` + echo 'void fn285() {}' + for i in `seq 1 1000` + echo 'void fn286() {}' + for i in `seq 1 1000` + echo 'void fn287() {}' + for i in `seq 1 1000` + echo 'void fn288() {}' + for i in `seq 1 1000` + echo 'void fn289() {}' + for i in `seq 1 1000` + echo 'void fn290() {}' + for i in `seq 1 1000` + echo 'void fn291() {}' + for i in `seq 1 1000` + echo 'void fn292() {}' + for i in `seq 1 1000` + echo 'void fn293() {}' + for i in `seq 1 1000` + echo 'void fn294() {}' + for i in `seq 1 1000` + echo 'void fn295() {}' + for i in `seq 1 1000` + echo 'void fn296() {}' + for i in `seq 1 1000` + echo 'void fn297() {}' + for i in `seq 1 1000` + echo 'void fn298() {}' + for i in `seq 1 1000` + echo 'void fn299() {}' + for i in `seq 1 1000` + echo 'void fn300() {}' + for i in `seq 1 1000` + echo 'void fn301() {}' + for i in `seq 1 1000` + echo 'void fn302() {}' + for i in `seq 1 1000` + echo 'void fn303() {}' + for i in `seq 1 1000` + echo 'void fn304() {}' + for i in `seq 1 1000` + echo 'void fn305() {}' + for i in `seq 1 1000` + echo 'void fn306() {}' + for i in `seq 1 1000` + echo 'void fn307() {}' + for i in `seq 1 1000` + echo 'void fn308() {}' + for i in `seq 1 1000` + echo 'void fn309() {}' + for i in `seq 1 1000` + echo 'void fn310() {}' + for i in `seq 1 1000` + echo 'void fn311() {}' + for i in `seq 1 1000` + echo 'void fn312() {}' + for i in `seq 1 1000` + echo 'void fn313() {}' + for i in `seq 1 1000` + echo 'void fn314() {}' + for i in `seq 1 1000` + echo 'void fn315() {}' + for i in `seq 1 1000` + echo 'void fn316() {}' + for i in `seq 1 1000` + echo 'void fn317() {}' + for i in `seq 1 1000` + echo 'void fn318() {}' + for i in `seq 1 1000` + echo 'void fn319() {}' + for i in `seq 1 1000` + echo 'void fn320() {}' + for i in `seq 1 1000` + echo 'void fn321() {}' + for i in `seq 1 1000` + echo 'void fn322() {}' + for i in `seq 1 1000` + echo 'void fn323() {}' + for i in `seq 1 1000` + echo 'void fn324() {}' + for i in `seq 1 1000` + echo 'void fn325() {}' + for i in `seq 1 1000` + echo 'void fn326() {}' + for i in `seq 1 1000` + echo 'void fn327() {}' + for i in `seq 1 1000` + echo 'void fn328() {}' + for i in `seq 1 1000` + echo 'void fn329() {}' + for i in `seq 1 1000` + echo 'void fn330() {}' + for i in `seq 1 1000` + echo 'void fn331() {}' + for i in `seq 1 1000` + echo 'void fn332() {}' + for i in `seq 1 1000` + echo 'void fn333() {}' + for i in `seq 1 1000` + echo 'void fn334() {}' + for i in `seq 1 1000` + echo 'void fn335() {}' + for i in `seq 1 1000` + echo 'void fn336() {}' + for i in `seq 1 1000` + echo 'void fn337() {}' + for i in `seq 1 1000` + echo 'void fn338() {}' + for i in `seq 1 1000` + echo 'void fn339() {}' + for i in `seq 1 1000` + echo 'void fn340() {}' + for i in `seq 1 1000` + echo 'void fn341() {}' + for i in `seq 1 1000` + echo 'void fn342() {}' + for i in `seq 1 1000` + echo 'void fn343() {}' + for i in `seq 1 1000` + echo 'void fn344() {}' + for i in `seq 1 1000` + echo 'void fn345() {}' + for i in `seq 1 1000` + echo 'void fn346() {}' + for i in `seq 1 1000` + echo 'void fn347() {}' + for i in `seq 1 1000` + echo 'void fn348() {}' + for i in `seq 1 1000` + echo 'void fn349() {}' + for i in `seq 1 1000` + echo 'void fn350() {}' + for i in `seq 1 1000` + echo 'void fn351() {}' + for i in `seq 1 1000` + echo 'void fn352() {}' + for i in `seq 1 1000` + echo 'void fn353() {}' + for i in `seq 1 1000` + echo 'void fn354() {}' + for i in `seq 1 1000` + echo 'void fn355() {}' + for i in `seq 1 1000` + echo 'void fn356() {}' + for i in `seq 1 1000` + echo 'void fn357() {}' + for i in `seq 1 1000` + echo 'void fn358() {}' + for i in `seq 1 1000` + echo 'void fn359() {}' + for i in `seq 1 1000` + echo 'void fn360() {}' + for i in `seq 1 1000` + echo 'void fn361() {}' + for i in `seq 1 1000` + echo 'void fn362() {}' + for i in `seq 1 1000` + echo 'void fn363() {}' + for i in `seq 1 1000` + echo 'void fn364() {}' + for i in `seq 1 1000` + echo 'void fn365() {}' + for i in `seq 1 1000` + echo 'void fn366() {}' + for i in `seq 1 1000` + echo 'void fn367() {}' + for i in `seq 1 1000` + echo 'void fn368() {}' + for i in `seq 1 1000` + echo 'void fn369() {}' + for i in `seq 1 1000` + echo 'void fn370() {}' + for i in `seq 1 1000` + echo 'void fn371() {}' + for i in `seq 1 1000` + echo 'void fn372() {}' + for i in `seq 1 1000` + echo 'void fn373() {}' + for i in `seq 1 1000` + echo 'void fn374() {}' + for i in `seq 1 1000` + echo 'void fn375() {}' + for i in `seq 1 1000` + echo 'void fn376() {}' + for i in `seq 1 1000` + echo 'void fn377() {}' + for i in `seq 1 1000` + echo 'void fn378() {}' + for i in `seq 1 1000` + echo 'void fn379() {}' + for i in `seq 1 1000` + echo 'void fn380() {}' + for i in `seq 1 1000` + echo 'void fn381() {}' + for i in `seq 1 1000` + echo 'void fn382() {}' + for i in `seq 1 1000` + echo 'void fn383() {}' + for i in `seq 1 1000` + echo 'void fn384() {}' + for i in `seq 1 1000` + echo 'void fn385() {}' + for i in `seq 1 1000` + echo 'void fn386() {}' + for i in `seq 1 1000` + echo 'void fn387() {}' + for i in `seq 1 1000` + echo 'void fn388() {}' + for i in `seq 1 1000` + echo 'void fn389() {}' + for i in `seq 1 1000` + echo 'void fn390() {}' + for i in `seq 1 1000` + echo 'void fn391() {}' + for i in `seq 1 1000` + echo 'void fn392() {}' + for i in `seq 1 1000` + echo 'void fn393() {}' + for i in `seq 1 1000` + echo 'void fn394() {}' + for i in `seq 1 1000` + echo 'void fn395() {}' + for i in `seq 1 1000` + echo 'void fn396() {}' + for i in `seq 1 1000` + echo 'void fn397() {}' + for i in `seq 1 1000` + echo 'void fn398() {}' + for i in `seq 1 1000` + echo 'void fn399() {}' + for i in `seq 1 1000` + echo 'void fn400() {}' + for i in `seq 1 1000` + echo 'void fn401() {}' + for i in `seq 1 1000` + echo 'void fn402() {}' + for i in `seq 1 1000` + echo 'void fn403() {}' + for i in `seq 1 1000` + echo 'void fn404() {}' + for i in `seq 1 1000` + echo 'void fn405() {}' + for i in `seq 1 1000` + echo 'void fn406() {}' + for i in `seq 1 1000` + echo 'void fn407() {}' + for i in `seq 1 1000` + echo 'void fn408() {}' + for i in `seq 1 1000` + echo 'void fn409() {}' + for i in `seq 1 1000` + echo 'void fn410() {}' + for i in `seq 1 1000` + echo 'void fn411() {}' + for i in `seq 1 1000` + echo 'void fn412() {}' + for i in `seq 1 1000` + echo 'void fn413() {}' + for i in `seq 1 1000` + echo 'void fn414() {}' + for i in `seq 1 1000` + echo 'void fn415() {}' + for i in `seq 1 1000` + echo 'void fn416() {}' + for i in `seq 1 1000` + echo 'void fn417() {}' + for i in `seq 1 1000` + echo 'void fn418() {}' + for i in `seq 1 1000` + echo 'void fn419() {}' + for i in `seq 1 1000` + echo 'void fn420() {}' + for i in `seq 1 1000` + echo 'void fn421() {}' + for i in `seq 1 1000` + echo 'void fn422() {}' + for i in `seq 1 1000` + echo 'void fn423() {}' + for i in `seq 1 1000` + echo 'void fn424() {}' + for i in `seq 1 1000` + echo 'void fn425() {}' + for i in `seq 1 1000` + echo 'void fn426() {}' + for i in `seq 1 1000` + echo 'void fn427() {}' + for i in `seq 1 1000` + echo 'void fn428() {}' + for i in `seq 1 1000` + echo 'void fn429() {}' + for i in `seq 1 1000` + echo 'void fn430() {}' + for i in `seq 1 1000` + echo 'void fn431() {}' + for i in `seq 1 1000` + echo 'void fn432() {}' + for i in `seq 1 1000` + echo 'void fn433() {}' + for i in `seq 1 1000` + echo 'void fn434() {}' + for i in `seq 1 1000` + echo 'void fn435() {}' + for i in `seq 1 1000` + echo 'void fn436() {}' + for i in `seq 1 1000` + echo 'void fn437() {}' + for i in `seq 1 1000` + echo 'void fn438() {}' + for i in `seq 1 1000` + echo 'void fn439() {}' + for i in `seq 1 1000` + echo 'void fn440() {}' + for i in `seq 1 1000` + echo 'void fn441() {}' + for i in `seq 1 1000` + echo 'void fn442() {}' + for i in `seq 1 1000` + echo 'void fn443() {}' + for i in `seq 1 1000` + echo 'void fn444() {}' + for i in `seq 1 1000` + echo 'void fn445() {}' + for i in `seq 1 1000` + echo 'void fn446() {}' + for i in `seq 1 1000` + echo 'void fn447() {}' + for i in `seq 1 1000` + echo 'void fn448() {}' + for i in `seq 1 1000` + echo 'void fn449() {}' + for i in `seq 1 1000` + echo 'void fn450() {}' + for i in `seq 1 1000` + echo 'void fn451() {}' + for i in `seq 1 1000` + echo 'void fn452() {}' + for i in `seq 1 1000` + echo 'void fn453() {}' + for i in `seq 1 1000` + echo 'void fn454() {}' + for i in `seq 1 1000` + echo 'void fn455() {}' + for i in `seq 1 1000` + echo 'void fn456() {}' + for i in `seq 1 1000` + echo 'void fn457() {}' + for i in `seq 1 1000` + echo 'void fn458() {}' + for i in `seq 1 1000` + echo 'void fn459() {}' + for i in `seq 1 1000` + echo 'void fn460() {}' + for i in `seq 1 1000` + echo 'void fn461() {}' + for i in `seq 1 1000` + echo 'void fn462() {}' + for i in `seq 1 1000` + echo 'void fn463() {}' + for i in `seq 1 1000` + echo 'void fn464() {}' + for i in `seq 1 1000` + echo 'void fn465() {}' + for i in `seq 1 1000` + echo 'void fn466() {}' + for i in `seq 1 1000` + echo 'void fn467() {}' + for i in `seq 1 1000` + echo 'void fn468() {}' + for i in `seq 1 1000` + echo 'void fn469() {}' + for i in `seq 1 1000` + echo 'void fn470() {}' + for i in `seq 1 1000` + echo 'void fn471() {}' + for i in `seq 1 1000` + echo 'void fn472() {}' + for i in `seq 1 1000` + echo 'void fn473() {}' + for i in `seq 1 1000` + echo 'void fn474() {}' + for i in `seq 1 1000` + echo 'void fn475() {}' + for i in `seq 1 1000` + echo 'void fn476() {}' + for i in `seq 1 1000` + echo 'void fn477() {}' + for i in `seq 1 1000` + echo 'void fn478() {}' + for i in `seq 1 1000` + echo 'void fn479() {}' + for i in `seq 1 1000` + echo 'void fn480() {}' + for i in `seq 1 1000` + echo 'void fn481() {}' + for i in `seq 1 1000` + echo 'void fn482() {}' + for i in `seq 1 1000` + echo 'void fn483() {}' + for i in `seq 1 1000` + echo 'void fn484() {}' + for i in `seq 1 1000` + echo 'void fn485() {}' + for i in `seq 1 1000` + echo 'void fn486() {}' + for i in `seq 1 1000` + echo 'void fn487() {}' + for i in `seq 1 1000` + echo 'void fn488() {}' + for i in `seq 1 1000` + echo 'void fn489() {}' + for i in `seq 1 1000` + echo 'void fn490() {}' + for i in `seq 1 1000` + echo 'void fn491() {}' + for i in `seq 1 1000` + echo 'void fn492() {}' + for i in `seq 1 1000` + echo 'void fn493() {}' + for i in `seq 1 1000` + echo 'void fn494() {}' + for i in `seq 1 1000` + echo 'void fn495() {}' + for i in `seq 1 1000` + echo 'void fn496() {}' + for i in `seq 1 1000` + echo 'void fn497() {}' + for i in `seq 1 1000` + echo 'void fn498() {}' + for i in `seq 1 1000` + echo 'void fn499() {}' + for i in `seq 1 1000` + echo 'void fn500() {}' + for i in `seq 1 1000` + echo 'void fn501() {}' + for i in `seq 1 1000` + echo 'void fn502() {}' + for i in `seq 1 1000` + echo 'void fn503() {}' + for i in `seq 1 1000` + echo 'void fn504() {}' + for i in `seq 1 1000` + echo 'void fn505() {}' + for i in `seq 1 1000` + echo 'void fn506() {}' + for i in `seq 1 1000` + echo 'void fn507() {}' + for i in `seq 1 1000` + echo 'void fn508() {}' + for i in `seq 1 1000` + echo 'void fn509() {}' + for i in `seq 1 1000` + echo 'void fn510() {}' + for i in `seq 1 1000` + echo 'void fn511() {}' + for i in `seq 1 1000` + echo 'void fn512() {}' + for i in `seq 1 1000` + echo 'void fn513() {}' + for i in `seq 1 1000` + echo 'void fn514() {}' + for i in `seq 1 1000` + echo 'void fn515() {}' + for i in `seq 1 1000` + echo 'void fn516() {}' + for i in `seq 1 1000` + echo 'void fn517() {}' + for i in `seq 1 1000` + echo 'void fn518() {}' + for i in `seq 1 1000` + echo 'void fn519() {}' + for i in `seq 1 1000` + echo 'void fn520() {}' + for i in `seq 1 1000` + echo 'void fn521() {}' + for i in `seq 1 1000` + echo 'void fn522() {}' + for i in `seq 1 1000` + echo 'void fn523() {}' + for i in `seq 1 1000` + echo 'void fn524() {}' + for i in `seq 1 1000` + echo 'void fn525() {}' + for i in `seq 1 1000` + echo 'void fn526() {}' + for i in `seq 1 1000` + echo 'void fn527() {}' + for i in `seq 1 1000` + echo 'void fn528() {}' + for i in `seq 1 1000` + echo 'void fn529() {}' + for i in `seq 1 1000` + echo 'void fn530() {}' + for i in `seq 1 1000` + echo 'void fn531() {}' + for i in `seq 1 1000` + echo 'void fn532() {}' + for i in `seq 1 1000` + echo 'void fn533() {}' + for i in `seq 1 1000` + echo 'void fn534() {}' + for i in `seq 1 1000` + echo 'void fn535() {}' + for i in `seq 1 1000` + echo 'void fn536() {}' + for i in `seq 1 1000` + echo 'void fn537() {}' + for i in `seq 1 1000` + echo 'void fn538() {}' + for i in `seq 1 1000` + echo 'void fn539() {}' + for i in `seq 1 1000` + echo 'void fn540() {}' + for i in `seq 1 1000` + echo 'void fn541() {}' + for i in `seq 1 1000` + echo 'void fn542() {}' + for i in `seq 1 1000` + echo 'void fn543() {}' + for i in `seq 1 1000` + echo 'void fn544() {}' + for i in `seq 1 1000` + echo 'void fn545() {}' + for i in `seq 1 1000` + echo 'void fn546() {}' + for i in `seq 1 1000` + echo 'void fn547() {}' + for i in `seq 1 1000` + echo 'void fn548() {}' + for i in `seq 1 1000` + echo 'void fn549() {}' + for i in `seq 1 1000` + echo 'void fn550() {}' + for i in `seq 1 1000` + echo 'void fn551() {}' + for i in `seq 1 1000` + echo 'void fn552() {}' + for i in `seq 1 1000` + echo 'void fn553() {}' + for i in `seq 1 1000` + echo 'void fn554() {}' + for i in `seq 1 1000` + echo 'void fn555() {}' + for i in `seq 1 1000` + echo 'void fn556() {}' + for i in `seq 1 1000` + echo 'void fn557() {}' + for i in `seq 1 1000` + echo 'void fn558() {}' + for i in `seq 1 1000` + echo 'void fn559() {}' + for i in `seq 1 1000` + echo 'void fn560() {}' + for i in `seq 1 1000` + echo 'void fn561() {}' + for i in `seq 1 1000` + echo 'void fn562() {}' + for i in `seq 1 1000` + echo 'void fn563() {}' + for i in `seq 1 1000` + echo 'void fn564() {}' + for i in `seq 1 1000` + echo 'void fn565() {}' + for i in `seq 1 1000` + echo 'void fn566() {}' + for i in `seq 1 1000` + echo 'void fn567() {}' + for i in `seq 1 1000` + echo 'void fn568() {}' + for i in `seq 1 1000` + echo 'void fn569() {}' + for i in `seq 1 1000` + echo 'void fn570() {}' + for i in `seq 1 1000` + echo 'void fn571() {}' + for i in `seq 1 1000` + echo 'void fn572() {}' + for i in `seq 1 1000` + echo 'void fn573() {}' + for i in `seq 1 1000` + echo 'void fn574() {}' + for i in `seq 1 1000` + echo 'void fn575() {}' + for i in `seq 1 1000` + echo 'void fn576() {}' + for i in `seq 1 1000` + echo 'void fn577() {}' + for i in `seq 1 1000` + echo 'void fn578() {}' + for i in `seq 1 1000` + echo 'void fn579() {}' + for i in `seq 1 1000` + echo 'void fn580() {}' + for i in `seq 1 1000` + echo 'void fn581() {}' + for i in `seq 1 1000` + echo 'void fn582() {}' + for i in `seq 1 1000` + echo 'void fn583() {}' + for i in `seq 1 1000` + echo 'void fn584() {}' + for i in `seq 1 1000` + echo 'void fn585() {}' + for i in `seq 1 1000` + echo 'void fn586() {}' + for i in `seq 1 1000` + echo 'void fn587() {}' + for i in `seq 1 1000` + echo 'void fn588() {}' + for i in `seq 1 1000` + echo 'void fn589() {}' + for i in `seq 1 1000` + echo 'void fn590() {}' + for i in `seq 1 1000` + echo 'void fn591() {}' + for i in `seq 1 1000` + echo 'void fn592() {}' + for i in `seq 1 1000` + echo 'void fn593() {}' + for i in `seq 1 1000` + echo 'void fn594() {}' + for i in `seq 1 1000` + echo 'void fn595() {}' + for i in `seq 1 1000` + echo 'void fn596() {}' + for i in `seq 1 1000` + echo 'void fn597() {}' + for i in `seq 1 1000` + echo 'void fn598() {}' + for i in `seq 1 1000` + echo 'void fn599() {}' + for i in `seq 1 1000` + echo 'void fn600() {}' + for i in `seq 1 1000` + echo 'void fn601() {}' + for i in `seq 1 1000` + echo 'void fn602() {}' + for i in `seq 1 1000` + echo 'void fn603() {}' + for i in `seq 1 1000` + echo 'void fn604() {}' + for i in `seq 1 1000` + echo 'void fn605() {}' + for i in `seq 1 1000` + echo 'void fn606() {}' + for i in `seq 1 1000` + echo 'void fn607() {}' + for i in `seq 1 1000` + echo 'void fn608() {}' + for i in `seq 1 1000` + echo 'void fn609() {}' + for i in `seq 1 1000` + echo 'void fn610() {}' + for i in `seq 1 1000` + echo 'void fn611() {}' + for i in `seq 1 1000` + echo 'void fn612() {}' + for i in `seq 1 1000` + echo 'void fn613() {}' + for i in `seq 1 1000` + echo 'void fn614() {}' + for i in `seq 1 1000` + echo 'void fn615() {}' + for i in `seq 1 1000` + echo 'void fn616() {}' + for i in `seq 1 1000` + echo 'void fn617() {}' + for i in `seq 1 1000` + echo 'void fn618() {}' + for i in `seq 1 1000` + echo 'void fn619() {}' + for i in `seq 1 1000` + echo 'void fn620() {}' + for i in `seq 1 1000` + echo 'void fn621() {}' + for i in `seq 1 1000` + echo 'void fn622() {}' + for i in `seq 1 1000` + echo 'void fn623() {}' + for i in `seq 1 1000` + echo 'void fn624() {}' + for i in `seq 1 1000` + echo 'void fn625() {}' + for i in `seq 1 1000` + echo 'void fn626() {}' + for i in `seq 1 1000` + echo 'void fn627() {}' + for i in `seq 1 1000` + echo 'void fn628() {}' + for i in `seq 1 1000` + echo 'void fn629() {}' + for i in `seq 1 1000` + echo 'void fn630() {}' + for i in `seq 1 1000` + echo 'void fn631() {}' + for i in `seq 1 1000` + echo 'void fn632() {}' + for i in `seq 1 1000` + echo 'void fn633() {}' + for i in `seq 1 1000` + echo 'void fn634() {}' + for i in `seq 1 1000` + echo 'void fn635() {}' + for i in `seq 1 1000` + echo 'void fn636() {}' + for i in `seq 1 1000` + echo 'void fn637() {}' + for i in `seq 1 1000` + echo 'void fn638() {}' + for i in `seq 1 1000` + echo 'void fn639() {}' + for i in `seq 1 1000` + echo 'void fn640() {}' + for i in `seq 1 1000` + echo 'void fn641() {}' + for i in `seq 1 1000` + echo 'void fn642() {}' + for i in `seq 1 1000` + echo 'void fn643() {}' + for i in `seq 1 1000` + echo 'void fn644() {}' + for i in `seq 1 1000` + echo 'void fn645() {}' + for i in `seq 1 1000` + echo 'void fn646() {}' + for i in `seq 1 1000` + echo 'void fn647() {}' + for i in `seq 1 1000` + echo 'void fn648() {}' + for i in `seq 1 1000` + echo 'void fn649() {}' + for i in `seq 1 1000` + echo 'void fn650() {}' + for i in `seq 1 1000` + echo 'void fn651() {}' + for i in `seq 1 1000` + echo 'void fn652() {}' + for i in `seq 1 1000` + echo 'void fn653() {}' + for i in `seq 1 1000` + echo 'void fn654() {}' + for i in `seq 1 1000` + echo 'void fn655() {}' + for i in `seq 1 1000` + echo 'void fn656() {}' + for i in `seq 1 1000` + echo 'void fn657() {}' + for i in `seq 1 1000` + echo 'void fn658() {}' + for i in `seq 1 1000` + echo 'void fn659() {}' + for i in `seq 1 1000` + echo 'void fn660() {}' + for i in `seq 1 1000` + echo 'void fn661() {}' + for i in `seq 1 1000` + echo 'void fn662() {}' + for i in `seq 1 1000` + echo 'void fn663() {}' + for i in `seq 1 1000` + echo 'void fn664() {}' + for i in `seq 1 1000` + echo 'void fn665() {}' + for i in `seq 1 1000` + echo 'void fn666() {}' + for i in `seq 1 1000` + echo 'void fn667() {}' + for i in `seq 1 1000` + echo 'void fn668() {}' + for i in `seq 1 1000` + echo 'void fn669() {}' + for i in `seq 1 1000` + echo 'void fn670() {}' + for i in `seq 1 1000` + echo 'void fn671() {}' + for i in `seq 1 1000` + echo 'void fn672() {}' + for i in `seq 1 1000` + echo 'void fn673() {}' + for i in `seq 1 1000` + echo 'void fn674() {}' + for i in `seq 1 1000` + echo 'void fn675() {}' + for i in `seq 1 1000` + echo 'void fn676() {}' + for i in `seq 1 1000` + echo 'void fn677() {}' + for i in `seq 1 1000` + echo 'void fn678() {}' + for i in `seq 1 1000` + echo 'void fn679() {}' + for i in `seq 1 1000` + echo 'void fn680() {}' + for i in `seq 1 1000` + echo 'void fn681() {}' + for i in `seq 1 1000` + echo 'void fn682() {}' + for i in `seq 1 1000` + echo 'void fn683() {}' + for i in `seq 1 1000` + echo 'void fn684() {}' + for i in `seq 1 1000` + echo 'void fn685() {}' + for i in `seq 1 1000` + echo 'void fn686() {}' + for i in `seq 1 1000` + echo 'void fn687() {}' + for i in `seq 1 1000` + echo 'void fn688() {}' + for i in `seq 1 1000` + echo 'void fn689() {}' + for i in `seq 1 1000` + echo 'void fn690() {}' + for i in `seq 1 1000` + echo 'void fn691() {}' + for i in `seq 1 1000` + echo 'void fn692() {}' + for i in `seq 1 1000` + echo 'void fn693() {}' + for i in `seq 1 1000` + echo 'void fn694() {}' + for i in `seq 1 1000` + echo 'void fn695() {}' + for i in `seq 1 1000` + echo 'void fn696() {}' + for i in `seq 1 1000` + echo 'void fn697() {}' + for i in `seq 1 1000` + echo 'void fn698() {}' + for i in `seq 1 1000` + echo 'void fn699() {}' + for i in `seq 1 1000` + echo 'void fn700() {}' + for i in `seq 1 1000` + echo 'void fn701() {}' + for i in `seq 1 1000` + echo 'void fn702() {}' + for i in `seq 1 1000` + echo 'void fn703() {}' + for i in `seq 1 1000` + echo 'void fn704() {}' + for i in `seq 1 1000` + echo 'void fn705() {}' + for i in `seq 1 1000` + echo 'void fn706() {}' + for i in `seq 1 1000` + echo 'void fn707() {}' + for i in `seq 1 1000` + echo 'void fn708() {}' + for i in `seq 1 1000` + echo 'void fn709() {}' + for i in `seq 1 1000` + echo 'void fn710() {}' + for i in `seq 1 1000` + echo 'void fn711() {}' + for i in `seq 1 1000` + echo 'void fn712() {}' + for i in `seq 1 1000` + echo 'void fn713() {}' + for i in `seq 1 1000` + echo 'void fn714() {}' + for i in `seq 1 1000` + echo 'void fn715() {}' + for i in `seq 1 1000` + echo 'void fn716() {}' + for i in `seq 1 1000` + echo 'void fn717() {}' + for i in `seq 1 1000` + echo 'void fn718() {}' + for i in `seq 1 1000` + echo 'void fn719() {}' + for i in `seq 1 1000` + echo 'void fn720() {}' + for i in `seq 1 1000` + echo 'void fn721() {}' + for i in `seq 1 1000` + echo 'void fn722() {}' + for i in `seq 1 1000` + echo 'void fn723() {}' + for i in `seq 1 1000` + echo 'void fn724() {}' + for i in `seq 1 1000` + echo 'void fn725() {}' + for i in `seq 1 1000` + echo 'void fn726() {}' + for i in `seq 1 1000` + echo 'void fn727() {}' + for i in `seq 1 1000` + echo 'void fn728() {}' + for i in `seq 1 1000` + echo 'void fn729() {}' + for i in `seq 1 1000` + echo 'void fn730() {}' + for i in `seq 1 1000` + echo 'void fn731() {}' + for i in `seq 1 1000` + echo 'void fn732() {}' + for i in `seq 1 1000` + echo 'void fn733() {}' + for i in `seq 1 1000` + echo 'void fn734() {}' + for i in `seq 1 1000` + echo 'void fn735() {}' + for i in `seq 1 1000` + echo 'void fn736() {}' + for i in `seq 1 1000` + echo 'void fn737() {}' + for i in `seq 1 1000` + echo 'void fn738() {}' + for i in `seq 1 1000` + echo 'void fn739() {}' + for i in `seq 1 1000` + echo 'void fn740() {}' + for i in `seq 1 1000` + echo 'void fn741() {}' + for i in `seq 1 1000` + echo 'void fn742() {}' + for i in `seq 1 1000` + echo 'void fn743() {}' + for i in `seq 1 1000` + echo 'void fn744() {}' + for i in `seq 1 1000` + echo 'void fn745() {}' + for i in `seq 1 1000` + echo 'void fn746() {}' + for i in `seq 1 1000` + echo 'void fn747() {}' + for i in `seq 1 1000` + echo 'void fn748() {}' + for i in `seq 1 1000` + echo 'void fn749() {}' + for i in `seq 1 1000` + echo 'void fn750() {}' + for i in `seq 1 1000` + echo 'void fn751() {}' + for i in `seq 1 1000` + echo 'void fn752() {}' + for i in `seq 1 1000` + echo 'void fn753() {}' + for i in `seq 1 1000` + echo 'void fn754() {}' + for i in `seq 1 1000` + echo 'void fn755() {}' + for i in `seq 1 1000` + echo 'void fn756() {}' + for i in `seq 1 1000` + echo 'void fn757() {}' + for i in `seq 1 1000` + echo 'void fn758() {}' + for i in `seq 1 1000` + echo 'void fn759() {}' + for i in `seq 1 1000` + echo 'void fn760() {}' + for i in `seq 1 1000` + echo 'void fn761() {}' + for i in `seq 1 1000` + echo 'void fn762() {}' + for i in `seq 1 1000` + echo 'void fn763() {}' + for i in `seq 1 1000` + echo 'void fn764() {}' + for i in `seq 1 1000` + echo 'void fn765() {}' + for i in `seq 1 1000` + echo 'void fn766() {}' + for i in `seq 1 1000` + echo 'void fn767() {}' + for i in `seq 1 1000` + echo 'void fn768() {}' + for i in `seq 1 1000` + echo 'void fn769() {}' + for i in `seq 1 1000` + echo 'void fn770() {}' + for i in `seq 1 1000` + echo 'void fn771() {}' + for i in `seq 1 1000` + echo 'void fn772() {}' + for i in `seq 1 1000` + echo 'void fn773() {}' + for i in `seq 1 1000` + echo 'void fn774() {}' + for i in `seq 1 1000` + echo 'void fn775() {}' + for i in `seq 1 1000` + echo 'void fn776() {}' + for i in `seq 1 1000` + echo 'void fn777() {}' + for i in `seq 1 1000` + echo 'void fn778() {}' + for i in `seq 1 1000` + echo 'void fn779() {}' + for i in `seq 1 1000` + echo 'void fn780() {}' + for i in `seq 1 1000` + echo 'void fn781() {}' + for i in `seq 1 1000` + echo 'void fn782() {}' + for i in `seq 1 1000` + echo 'void fn783() {}' + for i in `seq 1 1000` + echo 'void fn784() {}' + for i in `seq 1 1000` + echo 'void fn785() {}' + for i in `seq 1 1000` + echo 'void fn786() {}' + for i in `seq 1 1000` + echo 'void fn787() {}' + for i in `seq 1 1000` + echo 'void fn788() {}' + for i in `seq 1 1000` + echo 'void fn789() {}' + for i in `seq 1 1000` + echo 'void fn790() {}' + for i in `seq 1 1000` + echo 'void fn791() {}' + for i in `seq 1 1000` + echo 'void fn792() {}' + for i in `seq 1 1000` + echo 'void fn793() {}' + for i in `seq 1 1000` + echo 'void fn794() {}' + for i in `seq 1 1000` + echo 'void fn795() {}' + for i in `seq 1 1000` + echo 'void fn796() {}' + for i in `seq 1 1000` + echo 'void fn797() {}' + for i in `seq 1 1000` + echo 'void fn798() {}' + for i in `seq 1 1000` + echo 'void fn799() {}' + for i in `seq 1 1000` + echo 'void fn800() {}' + for i in `seq 1 1000` + echo 'void fn801() {}' + for i in `seq 1 1000` + echo 'void fn802() {}' + for i in `seq 1 1000` + echo 'void fn803() {}' + for i in `seq 1 1000` + echo 'void fn804() {}' + for i in `seq 1 1000` + echo 'void fn805() {}' + for i in `seq 1 1000` + echo 'void fn806() {}' + for i in `seq 1 1000` + echo 'void fn807() {}' + for i in `seq 1 1000` + echo 'void fn808() {}' + for i in `seq 1 1000` + echo 'void fn809() {}' + for i in `seq 1 1000` + echo 'void fn810() {}' + for i in `seq 1 1000` + echo 'void fn811() {}' + for i in `seq 1 1000` + echo 'void fn812() {}' + for i in `seq 1 1000` + echo 'void fn813() {}' + for i in `seq 1 1000` + echo 'void fn814() {}' + for i in `seq 1 1000` + echo 'void fn815() {}' + for i in `seq 1 1000` + echo 'void fn816() {}' + for i in `seq 1 1000` + echo 'void fn817() {}' + for i in `seq 1 1000` + echo 'void fn818() {}' + for i in `seq 1 1000` + echo 'void fn819() {}' + for i in `seq 1 1000` + echo 'void fn820() {}' + for i in `seq 1 1000` + echo 'void fn821() {}' + for i in `seq 1 1000` + echo 'void fn822() {}' + for i in `seq 1 1000` + echo 'void fn823() {}' + for i in `seq 1 1000` + echo 'void fn824() {}' + for i in `seq 1 1000` + echo 'void fn825() {}' + for i in `seq 1 1000` + echo 'void fn826() {}' + for i in `seq 1 1000` + echo 'void fn827() {}' + for i in `seq 1 1000` + echo 'void fn828() {}' + for i in `seq 1 1000` + echo 'void fn829() {}' + for i in `seq 1 1000` + echo 'void fn830() {}' + for i in `seq 1 1000` + echo 'void fn831() {}' + for i in `seq 1 1000` + echo 'void fn832() {}' + for i in `seq 1 1000` + echo 'void fn833() {}' + for i in `seq 1 1000` + echo 'void fn834() {}' + for i in `seq 1 1000` + echo 'void fn835() {}' + for i in `seq 1 1000` + echo 'void fn836() {}' + for i in `seq 1 1000` + echo 'void fn837() {}' + for i in `seq 1 1000` + echo 'void fn838() {}' + for i in `seq 1 1000` + echo 'void fn839() {}' + for i in `seq 1 1000` + echo 'void fn840() {}' + for i in `seq 1 1000` + echo 'void fn841() {}' + for i in `seq 1 1000` + echo 'void fn842() {}' + for i in `seq 1 1000` + echo 'void fn843() {}' + for i in `seq 1 1000` + echo 'void fn844() {}' + for i in `seq 1 1000` + echo 'void fn845() {}' + for i in `seq 1 1000` + echo 'void fn846() {}' + for i in `seq 1 1000` + echo 'void fn847() {}' + for i in `seq 1 1000` + echo 'void fn848() {}' + for i in `seq 1 1000` + echo 'void fn849() {}' + for i in `seq 1 1000` + echo 'void fn850() {}' + for i in `seq 1 1000` + echo 'void fn851() {}' + for i in `seq 1 1000` + echo 'void fn852() {}' + for i in `seq 1 1000` + echo 'void fn853() {}' + for i in `seq 1 1000` + echo 'void fn854() {}' + for i in `seq 1 1000` + echo 'void fn855() {}' + for i in `seq 1 1000` + echo 'void fn856() {}' + for i in `seq 1 1000` + echo 'void fn857() {}' + for i in `seq 1 1000` + echo 'void fn858() {}' + for i in `seq 1 1000` + echo 'void fn859() {}' + for i in `seq 1 1000` + echo 'void fn860() {}' + for i in `seq 1 1000` + echo 'void fn861() {}' + for i in `seq 1 1000` + echo 'void fn862() {}' + for i in `seq 1 1000` + echo 'void fn863() {}' + for i in `seq 1 1000` + echo 'void fn864() {}' + for i in `seq 1 1000` + echo 'void fn865() {}' + for i in `seq 1 1000` + echo 'void fn866() {}' + for i in `seq 1 1000` + echo 'void fn867() {}' + for i in `seq 1 1000` + echo 'void fn868() {}' + for i in `seq 1 1000` + echo 'void fn869() {}' + for i in `seq 1 1000` + echo 'void fn870() {}' + for i in `seq 1 1000` + echo 'void fn871() {}' + for i in `seq 1 1000` + echo 'void fn872() {}' + for i in `seq 1 1000` + echo 'void fn873() {}' + for i in `seq 1 1000` + echo 'void fn874() {}' + for i in `seq 1 1000` + echo 'void fn875() {}' + for i in `seq 1 1000` + echo 'void fn876() {}' + for i in `seq 1 1000` + echo 'void fn877() {}' + for i in `seq 1 1000` + echo 'void fn878() {}' + for i in `seq 1 1000` + echo 'void fn879() {}' + for i in `seq 1 1000` + echo 'void fn880() {}' + for i in `seq 1 1000` + echo 'void fn881() {}' + for i in `seq 1 1000` + echo 'void fn882() {}' + for i in `seq 1 1000` + echo 'void fn883() {}' + for i in `seq 1 1000` + echo 'void fn884() {}' + for i in `seq 1 1000` + echo 'void fn885() {}' + for i in `seq 1 1000` + echo 'void fn886() {}' + for i in `seq 1 1000` + echo 'void fn887() {}' + for i in `seq 1 1000` + echo 'void fn888() {}' + for i in `seq 1 1000` + echo 'void fn889() {}' + for i in `seq 1 1000` + echo 'void fn890() {}' + for i in `seq 1 1000` + echo 'void fn891() {}' + for i in `seq 1 1000` + echo 'void fn892() {}' + for i in `seq 1 1000` + echo 'void fn893() {}' + for i in `seq 1 1000` + echo 'void fn894() {}' + for i in `seq 1 1000` + echo 'void fn895() {}' + for i in `seq 1 1000` + echo 'void fn896() {}' + for i in `seq 1 1000` + echo 'void fn897() {}' + for i in `seq 1 1000` + echo 'void fn898() {}' + for i in `seq 1 1000` + echo 'void fn899() {}' + for i in `seq 1 1000` + echo 'void fn900() {}' + for i in `seq 1 1000` + echo 'void fn901() {}' + for i in `seq 1 1000` + echo 'void fn902() {}' + for i in `seq 1 1000` + echo 'void fn903() {}' + for i in `seq 1 1000` + echo 'void fn904() {}' + for i in `seq 1 1000` + echo 'void fn905() {}' + for i in `seq 1 1000` + echo 'void fn906() {}' + for i in `seq 1 1000` + echo 'void fn907() {}' + for i in `seq 1 1000` + echo 'void fn908() {}' + for i in `seq 1 1000` + echo 'void fn909() {}' + for i in `seq 1 1000` + echo 'void fn910() {}' + for i in `seq 1 1000` + echo 'void fn911() {}' + for i in `seq 1 1000` + echo 'void fn912() {}' + for i in `seq 1 1000` + echo 'void fn913() {}' + for i in `seq 1 1000` + echo 'void fn914() {}' + for i in `seq 1 1000` + echo 'void fn915() {}' + for i in `seq 1 1000` + echo 'void fn916() {}' + for i in `seq 1 1000` + echo 'void fn917() {}' + for i in `seq 1 1000` + echo 'void fn918() {}' + for i in `seq 1 1000` + echo 'void fn919() {}' + for i in `seq 1 1000` + echo 'void fn920() {}' + for i in `seq 1 1000` + echo 'void fn921() {}' + for i in `seq 1 1000` + echo 'void fn922() {}' + for i in `seq 1 1000` + echo 'void fn923() {}' + for i in `seq 1 1000` + echo 'void fn924() {}' + for i in `seq 1 1000` + echo 'void fn925() {}' + for i in `seq 1 1000` + echo 'void fn926() {}' + for i in `seq 1 1000` + echo 'void fn927() {}' + for i in `seq 1 1000` + echo 'void fn928() {}' + for i in `seq 1 1000` + echo 'void fn929() {}' + for i in `seq 1 1000` + echo 'void fn930() {}' + for i in `seq 1 1000` + echo 'void fn931() {}' + for i in `seq 1 1000` + echo 'void fn932() {}' + for i in `seq 1 1000` + echo 'void fn933() {}' + for i in `seq 1 1000` + echo 'void fn934() {}' + for i in `seq 1 1000` + echo 'void fn935() {}' + for i in `seq 1 1000` + echo 'void fn936() {}' + for i in `seq 1 1000` + echo 'void fn937() {}' + for i in `seq 1 1000` + echo 'void fn938() {}' + for i in `seq 1 1000` + echo 'void fn939() {}' + for i in `seq 1 1000` + echo 'void fn940() {}' + for i in `seq 1 1000` + echo 'void fn941() {}' + for i in `seq 1 1000` + echo 'void fn942() {}' + for i in `seq 1 1000` + echo 'void fn943() {}' + for i in `seq 1 1000` + echo 'void fn944() {}' + for i in `seq 1 1000` + echo 'void fn945() {}' + for i in `seq 1 1000` + echo 'void fn946() {}' + for i in `seq 1 1000` + echo 'void fn947() {}' + for i in `seq 1 1000` + echo 'void fn948() {}' + for i in `seq 1 1000` + echo 'void fn949() {}' + for i in `seq 1 1000` + echo 'void fn950() {}' + for i in `seq 1 1000` + echo 'void fn951() {}' + for i in `seq 1 1000` + echo 'void fn952() {}' + for i in `seq 1 1000` + echo 'void fn953() {}' + for i in `seq 1 1000` + echo 'void fn954() {}' + for i in `seq 1 1000` + echo 'void fn955() {}' + for i in `seq 1 1000` + echo 'void fn956() {}' + for i in `seq 1 1000` + echo 'void fn957() {}' + for i in `seq 1 1000` + echo 'void fn958() {}' + for i in `seq 1 1000` + echo 'void fn959() {}' + for i in `seq 1 1000` + echo 'void fn960() {}' + for i in `seq 1 1000` + echo 'void fn961() {}' + for i in `seq 1 1000` + echo 'void fn962() {}' + for i in `seq 1 1000` + echo 'void fn963() {}' + for i in `seq 1 1000` + echo 'void fn964() {}' + for i in `seq 1 1000` + echo 'void fn965() {}' + for i in `seq 1 1000` + echo 'void fn966() {}' + for i in `seq 1 1000` + echo 'void fn967() {}' + for i in `seq 1 1000` + echo 'void fn968() {}' + for i in `seq 1 1000` + echo 'void fn969() {}' + for i in `seq 1 1000` + echo 'void fn970() {}' + for i in `seq 1 1000` + echo 'void fn971() {}' + for i in `seq 1 1000` + echo 'void fn972() {}' + for i in `seq 1 1000` + echo 'void fn973() {}' + for i in `seq 1 1000` + echo 'void fn974() {}' + for i in `seq 1 1000` + echo 'void fn975() {}' + for i in `seq 1 1000` + echo 'void fn976() {}' + for i in `seq 1 1000` + echo 'void fn977() {}' + for i in `seq 1 1000` + echo 'void fn978() {}' + for i in `seq 1 1000` + echo 'void fn979() {}' + for i in `seq 1 1000` + echo 'void fn980() {}' + for i in `seq 1 1000` + echo 'void fn981() {}' + for i in `seq 1 1000` + echo 'void fn982() {}' + for i in `seq 1 1000` + echo 'void fn983() {}' + for i in `seq 1 1000` + echo 'void fn984() {}' + for i in `seq 1 1000` + echo 'void fn985() {}' + for i in `seq 1 1000` + echo 'void fn986() {}' + for i in `seq 1 1000` + echo 'void fn987() {}' + for i in `seq 1 1000` + echo 'void fn988() {}' + for i in `seq 1 1000` + echo 'void fn989() {}' + for i in `seq 1 1000` + echo 'void fn990() {}' + for i in `seq 1 1000` + echo 'void fn991() {}' + for i in `seq 1 1000` + echo 'void fn992() {}' + for i in `seq 1 1000` + echo 'void fn993() {}' + for i in `seq 1 1000` + echo 'void fn994() {}' + for i in `seq 1 1000` + echo 'void fn995() {}' + for i in `seq 1 1000` + echo 'void fn996() {}' + for i in `seq 1 1000` + echo 'void fn997() {}' + for i in `seq 1 1000` + echo 'void fn998() {}' + for i in `seq 1 1000` + echo 'void fn999() {}' + for i in `seq 1 1000` + echo 'void fn1000() {}' + cc -B. -o out/test/elf/x86_64/shuffle-sections-seed/exe1 out/test/elf/x86_64/shuffle-sections-seed/a.o out/test/elf/x86_64/shuffle-sections-seed/b.o + out/test/elf/x86_64/shuffle-sections-seed/exe1 + grep -q 'Hello world' + cc -B. -o out/test/elf/x86_64/shuffle-sections-seed/exe2 out/test/elf/x86_64/shuffle-sections-seed/a.o out/test/elf/x86_64/shuffle-sections-seed/b.o -Wl,-shuffle-sections=42 + out/test/elf/x86_64/shuffle-sections-seed/exe2 + grep -q 'Hello world' + cc -B. -o out/test/elf/x86_64/shuffle-sections-seed/exe3 out/test/elf/x86_64/shuffle-sections-seed/a.o out/test/elf/x86_64/shuffle-sections-seed/b.o -Wl,-shuffle-sections=42 + out/test/elf/x86_64/shuffle-sections-seed/exe3 + grep -q 'Hello world' + cc -B. -o out/test/elf/x86_64/shuffle-sections-seed/exe4 out/test/elf/x86_64/shuffle-sections-seed/a.o out/test/elf/x86_64/shuffle-sections-seed/b.o -Wl,-shuffle-sections=5 + out/test/elf/x86_64/shuffle-sections-seed/exe4 + grep -q 'Hello world' + diff out/test/elf/x86_64/shuffle-sections-seed/exe1 out/test/elf/x86_64/shuffle-sections-seed/exe2 + diff out/test/elf/x86_64/shuffle-sections-seed/exe2 out/test/elf/x86_64/shuffle-sections-seed/exe3 + diff out/test/elf/x86_64/shuffle-sections-seed/exe3 out/test/elf/x86_64/shuffle-sections-seed/exe4 + on_exit + echo OK OK + exit 0 Test time = 4.41 sec ---------------------------------------------------------- Test Passed. "x86_64-shuffle-sections-seed" end time: Nov 13 20:03 CET "x86_64-shuffle-sections-seed" time elapsed: 00:00:04 ---------------------------------------------------------- 262/322 Testing: x86_64-tlsdesc-import 262/322 Test: x86_64-tlsdesc-import Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-import.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tlsdesc-import" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-import.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-import.sh .sh ++ testname=tlsdesc-import ++ echo -n 'Testing tlsdesc-import ... ' Testing tlsdesc-import ... ++ t=out/test/elf/x86_64/tlsdesc-import ++ mkdir -p out/test/elf/x86_64/tlsdesc-import + supports_tlsdesc + '[' x86_64 = arm ']' + '[' -n -mtls-dialect=gnu2 ']' + cat + gcc -fPIC -c -o out/test/elf/x86_64/tlsdesc-import/a.o -xc - -mtls-dialect=gnu2 + cat + gcc -fPIC -shared -o out/test/elf/x86_64/tlsdesc-import/b.so -xc - -mtls-dialect=gnu2 + cc -B. -o out/test/elf/x86_64/tlsdesc-import/exe out/test/elf/x86_64/tlsdesc-import/a.o out/test/elf/x86_64/tlsdesc-import/b.so + out/test/elf/x86_64/tlsdesc-import/exe + grep -q '5 7' + on_exit + echo OK OK + exit 0 Test time = 0.11 sec ---------------------------------------------------------- Test Passed. "x86_64-tlsdesc-import" end time: Nov 13 20:03 CET "x86_64-tlsdesc-import" time elapsed: 00:00:00 ---------------------------------------------------------- 263/322 Testing: x86_64-tlsdesc-initial-exec 263/322 Test: x86_64-tlsdesc-initial-exec Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-initial-exec.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tlsdesc-initial-exec" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-initial-exec.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-initial-exec.sh .sh ++ testname=tlsdesc-initial-exec ++ echo -n 'Testing tlsdesc-initial-exec ... ' Testing tlsdesc-initial-exec ... ++ t=out/test/elf/x86_64/tlsdesc-initial-exec ++ mkdir -p out/test/elf/x86_64/tlsdesc-initial-exec + supports_tlsdesc + '[' x86_64 = arm ']' + '[' -n -mtls-dialect=gnu2 ']' + cat + gcc -fPIC -fPIC -c -o out/test/elf/x86_64/tlsdesc-initial-exec/a.o -xc - -mtls-dialect=gnu2 + cc -B. -shared -o out/test/elf/x86_64/tlsdesc-initial-exec/b.so out/test/elf/x86_64/tlsdesc-initial-exec/a.o + cat + gcc -fPIC -fPIC -c -o out/test/elf/x86_64/tlsdesc-initial-exec/c.o -xc - -mtls-dialect=gnu2 + cat + gcc -fPIC -fPIE -c -o out/test/elf/x86_64/tlsdesc-initial-exec/d.o -xc - -mtls-dialect=gnu2 + cc -B. -o out/test/elf/x86_64/tlsdesc-initial-exec/exe1 out/test/elf/x86_64/tlsdesc-initial-exec/c.o out/test/elf/x86_64/tlsdesc-initial-exec/d.o out/test/elf/x86_64/tlsdesc-initial-exec/b.so + out/test/elf/x86_64/tlsdesc-initial-exec/exe1 + grep -q '^5 5 5$' + readelf -Wr out/test/elf/x86_64/tlsdesc-initial-exec/exe1 + grep -Eq 'TLS.?DESC' out/test/elf/x86_64/tlsdesc-initial-exec/log1 + cc -B. -o out/test/elf/x86_64/tlsdesc-initial-exec/exe1 out/test/elf/x86_64/tlsdesc-initial-exec/c.o out/test/elf/x86_64/tlsdesc-initial-exec/d.o out/test/elf/x86_64/tlsdesc-initial-exec/b.so -Wl,--no-relax + out/test/elf/x86_64/tlsdesc-initial-exec/exe1 + grep -q '^5 5 5$' + readelf -Wr out/test/elf/x86_64/tlsdesc-initial-exec/exe1 + grep -Eq 'TLS.?DESC' out/test/elf/x86_64/tlsdesc-initial-exec/log2 + on_exit + echo OK OK + exit 0 Test time = 0.21 sec ---------------------------------------------------------- Test Passed. "x86_64-tlsdesc-initial-exec" end time: Nov 13 20:03 CET "x86_64-tlsdesc-initial-exec" time elapsed: 00:00:00 ---------------------------------------------------------- 264/322 Testing: x86_64-tlsdesc-local-dynamic 264/322 Test: x86_64-tlsdesc-local-dynamic Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-local-dynamic.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tlsdesc-local-dynamic" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-local-dynamic.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-local-dynamic.sh .sh ++ testname=tlsdesc-local-dynamic ++ echo -n 'Testing tlsdesc-local-dynamic ... ' Testing tlsdesc-local-dynamic ... ++ t=out/test/elf/x86_64/tlsdesc-local-dynamic ++ mkdir -p out/test/elf/x86_64/tlsdesc-local-dynamic + supports_tlsdesc + '[' x86_64 = arm ']' + '[' -n -mtls-dialect=gnu2 ']' + cat + gcc -fPIC -ftls-model=local-dynamic -c -o out/test/elf/x86_64/tlsdesc-local-dynamic/a.o -xc - -mtls-dialect=gnu2 + cat + gcc -fPIC -ftls-model=local-dynamic -c -o out/test/elf/x86_64/tlsdesc-local-dynamic/b.o -xc - -mtls-dialect=gnu2 + cc -B. -o out/test/elf/x86_64/tlsdesc-local-dynamic/exe1 out/test/elf/x86_64/tlsdesc-local-dynamic/a.o out/test/elf/x86_64/tlsdesc-local-dynamic/b.o + out/test/elf/x86_64/tlsdesc-local-dynamic/exe1 + grep -q '42 5' + cc -B. -o out/test/elf/x86_64/tlsdesc-local-dynamic/exe2 out/test/elf/x86_64/tlsdesc-local-dynamic/a.o out/test/elf/x86_64/tlsdesc-local-dynamic/b.o -Wl,--no-relax + out/test/elf/x86_64/tlsdesc-local-dynamic/exe2 + grep -q '42 5' + on_exit + echo OK OK + exit 0 Test time = 0.19 sec ---------------------------------------------------------- Test Passed. "x86_64-tlsdesc-local-dynamic" end time: Nov 13 20:03 CET "x86_64-tlsdesc-local-dynamic" time elapsed: 00:00:00 ---------------------------------------------------------- 265/322 Testing: x86_64-tlsdesc-static 265/322 Test: x86_64-tlsdesc-static Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-static.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tlsdesc-static" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-static.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc-static.sh .sh ++ testname=tlsdesc-static ++ echo -n 'Testing tlsdesc-static ... ' Testing tlsdesc-static ... ++ t=out/test/elf/x86_64/tlsdesc-static ++ mkdir -p out/test/elf/x86_64/tlsdesc-static + supports_tlsdesc + '[' x86_64 = arm ']' + '[' -n -mtls-dialect=gnu2 ']' + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + cat + gcc -fPIC -c -o out/test/elf/x86_64/tlsdesc-static/a.o -xc - -mtls-dialect=gnu2 + cat + gcc -fPIC -c -o out/test/elf/x86_64/tlsdesc-static/b.o -xc - -mtls-dialect=gnu2 + cc -B. -o out/test/elf/x86_64/tlsdesc-static/exe1 out/test/elf/x86_64/tlsdesc-static/a.o out/test/elf/x86_64/tlsdesc-static/b.o -static + out/test/elf/x86_64/tlsdesc-static/exe1 + grep -q 42 + cc -B. -o out/test/elf/x86_64/tlsdesc-static/exe2 out/test/elf/x86_64/tlsdesc-static/a.o out/test/elf/x86_64/tlsdesc-static/b.o -static -Wl,-no-relax + grep -q 42 + out/test/elf/x86_64/tlsdesc-static/exe2 + on_exit + echo OK OK + exit 0 Test time = 0.27 sec ---------------------------------------------------------- Test Passed. "x86_64-tlsdesc-static" end time: Nov 13 20:03 CET "x86_64-tlsdesc-static" time elapsed: 00:00:00 ---------------------------------------------------------- 268/322 Testing: x86_64-trace 268/322 Test: x86_64-trace Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/trace.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-trace" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/trace.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/trace.sh .sh ++ testname=trace ++ echo -n 'Testing trace ... ' Testing trace ... ++ t=out/test/elf/x86_64/trace ++ mkdir -p out/test/elf/x86_64/trace + cat + cc -c -o out/test/elf/x86_64/trace/a.o -xc - + cc -B. -o out/test/elf/x86_64/trace/exe out/test/elf/x86_64/trace/a.o -Wl,-trace + grep -q '/a\.o$' out/test/elf/x86_64/trace/log + on_exit + echo OK OK + exit 0 Test time = 0.17 sec ---------------------------------------------------------- Test Passed. "x86_64-trace" end time: Nov 13 20:03 CET "x86_64-trace" time elapsed: 00:00:00 ---------------------------------------------------------- 267/322 Testing: x86_64-trace-symbol 267/322 Test: x86_64-trace-symbol Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/trace-symbol.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-trace-symbol" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/trace-symbol.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/trace-symbol.sh .sh ++ testname=trace-symbol ++ echo -n 'Testing trace-symbol ... ' Testing trace-symbol ... ++ t=out/test/elf/x86_64/trace-symbol ++ mkdir -p out/test/elf/x86_64/trace-symbol + cat + cc -c -o out/test/elf/x86_64/trace-symbol/a.o -xc - + cat + cc -c -o out/test/elf/x86_64/trace-symbol/b.o -xc - + cat + cc -shared -o out/test/elf/x86_64/trace-symbol/c.so -xc - + cc -B. -o out/test/elf/x86_64/trace-symbol/exe out/test/elf/x86_64/trace-symbol/a.o out/test/elf/x86_64/trace-symbol/b.o out/test/elf/x86_64/trace-symbol/c.so -Wl,-y,foo -Wl,--trace-symbol=baz + grep -q 'trace-symbol: .*/a.o: reference to foo' out/test/elf/x86_64/trace-symbol/log + grep -q 'trace-symbol: .*/b.o: definition of foo' out/test/elf/x86_64/trace-symbol/log + grep -q 'trace-symbol: .*/c.so: definition of baz' out/test/elf/x86_64/trace-symbol/log + on_exit + echo OK OK + exit 0 Test time = 0.33 sec ---------------------------------------------------------- Test Passed. "x86_64-trace-symbol" end time: Nov 13 20:03 CET "x86_64-trace-symbol" time elapsed: 00:00:00 ---------------------------------------------------------- 273/322 Testing: x86_64-version-script-search-paths 273/322 Test: x86_64-version-script-search-paths Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script-search-paths.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script-search-paths" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script-search-paths.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script-search-paths.sh .sh ++ testname=version-script-search-paths ++ echo -n 'Testing version-script-search-paths ... ' Testing version-script-search-paths ... ++ t=out/test/elf/x86_64/version-script-search-paths ++ mkdir -p out/test/elf/x86_64/version-script-search-paths + mkdir -p out/test/elf/x86_64/version-script-search-paths/foo/bar + echo 'ver_x { global: *; };' + cat + cc -B. -shared -o out/test/elf/x86_64/version-script-search-paths/c.so -Wl,-Lout/test/elf/x86_64/version-script-search-paths/foo/bar -Wl,-version-script,a.ver out/test/elf/x86_64/version-script-search-paths/b.s + readelf --version-info out/test/elf/x86_64/version-script-search-paths/c.so + grep -Fq 'Rev: 1 Flags: none Index: 2 Cnt: 1 Name: ver_x' out/test/elf/x86_64/version-script-search-paths/log + on_exit + echo OK OK + exit 0 Test time = 0.20 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script-search-paths" end time: Nov 13 20:03 CET "x86_64-version-script-search-paths" time elapsed: 00:00:00 ---------------------------------------------------------- 272/322 Testing: x86_64-verbose 272/322 Test: x86_64-verbose Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/verbose.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-verbose" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/verbose.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/verbose.sh .sh ++ testname=verbose ++ echo -n 'Testing verbose ... ' Testing verbose ... ++ t=out/test/elf/x86_64/verbose ++ mkdir -p out/test/elf/x86_64/verbose + cat + cc -c -xc -o out/test/elf/x86_64/verbose/a.o - + cc -B. -Wl,--verbose -o out/test/elf/x86_64/verbose/exe out/test/elf/x86_64/verbose/a.o + on_exit + echo OK OK + exit 0 Test time = 0.23 sec ---------------------------------------------------------- Test Passed. "x86_64-verbose" end time: Nov 13 20:03 CET "x86_64-verbose" time elapsed: 00:00:00 ---------------------------------------------------------- 274/322 Testing: x86_64-version-script 274/322 Test: x86_64-version-script Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script.sh .sh ++ testname=version-script ++ echo -n 'Testing version-script ... ' Testing version-script ... ++ t=out/test/elf/x86_64/version-script ++ mkdir -p out/test/elf/x86_64/version-script + echo 'ver_x { global: *; };' + cat + cc -B. -shared -o out/test/elf/x86_64/version-script/c.so -Wl,-version-script,out/test/elf/x86_64/version-script/a.ver out/test/elf/x86_64/version-script/b.s + readelf --version-info out/test/elf/x86_64/version-script/c.so + grep -Fq 'Rev: 1 Flags: none Index: 2 Cnt: 1 Name: ver_x' out/test/elf/x86_64/version-script/log + on_exit + echo OK OK + exit 0 Test time = 0.21 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script" end time: Nov 13 20:03 CET "x86_64-version-script" time elapsed: 00:00:00 ---------------------------------------------------------- 270/322 Testing: x86_64-undefined2 270/322 Test: x86_64-undefined2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/undefined2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-undefined2" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/undefined2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/undefined2.sh .sh ++ testname=undefined2 ++ echo -n 'Testing undefined2 ... ' Testing undefined2 ... ++ t=out/test/elf/x86_64/undefined2 ++ mkdir -p out/test/elf/x86_64/undefined2 + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + cat + cc -o out/test/elf/x86_64/undefined2/a.o -c -x assembler - + cat + cc -o out/test/elf/x86_64/undefined2/b.o -c -x assembler - + cat + cc -o out/test/elf/x86_64/undefined2/c.o -c -x assembler - + rm -f out/test/elf/x86_64/undefined2/d.a + ar cr out/test/elf/x86_64/undefined2/d.a out/test/elf/x86_64/undefined2/b.o out/test/elf/x86_64/undefined2/c.o + ./mold -static -o out/test/elf/x86_64/undefined2/exe out/test/elf/x86_64/undefined2/a.o out/test/elf/x86_64/undefined2/d.a -undefined foo + readelf --symbols out/test/elf/x86_64/undefined2/exe + grep -q foo out/test/elf/x86_64/undefined2/log + grep -q ndefined out/test/elf/x86_64/undefined2/log + on_exit + echo OK OK + exit 0 Test time = 0.42 sec ---------------------------------------------------------- Test Passed. "x86_64-undefined2" end time: Nov 13 20:03 CET "x86_64-undefined2" time elapsed: 00:00:00 ---------------------------------------------------------- 269/322 Testing: x86_64-undefined 269/322 Test: x86_64-undefined Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/undefined.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-undefined" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/undefined.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/undefined.sh .sh ++ testname=undefined ++ echo -n 'Testing undefined ... ' Testing undefined ... ++ t=out/test/elf/x86_64/undefined ++ mkdir -p out/test/elf/x86_64/undefined + test_cflags -static + echo 'int main() {}' + cc -static -o /dev/null -xc - + cat + cc -o out/test/elf/x86_64/undefined/a.o -c -x assembler - + cat + cc -o out/test/elf/x86_64/undefined/b.o -c -x assembler - + cat + cc -o out/test/elf/x86_64/undefined/c.o -c -x assembler - + rm -f out/test/elf/x86_64/undefined/d.a + ar cr out/test/elf/x86_64/undefined/d.a out/test/elf/x86_64/undefined/b.o out/test/elf/x86_64/undefined/c.o + ./mold -static -o out/test/elf/x86_64/undefined/exe out/test/elf/x86_64/undefined/a.o out/test/elf/x86_64/undefined/d.a + readelf --symbols out/test/elf/x86_64/undefined/exe + grep -q foo out/test/elf/x86_64/undefined/log + grep -q bar out/test/elf/x86_64/undefined/log + ./mold -static -o out/test/elf/x86_64/undefined/exe out/test/elf/x86_64/undefined/a.o out/test/elf/x86_64/undefined/d.a -u foo + readelf --symbols out/test/elf/x86_64/undefined/exe + grep -q foo out/test/elf/x86_64/undefined/log + grep -q bar out/test/elf/x86_64/undefined/log + ./mold -static -o out/test/elf/x86_64/undefined/exe out/test/elf/x86_64/undefined/a.o out/test/elf/x86_64/undefined/d.a -u foo --undefined=bar + readelf --symbols out/test/elf/x86_64/undefined/exe + grep -q foo out/test/elf/x86_64/undefined/log + grep -q bar out/test/elf/x86_64/undefined/log + on_exit + echo OK OK + exit 0 Test time = 0.54 sec ---------------------------------------------------------- Test Passed. "x86_64-undefined" end time: Nov 13 20:03 CET "x86_64-undefined" time elapsed: 00:00:00 ---------------------------------------------------------- 275/322 Testing: x86_64-version-script10 275/322 Test: x86_64-version-script10 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script10.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script10" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script10.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script10.sh .sh ++ testname=version-script10 ++ echo -n 'Testing version-script10 ... ' Testing version-script10 ... ++ t=out/test/elf/x86_64/version-script10 ++ mkdir -p out/test/elf/x86_64/version-script10 + echo 'VER1 { foo[12]; }; VER2 {};' + cat + cc -B. -shared -o out/test/elf/x86_64/version-script10/c.so -Wl,-version-script,out/test/elf/x86_64/version-script10/a.ver out/test/elf/x86_64/version-script10/b.s + readelf --dyn-syms out/test/elf/x86_64/version-script10/c.so + grep -q ' foo1@@VER1$' out/test/elf/x86_64/version-script10/log + grep -q ' foo2@@VER1$' out/test/elf/x86_64/version-script10/log + grep -q ' foo3@@VER1$' out/test/elf/x86_64/version-script10/log + on_exit + echo OK OK + exit 0 Test time = 0.32 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script10" end time: Nov 13 20:03 CET "x86_64-version-script10" time elapsed: 00:00:00 ---------------------------------------------------------- 266/322 Testing: x86_64-tlsdesc 266/322 Test: x86_64-tlsdesc Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-tlsdesc" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/tlsdesc.sh .sh ++ testname=tlsdesc ++ echo -n 'Testing tlsdesc ... ' Testing tlsdesc ... ++ t=out/test/elf/x86_64/tlsdesc ++ mkdir -p out/test/elf/x86_64/tlsdesc + supports_tlsdesc + '[' x86_64 = arm ']' + '[' -n -mtls-dialect=gnu2 ']' + cat + gcc -fPIC -c -o out/test/elf/x86_64/tlsdesc/a.o -xc - -mtls-dialect=gnu2 + cat + gcc -fPIC -c -o out/test/elf/x86_64/tlsdesc/b.o -xc - -mtls-dialect=gnu2 + cc -B. -o out/test/elf/x86_64/tlsdesc/exe1 out/test/elf/x86_64/tlsdesc/a.o out/test/elf/x86_64/tlsdesc/b.o + out/test/elf/x86_64/tlsdesc/exe1 + grep -q '42 3 5' + cc -B. -o out/test/elf/x86_64/tlsdesc/exe2 out/test/elf/x86_64/tlsdesc/a.o out/test/elf/x86_64/tlsdesc/b.o -Wl,-no-relax + out/test/elf/x86_64/tlsdesc/exe2 + grep -q '42 3 5' + cc -B. -shared -o out/test/elf/x86_64/tlsdesc/c.so out/test/elf/x86_64/tlsdesc/a.o + cc -B. -o out/test/elf/x86_64/tlsdesc/exe3 out/test/elf/x86_64/tlsdesc/b.o out/test/elf/x86_64/tlsdesc/c.so + out/test/elf/x86_64/tlsdesc/exe3 + grep -q '42 3 5' + cc -B. -shared -o out/test/elf/x86_64/tlsdesc/c.so out/test/elf/x86_64/tlsdesc/a.o -Wl,-no-relax + cc -B. -o out/test/elf/x86_64/tlsdesc/exe4 out/test/elf/x86_64/tlsdesc/b.o out/test/elf/x86_64/tlsdesc/c.so -Wl,-no-relax + out/test/elf/x86_64/tlsdesc/exe4 + grep -q '42 3 5' + on_exit + echo OK OK + exit 0 Test time = 0.72 sec ---------------------------------------------------------- Test Passed. "x86_64-tlsdesc" end time: Nov 13 20:03 CET "x86_64-tlsdesc" time elapsed: 00:00:00 ---------------------------------------------------------- 278/322 Testing: x86_64-version-script13 278/322 Test: x86_64-version-script13 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script13.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script13" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script13.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script13.sh .sh ++ testname=version-script13 ++ echo -n 'Testing version-script13 ... ' Testing version-script13 ... ++ t=out/test/elf/x86_64/version-script13 ++ mkdir -p out/test/elf/x86_64/version-script13 + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script13/b.o -xc - + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script13/a.ver -o out/test/elf/x86_64/version-script13/c.so out/test/elf/x86_64/version-script13/b.o + readelf --dyn-syms out/test/elf/x86_64/version-script13/c.so + grep -q ' foobar' out/test/elf/x86_64/version-script13/log + grep -q ' foo$' out/test/elf/x86_64/version-script13/log + on_exit + echo OK OK + exit 0 Test time = 0.52 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script13" end time: Nov 13 20:03 CET "x86_64-version-script13" time elapsed: 00:00:00 ---------------------------------------------------------- 276/322 Testing: x86_64-version-script11 276/322 Test: x86_64-version-script11 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script11.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script11" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script11.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script11.sh .sh ++ testname=version-script11 ++ echo -n 'Testing version-script11 ... ' Testing version-script11 ... ++ t=out/test/elf/x86_64/version-script11 ++ mkdir -p out/test/elf/x86_64/version-script11 + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script11/b.o -xc - + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script11/a.ver -o out/test/elf/x86_64/version-script11/c.so out/test/elf/x86_64/version-script11/b.o + readelf --dyn-syms out/test/elf/x86_64/version-script11/c.so + grep -q foo@@VER_X1 out/test/elf/x86_64/version-script11/log + grep -q ' bar' out/test/elf/x86_64/version-script11/log + grep -q ' baz' out/test/elf/x86_64/version-script11/log + on_exit + echo OK OK + exit 0 Test time = 0.60 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script11" end time: Nov 13 20:03 CET "x86_64-version-script11" time elapsed: 00:00:00 ---------------------------------------------------------- 277/322 Testing: x86_64-version-script12 277/322 Test: x86_64-version-script12 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script12.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script12" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script12.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script12.sh .sh ++ testname=version-script12 ++ echo -n 'Testing version-script12 ... ' Testing version-script12 ... ++ t=out/test/elf/x86_64/version-script12 ++ mkdir -p out/test/elf/x86_64/version-script12 + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script12/b.o -xc - + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script12/a.ver -o out/test/elf/x86_64/version-script12/c.so out/test/elf/x86_64/version-script12/b.o + readelf --dyn-syms out/test/elf/x86_64/version-script12/c.so + grep -q ' xyz' out/test/elf/x86_64/version-script12/log + grep -q ' foo_bar' out/test/elf/x86_64/version-script12/log + grep -q ' foo$' out/test/elf/x86_64/version-script12/log + on_exit + echo OK OK + exit 0 Test time = 0.64 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script12" end time: Nov 13 20:03 CET "x86_64-version-script12" time elapsed: 00:00:00 ---------------------------------------------------------- 281/322 Testing: x86_64-version-script16 281/322 Test: x86_64-version-script16 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script16.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script16" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script16.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script16.sh .sh ++ testname=version-script16 ++ echo -n 'Testing version-script16 ... ' Testing version-script16 ... ++ t=out/test/elf/x86_64/version-script16 ++ mkdir -p out/test/elf/x86_64/version-script16 + cat + + cat cc -fPIC -c -o out/test/elf/x86_64/version-script16/b.o -xc - + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script16/a.ver -o out/test/elf/x86_64/version-script16/c.so out/test/elf/x86_64/version-script16/b.o + readelf --dyn-syms out/test/elf/x86_64/version-script16/c.so + grep -q foobar + on_exit + echo OK OK + exit 0 Test time = 0.60 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script16" end time: Nov 13 20:03 CET "x86_64-version-script16" time elapsed: 00:00:00 ---------------------------------------------------------- 279/322 Testing: x86_64-version-script14 279/322 Test: x86_64-version-script14 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script14.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script14" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script14.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script14.sh .sh ++ testname=version-script14 ++ echo -n 'Testing version-script14 ... ' Testing version-script14 ... ++ t=out/test/elf/x86_64/version-script14 ++ mkdir -p out/test/elf/x86_64/version-script14 + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script14/b.o -xc - + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script14/a.ver -o out/test/elf/x86_64/version-script14/c.so out/test/elf/x86_64/version-script14/b.o + readelf --dyn-syms out/test/elf/x86_64/version-script14/c.so + grep -q ' xyz' out/test/elf/x86_64/version-script14/log + grep -q ' foobarzx' out/test/elf/x86_64/version-script14/log + grep -q ' foobarcx' out/test/elf/x86_64/version-script14/log + grep -q ' foo123bar456bx' out/test/elf/x86_64/version-script14/log + grep -q ' foo123bar456c' out/test/elf/x86_64/version-script14/log + grep -q ' foo123bar456x' out/test/elf/x86_64/version-script14/log + on_exit + echo OK OK + exit 0 Test time = 0.71 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script14" end time: Nov 13 20:03 CET "x86_64-version-script14" time elapsed: 00:00:00 ---------------------------------------------------------- 280/322 Testing: x86_64-version-script15 280/322 Test: x86_64-version-script15 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script15.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script15" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script15.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script15.sh .sh ++ testname=version-script15 ++ echo -n 'Testing version-script15 ... ' Testing version-script15 ... ++ t=out/test/elf/x86_64/version-script15 ++ mkdir -p out/test/elf/x86_64/version-script15 + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script15/b.o -xc - + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script15/a.ver -o out/test/elf/x86_64/version-script15/c.so out/test/elf/x86_64/version-script15/b.o + readelf --dyn-syms out/test/elf/x86_64/version-script15/c.so + grep -q ' azZ' out/test/elf/x86_64/version-script15/log + grep -q ' czZ' out/test/elf/x86_64/version-script15/log + grep -q ' azC' out/test/elf/x86_64/version-script15/log + grep -q ' aaZ' out/test/elf/x86_64/version-script15/log + on_exit + echo OK OK + exit 0 Test time = 0.71 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script15" end time: Nov 13 20:03 CET "x86_64-version-script15" time elapsed: 00:00:00 ---------------------------------------------------------- 283/322 Testing: x86_64-version-script18 283/322 Test: x86_64-version-script18 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script18.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script18" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script18.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script18.sh .sh ++ testname=version-script18 ++ echo -n 'Testing version-script18 ... ' Testing version-script18 ... ++ t=out/test/elf/x86_64/version-script18 ++ mkdir -p out/test/elf/x86_64/version-script18 + cat + cat + cc -fPIC -c -o out/test/elf/x86_64/version-script18/b.o -xc++ - + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script18/a.ver -o out/test/elf/x86_64/version-script18/c.so out/test/elf/x86_64/version-script18/b.o + grep libalpha + grep -q Bar + readelf --wide --dyn-syms out/test/elf/x86_64/version-script18/c.so + on_exit + echo OK OK + exit 0 Test time = 0.69 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script18" end time: Nov 13 20:03 CET "x86_64-version-script18" time elapsed: 00:00:00 ---------------------------------------------------------- 284/322 Testing: x86_64-version-script19 284/322 Test: x86_64-version-script19 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script19.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script19" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script19.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script19.sh .sh ++ testname=version-script19 ++ echo -n 'Testing version-script19 ... ' Testing version-script19 ... ++ t=out/test/elf/x86_64/version-script19 ++ mkdir -p out/test/elf/x86_64/version-script19 + cat + cat + cc -fPIC -c -o out/test/elf/x86_64/version-script19/b.o -xc++ - + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script19/a.ver -o out/test/elf/x86_64/version-script19/c.so out/test/elf/x86_64/version-script19/b.o + readelf -W --dyn-syms out/test/elf/x86_64/version-script19/c.so + grep -Eq foobar out/test/elf/x86_64/version-script19/log + grep -Eq 'GLOBAL.*baz' out/test/elf/x86_64/version-script19/log + on_exit + echo OK OK + exit 0 Test time = 0.74 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script19" end time: Nov 13 20:03 CET "x86_64-version-script19" time elapsed: 00:00:00 ---------------------------------------------------------- 271/322 Testing: x86_64-unresolved-symbols 271/322 Test: x86_64-unresolved-symbols Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/unresolved-symbols.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-unresolved-symbols" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/unresolved-symbols.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/unresolved-symbols.sh .sh ++ testname=unresolved-symbols ++ echo -n 'Testing unresolved-symbols ... ' Testing unresolved-symbols ... ++ t=out/test/elf/x86_64/unresolved-symbols ++ mkdir -p out/test/elf/x86_64/unresolved-symbols + cat + cc -c -o out/test/elf/x86_64/unresolved-symbols/a.o -xc - + cc -B. -o out/test/elf/x86_64/unresolved-symbols/exe out/test/elf/x86_64/unresolved-symbols/a.o + grep -q 'undefined.*foo' + cc -B. -o out/test/elf/x86_64/unresolved-symbols/exe out/test/elf/x86_64/unresolved-symbols/a.o -Wl,-unresolved-symbols=report-all + grep -q 'undefined.*foo' + cc -B. -o out/test/elf/x86_64/unresolved-symbols/exe out/test/elf/x86_64/unresolved-symbols/a.o -Wl,-unresolved-symbols=ignore-all + readelf --dyn-syms out/test/elf/x86_64/unresolved-symbols/exe + grep -w foo + cc -B. -o out/test/elf/x86_64/unresolved-symbols/exe out/test/elf/x86_64/unresolved-symbols/a.o -Wl,-unresolved-symbols=report-all -Wl,--warn-unresolved-symbols + grep -q 'undefined.*foo' + cc -B. -o out/test/elf/x86_64/unresolved-symbols/exe out/test/elf/x86_64/unresolved-symbols/a.o -Wl,-unresolved-symbols=ignore-in-object-files + grep -q 'undefined.*foo' + cc -B. -o out/test/elf/x86_64/unresolved-symbols/exe out/test/elf/x86_64/unresolved-symbols/a.o -Wl,-unresolved-symbols=ignore-in-shared-libs + grep -q 'undefined.*foo' + on_exit + echo OK OK + exit 0 Test time = 1.28 sec ---------------------------------------------------------- Test Passed. "x86_64-unresolved-symbols" end time: Nov 13 20:03 CET "x86_64-unresolved-symbols" time elapsed: 00:00:01 ---------------------------------------------------------- 287/322 Testing: x86_64-version-script4 287/322 Test: x86_64-version-script4 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script4.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script4" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script4.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script4.sh .sh ++ testname=version-script4 ++ echo -n 'Testing version-script4 ... ' Testing version-script4 ... ++ t=out/test/elf/x86_64/version-script4 ++ mkdir -p out/test/elf/x86_64/version-script4 + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script4/b.o -xc++ - + cc -B. -shared -o out/test/elf/x86_64/version-script4/c.so -Wl,-version-script,out/test/elf/x86_64/version-script4/a.ver out/test/elf/x86_64/version-script4/b.o + readelf --dyn-syms out/test/elf/x86_64/version-script4/c.so + grep -Fq _ZN3foo3barE out/test/elf/x86_64/version-script4/log + grep -Fq ' bar' out/test/elf/x86_64/version-script4/log + on_exit + echo OK OK + exit 0 Test time = 0.82 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script4" end time: Nov 13 20:03 CET "x86_64-version-script4" time elapsed: 00:00:00 ---------------------------------------------------------- 288/322 Testing: x86_64-version-script5 288/322 Test: x86_64-version-script5 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script5.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script5" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script5.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script5.sh .sh ++ testname=version-script5 ++ echo -n 'Testing version-script5 ... ' Testing version-script5 ... ++ t=out/test/elf/x86_64/version-script5 ++ mkdir -p out/test/elf/x86_64/version-script5 + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script5/b.o -xc - + cc -B. -shared -o out/test/elf/x86_64/version-script5/c.so -Wl,-version-script,out/test/elf/x86_64/version-script5/a.ver out/test/elf/x86_64/version-script5/b.o + readelf --dyn-syms out/test/elf/x86_64/version-script5/c.so + grep -Fq foo out/test/elf/x86_64/version-script5/log + grep -Fq ' main' out/test/elf/x86_64/version-script5/log + on_exit + echo OK OK + exit 0 Test time = 0.85 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script5" end time: Nov 13 20:03 CET "x86_64-version-script5" time elapsed: 00:00:00 ---------------------------------------------------------- 292/322 Testing: x86_64-version-script9 292/322 Test: x86_64-version-script9 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script9.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script9" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script9.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script9.sh .sh ++ testname=version-script9 ++ echo -n 'Testing version-script9 ... ' Testing version-script9 ... ++ t=out/test/elf/x86_64/version-script9 ++ mkdir -p out/test/elf/x86_64/version-script9 + echo 'VER1 { extern "C++" {}; foo; }; VER2 {};' + cat + cc -B. -shared -o out/test/elf/x86_64/version-script9/c.so -Wl,-version-script,out/test/elf/x86_64/version-script9/a.ver out/test/elf/x86_64/version-script9/b.s + readelf --dyn-syms out/test/elf/x86_64/version-script9/c.so + grep -q ' foo@@VER1$' out/test/elf/x86_64/version-script9/log + on_exit + echo OK OK + exit 0 Test time = 0.53 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script9" end time: Nov 13 20:03 CET "x86_64-version-script9" time elapsed: 00:00:00 ---------------------------------------------------------- 294/322 Testing: x86_64-versioned-undef 294/322 Test: x86_64-versioned-undef Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/versioned-undef.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-versioned-undef" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/versioned-undef.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/versioned-undef.sh .sh ++ testname=versioned-undef ++ echo -n 'Testing versioned-undef ... ' Testing versioned-undef ... ++ t=out/test/elf/x86_64/versioned-undef ++ mkdir -p out/test/elf/x86_64/versioned-undef + is_musl + ldd --help + grep -q musl + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.53 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-versioned-undef" end time: Nov 13 20:03 CET "x86_64-versioned-undef" time elapsed: 00:00:00 ---------------------------------------------------------- 285/322 Testing: x86_64-version-script2 285/322 Test: x86_64-version-script2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script2" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script2.sh .sh ++ testname=version-script2 ++ echo -n 'Testing version-script2 ... ' Testing version-script2 ... ++ t=out/test/elf/x86_64/version-script2 ++ mkdir -p out/test/elf/x86_64/version-script2 + cat + cat + cc -B. -xc -shared -o out/test/elf/x86_64/version-script2/b.so -Wl,-version-script,out/test/elf/x86_64/version-script2/a.ver - + cat + cc -xc -c -o out/test/elf/x86_64/version-script2/c.o - + cc -B. -o out/test/elf/x86_64/version-script2/exe out/test/elf/x86_64/version-script2/c.o out/test/elf/x86_64/version-script2/b.so + out/test/elf/x86_64/version-script2/exe + readelf --dyn-syms out/test/elf/x86_64/version-script2/exe + grep -Fq foo@ver1 out/test/elf/x86_64/version-script2/log + grep -Fq bar@ver2 out/test/elf/x86_64/version-script2/log + grep -Fq baz@ver3 out/test/elf/x86_64/version-script2/log + on_exit + echo OK OK + exit 0 Test time = 1.12 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script2" end time: Nov 13 20:03 CET "x86_64-version-script2" time elapsed: 00:00:01 ---------------------------------------------------------- 290/322 Testing: x86_64-version-script7 290/322 Test: x86_64-version-script7 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script7.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script7" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script7.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script7.sh .sh ++ testname=version-script7 ++ echo -n 'Testing version-script7 ... ' Testing version-script7 ... ++ t=out/test/elf/x86_64/version-script7 ++ mkdir -p out/test/elf/x86_64/version-script7 + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script7/b.o -xc - + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script7/a.ver -o out/test/elf/x86_64/version-script7/c.so out/test/elf/x86_64/version-script7/b.o + readelf --dyn-syms out/test/elf/x86_64/version-script7/c.so + grep -q 'foo$' out/test/elf/x86_64/version-script7/log + grep -q bar@@VER_X1 out/test/elf/x86_64/version-script7/log + on_exit + echo OK OK + exit 0 Test time = 0.79 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script7" end time: Nov 13 20:03 CET "x86_64-version-script7" time elapsed: 00:00:00 ---------------------------------------------------------- 286/322 Testing: x86_64-version-script3 286/322 Test: x86_64-version-script3 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script3.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script3" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script3.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script3.sh .sh ++ testname=version-script3 ++ echo -n 'Testing version-script3 ... ' Testing version-script3 ... ++ t=out/test/elf/x86_64/version-script3 ++ mkdir -p out/test/elf/x86_64/version-script3 + cat + cat + cc -B. -xc -shared -o out/test/elf/x86_64/version-script3/b.so -Wl,-version-script,out/test/elf/x86_64/version-script3/a.ver - + cat + cc -xc -c -o out/test/elf/x86_64/version-script3/c.o - + cc -B. -o out/test/elf/x86_64/version-script3/exe out/test/elf/x86_64/version-script3/c.o out/test/elf/x86_64/version-script3/b.so + out/test/elf/x86_64/version-script3/exe + readelf --dyn-syms out/test/elf/x86_64/version-script3/exe + grep -Fq foo@ver1 out/test/elf/x86_64/version-script3/log + grep -Fq bar@ver2 out/test/elf/x86_64/version-script3/log + grep -Fq baz@ver2 out/test/elf/x86_64/version-script3/log + on_exit + echo OK OK + exit 0 Test time = 1.19 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script3" end time: Nov 13 20:03 CET "x86_64-version-script3" time elapsed: 00:00:01 ---------------------------------------------------------- 298/322 Testing: x86_64-warn-symbol-type 298/322 Test: x86_64-warn-symbol-type Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-symbol-type.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-warn-symbol-type" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-symbol-type.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-symbol-type.sh .sh ++ testname=warn-symbol-type ++ echo -n 'Testing warn-symbol-type ... ' Testing warn-symbol-type ... ++ t=out/test/elf/x86_64/warn-symbol-type ++ mkdir -p out/test/elf/x86_64/warn-symbol-type + cat + cc -c -fPIC -xc -o out/test/elf/x86_64/warn-symbol-type/a.o - + cc -B. -shared -o out/test/elf/x86_64/warn-symbol-type/a.so out/test/elf/x86_64/warn-symbol-type/a.o + grep -q 'warning: symbol type mismatch: times' out/test/elf/x86_64/warn-symbol-type/log + on_exit + echo OK OK + exit 0 Test time = 0.70 sec ---------------------------------------------------------- Test Passed. "x86_64-warn-symbol-type" end time: Nov 13 20:03 CET "x86_64-warn-symbol-type" time elapsed: 00:00:00 ---------------------------------------------------------- 289/322 Testing: x86_64-version-script6 289/322 Test: x86_64-version-script6 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script6.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script6" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script6.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script6.sh .sh ++ testname=version-script6 ++ echo -n 'Testing version-script6 ... ' Testing version-script6 ... ++ t=out/test/elf/x86_64/version-script6 ++ mkdir -p out/test/elf/x86_64/version-script6 + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script6/b.o -xc - + cat + cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script6/a.ver -o out/test/elf/x86_64/version-script6/c.so out/test/elf/x86_64/version-script6/b.o + cat + cat + c++ -fPIC -c -o out/test/elf/x86_64/version-script6/e.o -xc - + cc -B. -shared -Wl,-version-script,out/test/elf/x86_64/version-script6/d.ver -o out/test/elf/x86_64/version-script6/f.so out/test/elf/x86_64/version-script6/e.o out/test/elf/x86_64/version-script6/c.so -Wl,--undefined-version + readelf --dyn-syms out/test/elf/x86_64/version-script6/f.so + grep -q foo@VER_X1 out/test/elf/x86_64/version-script6/log + grep -q bar@VER_X2 out/test/elf/x86_64/version-script6/log + grep -q baz@@VER_Y2 out/test/elf/x86_64/version-script6/log + on_exit + echo OK OK + exit 0 Test time = 1.23 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script6" end time: Nov 13 20:03 CET "x86_64-version-script6" time elapsed: 00:00:01 ---------------------------------------------------------- 297/322 Testing: x86_64-warn-once 297/322 Test: x86_64-warn-once Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-once.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-warn-once" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-once.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-once.sh .sh ++ testname=warn-once ++ echo -n 'Testing warn-once ... ' Testing warn-once ... ++ t=out/test/elf/x86_64/warn-once ++ mkdir -p out/test/elf/x86_64/warn-once + cat + cc -c -fPIC -xc -o out/test/elf/x86_64/warn-once/a.o - + cat + cc -c -fPIC -xc -o out/test/elf/x86_64/warn-once/b.o - + cc -B. -o out/test/elf/x86_64/warn-once/exe out/test/elf/x86_64/warn-once/a.o out/test/elf/x86_64/warn-once/b.o -Wl,--warn-unresolved-symbols,--warn-once ++ wc -l ++ grep 'undefined symbol:.* foo$' out/test/elf/x86_64/warn-once/log + '[' 1 = 1 ']' + on_exit + echo OK OK + exit 0 Test time = 0.98 sec ---------------------------------------------------------- Test Passed. "x86_64-warn-once" end time: Nov 13 20:03 CET "x86_64-warn-once" time elapsed: 00:00:00 ---------------------------------------------------------- 301/322 Testing: x86_64-weak-export-exe 301/322 Test: x86_64-weak-export-exe Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-export-exe.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-weak-export-exe" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-export-exe.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-export-exe.sh .sh ++ testname=weak-export-exe ++ echo -n 'Testing weak-export-exe ... ' Testing weak-export-exe ... ++ t=out/test/elf/x86_64/weak-export-exe ++ mkdir -p out/test/elf/x86_64/weak-export-exe + + cc -fPIC -c -o out/test/elf/x86_64/weak-export-exe/a.o -xc cat- + cc -B. -o out/test/elf/x86_64/weak-export-exe/exe out/test/elf/x86_64/weak-export-exe/a.o + readelf --dyn-syms out/test/elf/x86_64/weak-export-exe/exe + grep -q 'WEAK DEFAULT UND foo' + out/test/elf/x86_64/weak-export-exe/exe + grep -q '^3$' + on_exit + echo OK OK + exit 0 Test time = 1.00 sec ---------------------------------------------------------- Test Passed. "x86_64-weak-export-exe" end time: Nov 13 20:03 CET "x86_64-weak-export-exe" time elapsed: 00:00:01 ---------------------------------------------------------- 299/322 Testing: x86_64-warn-unresolved-symbols 299/322 Test: x86_64-warn-unresolved-symbols Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-unresolved-symbols.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-warn-unresolved-symbols" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-unresolved-symbols.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-unresolved-symbols.sh .sh ++ testname=warn-unresolved-symbols ++ echo -n 'Testing warn-unresolved-symbols ... ' Testing warn-unresolved-symbols ... ++ t=out/test/elf/x86_64/warn-unresolved-symbols ++ mkdir -p out/test/elf/x86_64/warn-unresolved-symbols + cat + cc -c -o out/test/elf/x86_64/warn-unresolved-symbols/a.o -xc - + cc -B. -o out/test/elf/x86_64/warn-unresolved-symbols/exe out/test/elf/x86_64/warn-unresolved-symbols/a.o + grep -q 'undefined symbol:.*foo' + cc -B. -o out/test/elf/x86_64/warn-unresolved-symbols/exe out/test/elf/x86_64/warn-unresolved-symbols/a.o -Wl,-warn-unresolved-symbols + grep -q 'undefined symbol:.*foo' + cc -B. -o out/test/elf/x86_64/warn-unresolved-symbols/exe out/test/elf/x86_64/warn-unresolved-symbols/a.o -Wl,-warn-unresolved-symbols --error-unresolved-symbols + grep -q 'undefined symbol:.*foo' + on_exit + echo OK OK + exit 0 Test time = 1.19 sec ---------------------------------------------------------- Test Passed. "x86_64-warn-unresolved-symbols" end time: Nov 13 20:03 CET "x86_64-warn-unresolved-symbols" time elapsed: 00:00:01 ---------------------------------------------------------- 304/322 Testing: x86_64-weak-undef2 304/322 Test: x86_64-weak-undef2 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef2.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-weak-undef2" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef2.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef2.sh .sh ++ testname=weak-undef2 ++ echo -n 'Testing weak-undef2 ... ' Testing weak-undef2 ... ++ t=out/test/elf/x86_64/weak-undef2 ++ mkdir -p out/test/elf/x86_64/weak-undef2 + cat + cc -c -o out/test/elf/x86_64/weak-undef2/a.o -xc - + cat + cc -c -o out/test/elf/x86_64/weak-undef2/b.o -xc - + cc -B. -o out/test/elf/x86_64/weak-undef2/exe out/test/elf/x86_64/weak-undef2/a.o out/test/elf/x86_64/weak-undef2/b.o + grep -q 'undefined symbol: foo' out/test/elf/x86_64/weak-undef2/log + on_exit + echo OK OK + exit 0 Test time = 1.11 sec ---------------------------------------------------------- Test Passed. "x86_64-weak-undef2" end time: Nov 13 20:03 CET "x86_64-weak-undef2" time elapsed: 00:00:01 ---------------------------------------------------------- 282/322 Testing: x86_64-version-script17 282/322 Test: x86_64-version-script17 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script17.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script17" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script17.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script17.sh .sh ++ testname=version-script17 ++ echo -n 'Testing version-script17 ... ' Testing version-script17 ... ++ t=out/test/elf/x86_64/version-script17 ++ mkdir -p out/test/elf/x86_64/version-script17 + cat + cc -fPIC -c -o out/test/elf/x86_64/version-script17/a.o -xc - + + cc -B. cat-shared -fPIC -o out/test/elf/x86_64/version-script17/b.so -xc - + cc -B. -o out/test/elf/x86_64/version-script17/exe1 out/test/elf/x86_64/version-script17/a.o out/test/elf/x86_64/version-script17/b.so + nm -g out/test/elf/x86_64/version-script17/exe1 + grep -q foo + cat + cc -B. -o out/test/elf/x86_64/version-script17/exe2 out/test/elf/x86_64/version-script17/a.o out/test/elf/x86_64/version-script17/b.so -Wl,--version-script=out/test/elf/x86_64/version-script17/c.ver -Wl,--undefined-version + nm -g out/test/elf/x86_64/version-script17/exe2 + grep -q foo out/test/elf/x86_64/version-script17/log2 + cat + cc -B. -o out/test/elf/x86_64/version-script17/exe3 out/test/elf/x86_64/version-script17/a.o out/test/elf/x86_64/version-script17/b.so -Wl,--version-script=out/test/elf/x86_64/version-script17/d.ver + nm -g out/test/elf/x86_64/version-script17/exe3 + grep -q foo out/test/elf/x86_64/version-script17/log3 + on_exit + echo OK OK + exit 0 Test time = 1.95 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script17" end time: Nov 13 20:03 CET "x86_64-version-script17" time elapsed: 00:00:01 ---------------------------------------------------------- 291/322 Testing: x86_64-version-script8 291/322 Test: x86_64-version-script8 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script8.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version-script8" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script8.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version-script8.sh .sh ++ testname=version-script8 ++ echo -n 'Testing version-script8 ... ' Testing version-script8 ... ++ t=out/test/elf/x86_64/version-script8 ++ mkdir -p out/test/elf/x86_64/version-script8 + cat + cat + cc -B. -xc -shared -o out/test/elf/x86_64/version-script8/b.so -Wl,-version-script,out/test/elf/x86_64/version-script8/a.ver - + cat + cc -xc -c -o out/test/elf/x86_64/version-script8/c.o - + cc -B. -o out/test/elf/x86_64/version-script8/exe out/test/elf/x86_64/version-script8/c.o out/test/elf/x86_64/version-script8/b.so + out/test/elf/x86_64/version-script8/exe + readelf --dyn-syms out/test/elf/x86_64/version-script8/b.so + grep -Fq foo@@ver1 out/test/elf/x86_64/version-script8/log + grep -Fq bar@@ver2 out/test/elf/x86_64/version-script8/log + grep -Fq baz out/test/elf/x86_64/version-script8/log + on_exit + echo OK OK + exit 0 Test time = 1.57 sec ---------------------------------------------------------- Test Passed. "x86_64-version-script8" end time: Nov 13 20:03 CET "x86_64-version-script8" time elapsed: 00:00:01 ---------------------------------------------------------- 295/322 Testing: x86_64-visibility 295/322 Test: x86_64-visibility Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/visibility.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-visibility" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/visibility.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/visibility.sh .sh ++ testname=visibility ++ echo -n 'Testing visibility ... ' Testing visibility ... ++ t=out/test/elf/x86_64/visibility ++ mkdir -p out/test/elf/x86_64/visibility + cat + cc -xc -c -o out/test/elf/x86_64/visibility/a.o - + cc -xc -c -o out/test/elf/x86_64/visibility/b.o - + cat + rm -f out/test/elf/x86_64/visibility/c.a + ar crs out/test/elf/x86_64/visibility/c.a out/test/elf/x86_64/visibility/a.o out/test/elf/x86_64/visibility/b.o + cat + cc -xc -fPIC -c -o out/test/elf/x86_64/visibility/d.o - + cc -B. -shared -o out/test/elf/x86_64/visibility/e.so out/test/elf/x86_64/visibility/c.a out/test/elf/x86_64/visibility/d.o + readelf --dyn-syms out/test/elf/x86_64/visibility/e.so + grep -Fq foo out/test/elf/x86_64/visibility/log + on_exit + echo OK OK + exit 0 Test time = 1.52 sec ---------------------------------------------------------- Test Passed. "x86_64-visibility" end time: Nov 13 20:03 CET "x86_64-visibility" time elapsed: 00:00:01 ---------------------------------------------------------- 300/322 Testing: x86_64-weak-export-dso 300/322 Test: x86_64-weak-export-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-export-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-weak-export-dso" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-export-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-export-dso.sh .sh ++ testname=weak-export-dso ++ echo -n 'Testing weak-export-dso ... ' Testing weak-export-dso ... ++ t=out/test/elf/x86_64/weak-export-dso ++ mkdir -p out/test/elf/x86_64/weak-export-dso + cat + cc -fPIC -c -o out/test/elf/x86_64/weak-export-dso/a.o -xc - + cc -B. -o out/test/elf/x86_64/weak-export-dso/b.so out/test/elf/x86_64/weak-export-dso/a.o -shared + cc -B. -o out/test/elf/x86_64/weak-export-dso/c.so out/test/elf/x86_64/weak-export-dso/a.o -shared -Wl,-z,defs + grep -q 'WEAK DEFAULT UND foo' + readelf --dyn-syms out/test/elf/x86_64/weak-export-dso/b.so + readelf --dyn-syms out/test/elf/x86_64/weak-export-dso/c.so + grep -q 'WEAK DEFAULT UND foo' + on_exit + echo OK OK + exit 0 Test time = 1.41 sec ---------------------------------------------------------- Test Passed. "x86_64-weak-export-dso" end time: Nov 13 20:03 CET "x86_64-weak-export-dso" time elapsed: 00:00:01 ---------------------------------------------------------- 293/322 Testing: x86_64-version 293/322 Test: x86_64-version Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-version" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version.sh .sh ++ testname=version ++ echo -n 'Testing version ... ' Testing version ... ++ t=out/test/elf/x86_64/version ++ mkdir -p out/test/elf/x86_64/version + nm mold + grep -q __tsan_init + ./mold -v + grep -q '[ms]old .*compatible with GNU ld' + ./mold --version + grep -q '[ms]old .*compatible with GNU ld' + ./mold -V + grep -q '[ms]old .*compatible with GNU ld' + grep -q elf_x86_64 + ./mold -V + ./mold -V + grep -q elf_i386 + cc -c -xc -o out/test/elf/x86_64/version/a.o - + cat + rm -f out/test/elf/x86_64/version/exe + grep -q '[ms]old' + cc -B. -Wl,--version -o out/test/elf/x86_64/version/exe1 out/test/elf/x86_64/version/a.o + '[' -f out/test/elf/x86_64/version/exe1 ']' + cc -B. -Wl,-v -o out/test/elf/x86_64/version/exe2 out/test/elf/x86_64/version/a.o + grep -q '[ms]old' + out/test/elf/x86_64/version/exe2 /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/version.sh: line 27: out/test/elf/x86_64/version/exe2: No such file or directory + grep -q 'Hello world' ++ on_error 27 ++ code=1 ++ echo 'command failed: 27: grep -q '\''Hello world'\''' command failed: 27: grep -q 'Hello world' ++ trap - EXIT ++ exit 1 Test time = 1.58 sec ---------------------------------------------------------- Test Failed. "x86_64-version" end time: Nov 13 20:03 CET "x86_64-version" time elapsed: 00:00:01 ---------------------------------------------------------- 296/322 Testing: x86_64-warn-common 296/322 Test: x86_64-warn-common Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-common.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-warn-common" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-common.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/warn-common.sh .sh ++ testname=warn-common ++ echo -n 'Testing warn-common ... ' Testing warn-common ... ++ t=out/test/elf/x86_64/warn-common ++ mkdir -p out/test/elf/x86_64/warn-common + cat + cc -fcommon -c -xc -o out/test/elf/x86_64/warn-common/a.o - + cc -fcommon -c -xc -o out/test/elf/x86_64/warn-common/b.o - + cat + cc -B. -o out/test/elf/x86_64/warn-common/exe out/test/elf/x86_64/warn-common/a.o out/test/elf/x86_64/warn-common/b.o + grep -Fq 'multiple common symbols' out/test/elf/x86_64/warn-common/log + cc -B. -o out/test/elf/x86_64/warn-common/exe out/test/elf/x86_64/warn-common/a.o out/test/elf/x86_64/warn-common/b.o -Wl,-warn-common + grep -Fq 'multiple common symbols' out/test/elf/x86_64/warn-common/log + on_exit + echo OK OK + exit 0 Test time = 1.52 sec ---------------------------------------------------------- Test Passed. "x86_64-warn-common" end time: Nov 13 20:03 CET "x86_64-warn-common" time elapsed: 00:00:01 ---------------------------------------------------------- 319/322 Testing: x86_64-z-separate-code 319/322 Test: x86_64-z-separate-code Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-separate-code.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-separate-code" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-separate-code.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-separate-code.sh .sh ++ testname=z-separate-code ++ echo -n 'Testing z-separate-code ... ' Testing z-separate-code ... ++ t=out/test/elf/x86_64/z-separate-code ++ mkdir -p out/test/elf/x86_64/z-separate-code + is_musl + ldd --help + grep -q musl + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.24 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-z-separate-code" end time: Nov 13 20:03 CET "x86_64-z-separate-code" time elapsed: 00:00:00 ---------------------------------------------------------- 313/322 Testing: x86_64-z-nodefaultlib 313/322 Test: x86_64-z-nodefaultlib Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-nodefaultlib.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-nodefaultlib" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-nodefaultlib.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-nodefaultlib.sh .sh ++ testname=z-nodefaultlib ++ echo -n 'Testing z-nodefaultlib ... ' Testing z-nodefaultlib ... ++ t=out/test/elf/x86_64/z-nodefaultlib ++ mkdir -p out/test/elf/x86_64/z-nodefaultlib + cc -o out/test/elf/x86_64/z-nodefaultlib/a.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/z-nodefaultlib/exe out/test/elf/x86_64/z-nodefaultlib/a.o -Wl,-z,nodefaultlib + readelf --dynamic out/test/elf/x86_64/z-nodefaultlib/exe + grep -q 'Flags:.*NODEFLIB' + on_exit + echo OK OK + exit 0 Test time = 0.89 sec ---------------------------------------------------------- Test Passed. "x86_64-z-nodefaultlib" end time: Nov 13 20:03 CET "x86_64-z-nodefaultlib" time elapsed: 00:00:00 ---------------------------------------------------------- 316/322 Testing: x86_64-z-origin 316/322 Test: x86_64-z-origin Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-origin.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-origin" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-origin.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-origin.sh .sh ++ testname=z-origin ++ echo -n 'Testing z-origin ... ' Testing z-origin ... ++ t=out/test/elf/x86_64/z-origin ++ mkdir -p out/test/elf/x86_64/z-origin + cat + cc -c -o out/test/elf/x86_64/z-origin/a.o -xc - + cc -B. -o out/test/elf/x86_64/z-origin/exe out/test/elf/x86_64/z-origin/a.o -Wl,-z,origin + grep -Eq '\(FLAGS\)\s+ORIGIN' + readelf --dynamic out/test/elf/x86_64/z-origin/exe + readelf --dynamic out/test/elf/x86_64/z-origin/exe + grep -Eq 'Flags:.*ORIGIN' + on_exit + echo OK OK + exit 0 Test time = 0.78 sec ---------------------------------------------------------- Test Passed. "x86_64-z-origin" end time: Nov 13 20:03 CET "x86_64-z-origin" time elapsed: 00:00:00 ---------------------------------------------------------- 315/322 Testing: x86_64-z-now 315/322 Test: x86_64-z-now Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-now.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-now" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-now.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-now.sh .sh ++ testname=z-now ++ echo -n 'Testing z-now ... ' Testing z-now ... ++ t=out/test/elf/x86_64/z-now ++ mkdir -p out/test/elf/x86_64/z-now + cat + cc -o out/test/elf/x86_64/z-now/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/z-now/exe out/test/elf/x86_64/z-now/a.o -Wl,-z,now + out/test/elf/x86_64/z-now/exe + grep -q 'Hello world' + on_exit + echo OK OK + exit 0 Test time = 0.88 sec ---------------------------------------------------------- Test Passed. "x86_64-z-now" end time: Nov 13 20:03 CET "x86_64-z-now" time elapsed: 00:00:00 ---------------------------------------------------------- 322/322 Testing: x86_64-z-unknown 322/322 Test: x86_64-z-unknown Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-unknown.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-unknown" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-unknown.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-unknown.sh .sh ++ testname=z-unknown ++ echo -n 'Testing z-unknown ... ' Testing z-unknown ... ++ t=out/test/elf/x86_64/z-unknown ++ mkdir -p out/test/elf/x86_64/z-unknown + ./mold -z no-such-opt + grep -q 'unknown command line option: -z no-such-opt' + ./mold -zno-such-opt + grep -q 'unknown command line option: -zno-such-opt' + on_exit + echo OK OK + exit 0 Test time = 0.25 sec ---------------------------------------------------------- Test Passed. "x86_64-z-unknown" end time: Nov 13 20:03 CET "x86_64-z-unknown" time elapsed: 00:00:00 ---------------------------------------------------------- 321/322 Testing: x86_64-z-start-stop-visibility 321/322 Test: x86_64-z-start-stop-visibility Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-start-stop-visibility.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-start-stop-visibility" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-start-stop-visibility.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-start-stop-visibility.sh .sh ++ testname=z-start-stop-visibility ++ echo -n 'Testing z-start-stop-visibility ... ' Testing z-start-stop-visibility ... ++ t=out/test/elf/x86_64/z-start-stop-visibility ++ mkdir -p out/test/elf/x86_64/z-start-stop-visibility + ./mold -z start-stop-visibility=hidden --version + ./mold -z start-stop-visibility=protected --version + grep -q 'unsupported visibility: protected' out/test/elf/x86_64/z-start-stop-visibility/log + on_exit + echo OK OK + exit 0 Test time = 0.33 sec ---------------------------------------------------------- Test Passed. "x86_64-z-start-stop-visibility" end time: Nov 13 20:03 CET "x86_64-z-start-stop-visibility" time elapsed: 00:00:00 ---------------------------------------------------------- 317/322 Testing: x86_64-z-pack-relative-relocs 317/322 Test: x86_64-z-pack-relative-relocs Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-pack-relative-relocs.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-pack-relative-relocs" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-pack-relative-relocs.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-pack-relative-relocs.sh .sh ++ testname=z-pack-relative-relocs ++ echo -n 'Testing z-pack-relative-relocs ... ' Testing z-pack-relative-relocs ... ++ t=out/test/elf/x86_64/z-pack-relative-relocs ++ mkdir -p out/test/elf/x86_64/z-pack-relative-relocs + cat + cc -o out/test/elf/x86_64/z-pack-relative-relocs/a.o -fPIC -c -xc - + cc -B. -o out/test/elf/x86_64/z-pack-relative-relocs/exe out/test/elf/x86_64/z-pack-relative-relocs/a.o -pie -Wl,-z,pack-relative-relocs + readelf -W -V out/test/elf/x86_64/z-pack-relative-relocs/exe + grep -Fq GLIBC_2. out/test/elf/x86_64/z-pack-relative-relocs/log + skip + echo skipped skipped + trap - EXIT + exit 0 Test time = 0.82 sec ---------------------------------------------------------- Test Pass Reason: Skip regular expression found in output. Regex=[skipped] "x86_64-z-pack-relative-relocs" end time: Nov 13 20:03 CET "x86_64-z-pack-relative-relocs" time elapsed: 00:00:00 ---------------------------------------------------------- 314/322 Testing: x86_64-z-nodump 314/322 Test: x86_64-z-nodump Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-nodump.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-nodump" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-nodump.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-nodump.sh .sh ++ testname=z-nodump ++ echo -n 'Testing z-nodump ... ' Testing z-nodump ... ++ t=out/test/elf/x86_64/z-nodump ++ mkdir -p out/test/elf/x86_64/z-nodump + cat + cc -c -o out/test/elf/x86_64/z-nodump/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/z-nodump/b.so out/test/elf/x86_64/z-nodump/a.o + grep -Eq 'Flags:.*NODUMP' + readelf --dynamic out/test/elf/x86_64/z-nodump/b.so + cc -B. -shared -o out/test/elf/x86_64/z-nodump/b.so out/test/elf/x86_64/z-nodump/a.o -Wl,-z,nodump + readelf --dynamic out/test/elf/x86_64/z-nodump/b.so + grep -Eq 'Flags:.*NODUMP' + on_exit + echo OK OK + exit 0 Test time = 1.14 sec ---------------------------------------------------------- Test Passed. "x86_64-z-nodump" end time: Nov 13 20:03 CET "x86_64-z-nodump" time elapsed: 00:00:01 ---------------------------------------------------------- 318/322 Testing: x86_64-z-sectionheader 318/322 Test: x86_64-z-sectionheader Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-sectionheader.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-sectionheader" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-sectionheader.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-sectionheader.sh .sh ++ testname=z-sectionheader ++ echo -n 'Testing z-sectionheader ... ' Testing z-sectionheader ... ++ t=out/test/elf/x86_64/z-sectionheader ++ mkdir -p out/test/elf/x86_64/z-sectionheader + cat + cc -o out/test/elf/x86_64/z-sectionheader/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/z-sectionheader/exe out/test/elf/x86_64/z-sectionheader/a.o -Wl,-z,nosectionheader + out/test/elf/x86_64/z-sectionheader/exe + grep -q 'Hello world' + readelf -h out/test/elf/x86_64/z-sectionheader/exe + grep -Eq 'Size of section headers:\s+0 ' + on_exit + echo OK OK + exit 0 Test time = 0.73 sec ---------------------------------------------------------- Test Passed. "x86_64-z-sectionheader" end time: Nov 13 20:03 CET "x86_64-z-sectionheader" time elapsed: 00:00:00 ---------------------------------------------------------- 309/322 Testing: x86_64-z-cet-report 309/322 Test: x86_64-z-cet-report Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-cet-report.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-cet-report" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-cet-report.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-cet-report.sh .sh ++ testname=z-cet-report ++ echo -n 'Testing z-cet-report ... ' Testing z-cet-report ... ++ t=out/test/elf/x86_64/z-cet-report ++ mkdir -p out/test/elf/x86_64/z-cet-report + cat + cc -o out/test/elf/x86_64/z-cet-report/a.o -c -x assembler - + cc -B. -o out/test/elf/x86_64/z-cet-report/exe out/test/elf/x86_64/z-cet-report/a.o + cc -B. -o out/test/elf/x86_64/z-cet-report/exe out/test/elf/x86_64/z-cet-report/a.o -Wl,-z,cet-report=warning + grep -q 'a.o: -cet-report=warning: missing GNU_PROPERTY_X86_FEATURE_1_IBT' out/test/elf/x86_64/z-cet-report/log + grep -q 'a.o: -cet-report=warning: missing GNU_PROPERTY_X86_FEATURE_1_SHSTK' out/test/elf/x86_64/z-cet-report/log + cc -B. -o out/test/elf/x86_64/z-cet-report/exe out/test/elf/x86_64/z-cet-report/a.o -Wl,-z,cet-report=error + grep -q 'a.o: -cet-report=error: missing GNU_PROPERTY_X86_FEATURE_1_IBT' out/test/elf/x86_64/z-cet-report/log + grep -q 'a.o: -cet-report=error: missing GNU_PROPERTY_X86_FEATURE_1_SHSTK' out/test/elf/x86_64/z-cet-report/log + on_exit + echo OK OK + exit 0 Test time = 1.50 sec ---------------------------------------------------------- Test Passed. "x86_64-z-cet-report" end time: Nov 13 20:03 CET "x86_64-z-cet-report" time elapsed: 00:00:01 ---------------------------------------------------------- 320/322 Testing: x86_64-z-stack-size 320/322 Test: x86_64-z-stack-size Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-stack-size.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-stack-size" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-stack-size.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-stack-size.sh .sh ++ testname=z-stack-size ++ echo -n 'Testing z-stack-size ... ' Testing z-stack-size ... ++ t=out/test/elf/x86_64/z-stack-size ++ mkdir -p out/test/elf/x86_64/z-stack-size + cat + cc -o out/test/elf/x86_64/z-stack-size/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/z-stack-size/exe out/test/elf/x86_64/z-stack-size/a.o -Wl,-z,stack-size=0x900000 + readelf -W --segments out/test/elf/x86_64/z-stack-size/exe + grep -q 'GNU_STACK .* 0x900000 RW' + on_exit + echo OK OK + exit 0 Test time = 0.60 sec ---------------------------------------------------------- Test Passed. "x86_64-z-stack-size" end time: Nov 13 20:03 CET "x86_64-z-stack-size" time elapsed: 00:00:00 ---------------------------------------------------------- 305/322 Testing: x86_64-weak-undef4 305/322 Test: x86_64-weak-undef4 Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef4.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-weak-undef4" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef4.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef4.sh .sh ++ testname=weak-undef4 ++ echo -n 'Testing weak-undef4 ... ' Testing weak-undef4 ... ++ t=out/test/elf/x86_64/weak-undef4 ++ mkdir -p out/test/elf/x86_64/weak-undef4 + cat + cc -c -o out/test/elf/x86_64/weak-undef4/a.o -xc - + cat + cc -c -o out/test/elf/x86_64/weak-undef4/b.o -xc - + cat + cc -fcommon -xc -c -o out/test/elf/x86_64/weak-undef4/c.o - + ar rcs out/test/elf/x86_64/weak-undef4/d.a out/test/elf/x86_64/weak-undef4/c.o + cc -B. -o out/test/elf/x86_64/weak-undef4/exe1 out/test/elf/x86_64/weak-undef4/a.o out/test/elf/x86_64/weak-undef4/d.a + cc -B. -o out/test/elf/x86_64/weak-undef4/exe2 out/test/elf/x86_64/weak-undef4/b.o out/test/elf/x86_64/weak-undef4/d.a + out/test/elf/x86_64/weak-undef4/exe1 + grep -q '^2$' + out/test/elf/x86_64/weak-undef4/exe2 + grep -q '^-1$' + on_exit + echo OK OK + exit 0 Test time = 1.73 sec ---------------------------------------------------------- Test Passed. "x86_64-weak-undef4" end time: Nov 13 20:03 CET "x86_64-weak-undef4" time elapsed: 00:00:01 ---------------------------------------------------------- 302/322 Testing: x86_64-weak-undef-dso 302/322 Test: x86_64-weak-undef-dso Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef-dso.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-weak-undef-dso" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef-dso.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef-dso.sh .sh ++ testname=weak-undef-dso ++ echo -n 'Testing weak-undef-dso ... ' Testing weak-undef-dso ... ++ t=out/test/elf/x86_64/weak-undef-dso ++ mkdir -p out/test/elf/x86_64/weak-undef-dso + cc -c -o out/test/elf/x86_64/weak-undef-dso/a.o -fPIC -xc - + cat + cc -B. -shared -o out/test/elf/x86_64/weak-undef-dso/b.so out/test/elf/x86_64/weak-undef-dso/a.o + cat + cc -xc -c -o out/test/elf/x86_64/weak-undef-dso/c.o - + cc -B. -o out/test/elf/x86_64/weak-undef-dso/exe1 out/test/elf/x86_64/weak-undef-dso/c.o out/test/elf/x86_64/weak-undef-dso/b.so + grep -q bar=-1 + out/test/elf/x86_64/weak-undef-dso/exe1 + cat + cc -xc -c -o out/test/elf/x86_64/weak-undef-dso/d.o - + cc -B. -o out/test/elf/x86_64/weak-undef-dso/exe2 out/test/elf/x86_64/weak-undef-dso/d.o out/test/elf/x86_64/weak-undef-dso/b.so + out/test/elf/x86_64/weak-undef-dso/exe2 + grep -q bar=5 + on_exit + echo OK OK + exit 0 Test time = 1.87 sec ---------------------------------------------------------- Test Passed. "x86_64-weak-undef-dso" end time: Nov 13 20:03 CET "x86_64-weak-undef-dso" time elapsed: 00:00:01 ---------------------------------------------------------- 312/322 Testing: x86_64-z-max-page-size 312/322 Test: x86_64-z-max-page-size Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-max-page-size.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-max-page-size" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-max-page-size.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-max-page-size.sh .sh ++ testname=z-max-page-size ++ echo -n 'Testing z-max-page-size ... ' Testing z-max-page-size ... ++ t=out/test/elf/x86_64/z-max-page-size ++ mkdir -p out/test/elf/x86_64/z-max-page-size + cat + cc -o out/test/elf/x86_64/z-max-page-size/a.o -c -xc - + cc -B. -o out/test/elf/x86_64/z-max-page-size/exe1 out/test/elf/x86_64/z-max-page-size/a.o -Wl,-z,max-page-size=65536 -Wl,-z,separate-loadable-segments + out/test/elf/x86_64/z-max-page-size/exe1 + grep -q 'Hello world' + grep -q 'LOAD.*R 0x10000$' + readelf -W --segments out/test/elf/x86_64/z-max-page-size/exe1 + cc -B. -o out/test/elf/x86_64/z-max-page-size/exe2 out/test/elf/x86_64/z-max-page-size/a.o -Wl,-zmax-page-size=1048576 -Wl,-z,separate-loadable-segments + out/test/elf/x86_64/z-max-page-size/exe2 + grep -q 'Hello world' + grep -q 'LOAD.*R 0x100000$' + readelf -W --segments out/test/elf/x86_64/z-max-page-size/exe2 + cc -B. -o out/test/elf/x86_64/z-max-page-size/exe3 out/test/elf/x86_64/z-max-page-size/a.o -Wl,-zmax-page-size=1048576 + out/test/elf/x86_64/z-max-page-size/exe3 + grep -q 'Hello world' + readelf -W --segments out/test/elf/x86_64/z-max-page-size/exe3 + grep -q 'LOAD.*R 0x100000$' + on_exit + echo OK OK + exit 0 Test time = 1.44 sec ---------------------------------------------------------- Test Passed. "x86_64-z-max-page-size" end time: Nov 13 20:03 CET "x86_64-z-max-page-size" time elapsed: 00:00:01 ---------------------------------------------------------- 306/322 Testing: x86_64-whole-archive 306/322 Test: x86_64-whole-archive Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/whole-archive.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-whole-archive" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/whole-archive.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/whole-archive.sh .sh ++ testname=whole-archive ++ echo -n 'Testing whole-archive ... ' Testing whole-archive ... ++ t=out/test/elf/x86_64/whole-archive ++ mkdir -p out/test/elf/x86_64/whole-archive + cc -o out/test/elf/x86_64/whole-archive/a.o -c -x assembler - + cat + echo 'int fn1() { return 42; }' + cc -o out/test/elf/x86_64/whole-archive/b.o -c -xc - + echo 'int fn2() { return 42; }' + cc -o out/test/elf/x86_64/whole-archive/c.o -c -xc - + rm -f out/test/elf/x86_64/whole-archive/d.a + ar cr out/test/elf/x86_64/whole-archive/d.a out/test/elf/x86_64/whole-archive/b.o out/test/elf/x86_64/whole-archive/c.o + cc -B. -nostdlib -o out/test/elf/x86_64/whole-archive/exe out/test/elf/x86_64/whole-archive/a.o out/test/elf/x86_64/whole-archive/d.a + readelf --symbols out/test/elf/x86_64/whole-archive/exe + grep -q fn1 out/test/elf/x86_64/whole-archive/readelf + grep -q fn2 out/test/elf/x86_64/whole-archive/readelf + cc -B. -nostdlib -o out/test/elf/x86_64/whole-archive/exe out/test/elf/x86_64/whole-archive/a.o -Wl,--whole-archive out/test/elf/x86_64/whole-archive/d.a + readelf --symbols out/test/elf/x86_64/whole-archive/exe + grep -q fn1 out/test/elf/x86_64/whole-archive/readelf + grep -q fn2 out/test/elf/x86_64/whole-archive/readelf + cc -B. -nostdlib -o out/test/elf/x86_64/whole-archive/exe out/test/elf/x86_64/whole-archive/a.o -Wl,--whole-archive -Wl,--no-whole-archive out/test/elf/x86_64/whole-archive/d.a + readelf --symbols out/test/elf/x86_64/whole-archive/exe + grep -q fn1 out/test/elf/x86_64/whole-archive/readelf + grep -q fn2 out/test/elf/x86_64/whole-archive/readelf + on_exit + echo OK OK + exit 0 Test time = 1.78 sec ---------------------------------------------------------- Test Passed. "x86_64-whole-archive" end time: Nov 13 20:03 CET "x86_64-whole-archive" time elapsed: 00:00:01 ---------------------------------------------------------- 303/322 Testing: x86_64-weak-undef 303/322 Test: x86_64-weak-undef Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-weak-undef" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/weak-undef.sh .sh ++ testname=weak-undef ++ echo -n 'Testing weak-undef ... ' Testing weak-undef ... ++ t=out/test/elf/x86_64/weak-undef ++ mkdir -p out/test/elf/x86_64/weak-undef + cat + cc -c -o out/test/elf/x86_64/weak-undef/a.o -fPIC -xc - + cat + cc -c -o out/test/elf/x86_64/weak-undef/b.o -fno-PIC -xc - + cc -fcommon -xc -c -o out/test/elf/x86_64/weak-undef/c.o - + cat + cc -B. -o out/test/elf/x86_64/weak-undef/exe1 out/test/elf/x86_64/weak-undef/a.o -pie + cc -B. -o out/test/elf/x86_64/weak-undef/exe2 out/test/elf/x86_64/weak-undef/b.o -no-pie + cc -B. -o out/test/elf/x86_64/weak-undef/exe3 out/test/elf/x86_64/weak-undef/a.o out/test/elf/x86_64/weak-undef/c.o -pie + cc -B. -o out/test/elf/x86_64/weak-undef/exe4 out/test/elf/x86_64/weak-undef/b.o out/test/elf/x86_64/weak-undef/c.o -no-pie + out/test/elf/x86_64/weak-undef/exe1 + grep -q '^-1$' + out/test/elf/x86_64/weak-undef/exe2 + grep -q '^-1$' + out/test/elf/x86_64/weak-undef/exe3 + grep -q '^2$' + out/test/elf/x86_64/weak-undef/exe4 + grep -q '^2$' + on_exit + echo OK OK + exit 0 Test time = 1.91 sec ---------------------------------------------------------- Test Passed. "x86_64-weak-undef" end time: Nov 13 20:03 CET "x86_64-weak-undef" time elapsed: 00:00:01 ---------------------------------------------------------- 308/322 Testing: x86_64-wrap 308/322 Test: x86_64-wrap Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/wrap.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-wrap" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/wrap.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/wrap.sh .sh ++ testname=wrap ++ echo -n 'Testing wrap ... ' Testing wrap ... ++ t=out/test/elf/x86_64/wrap ++ mkdir -p out/test/elf/x86_64/wrap + cc -fPIC -shared -o out/test/elf/x86_64/wrap/a.so -xc - + cat + cc -c -o out/test/elf/x86_64/wrap/b.o -xc - + cat + cc -c -o out/test/elf/x86_64/wrap/c.o -xc - + cat + cc -B. -o out/test/elf/x86_64/wrap/exe out/test/elf/x86_64/wrap/a.so out/test/elf/x86_64/wrap/b.o + out/test/elf/x86_64/wrap/exe + grep -q '^foo$' + cc -B. -o out/test/elf/x86_64/wrap/exe out/test/elf/x86_64/wrap/a.so out/test/elf/x86_64/wrap/b.o -Wl,-wrap,foo + + out/test/elf/x86_64/wrap/exe grep -q '^wrap_foo$' + cc -B. -o out/test/elf/x86_64/wrap/exe out/test/elf/x86_64/wrap/a.so out/test/elf/x86_64/wrap/c.o -Wl,-wrap,foo + out/test/elf/x86_64/wrap/exe + grep -q '^foo$' + on_exit + echo OK OK + exit 0 Test time = 1.77 sec ---------------------------------------------------------- Test Passed. "x86_64-wrap" end time: Nov 13 20:03 CET "x86_64-wrap" time elapsed: 00:00:01 ---------------------------------------------------------- 310/322 Testing: x86_64-z-defs 310/322 Test: x86_64-z-defs Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-defs.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-defs" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-defs.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-defs.sh .sh ++ testname=z-defs ++ echo -n 'Testing z-defs ... ' Testing z-defs ... ++ t=out/test/elf/x86_64/z-defs ++ mkdir -p out/test/elf/x86_64/z-defs + cat + cc -fPIC -c -o out/test/elf/x86_64/z-defs/a.o -xc - + cc -B. -shared -o out/test/elf/x86_64/z-defs/b.so out/test/elf/x86_64/z-defs/a.o + cc -B. -shared -o out/test/elf/x86_64/z-defs/b.so out/test/elf/x86_64/z-defs/a.o -Wl,-z,undefs + cc -B. -shared -o out/test/elf/x86_64/z-defs/b.so out/test/elf/x86_64/z-defs/a.o -Wl,-z,defs + grep -q 'undefined symbol:.* foo' out/test/elf/x86_64/z-defs/log + cc -B. -shared -o out/test/elf/x86_64/z-defs/b.so out/test/elf/x86_64/z-defs/a.o -Wl,-no-undefined + grep -q 'undefined symbol:.* foo' out/test/elf/x86_64/z-defs/log + cc -B. -shared -o out/test/elf/x86_64/z-defs/c.so out/test/elf/x86_64/z-defs/a.o -Wl,-z,defs -Wl,--warn-unresolved-symbols + grep -q 'undefined symbol:.* foo$' out/test/elf/x86_64/z-defs/log + on_exit + echo OK OK + exit 0 Test time = 1.66 sec ---------------------------------------------------------- Test Passed. "x86_64-z-defs" end time: Nov 13 20:03 CET "x86_64-z-defs" time elapsed: 00:00:01 ---------------------------------------------------------- 311/322 Testing: x86_64-z-dynamic-undefined-weak 311/322 Test: x86_64-z-dynamic-undefined-weak Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-dynamic-undefined-weak.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-z-dynamic-undefined-weak" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-dynamic-undefined-weak.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/z-dynamic-undefined-weak.sh .sh ++ testname=z-dynamic-undefined-weak ++ echo -n 'Testing z-dynamic-undefined-weak ... ' Testing z-dynamic-undefined-weak ... ++ t=out/test/elf/x86_64/z-dynamic-undefined-weak ++ mkdir -p out/test/elf/x86_64/z-dynamic-undefined-weak + cat + cc -o out/test/elf/x86_64/z-dynamic-undefined-weak/a.o -c -xc - -fPIC + cc -B. -shared -o out/test/elf/x86_64/z-dynamic-undefined-weak/b.so out/test/elf/x86_64/z-dynamic-undefined-weak/a.o + cc -B. -shared -o out/test/elf/x86_64/z-dynamic-undefined-weak/c.so out/test/elf/x86_64/z-dynamic-undefined-weak/a.o -Wl,-z,dynamic-undefined-weak + cc -B. -shared -o out/test/elf/x86_64/z-dynamic-undefined-weak/d.so out/test/elf/x86_64/z-dynamic-undefined-weak/a.o -Wl,-z,nodynamic-undefined-weak + cc -o out/test/elf/x86_64/z-dynamic-undefined-weak/e.o -c -xc - + cat + cc -B. -o out/test/elf/x86_64/z-dynamic-undefined-weak/exe1 out/test/elf/x86_64/z-dynamic-undefined-weak/e.o out/test/elf/x86_64/z-dynamic-undefined-weak/b.so + out/test/elf/x86_64/z-dynamic-undefined-weak/exe1 + grep -q 1 + cc -B. -o out/test/elf/x86_64/z-dynamic-undefined-weak/exe2 out/test/elf/x86_64/z-dynamic-undefined-weak/e.o out/test/elf/x86_64/z-dynamic-undefined-weak/c.so + out/test/elf/x86_64/z-dynamic-undefined-weak/exe2 + grep -q 1 + cc -B. -o out/test/elf/x86_64/z-dynamic-undefined-weak/exe3 out/test/elf/x86_64/z-dynamic-undefined-weak/e.o out/test/elf/x86_64/z-dynamic-undefined-weak/d.so + out/test/elf/x86_64/z-dynamic-undefined-weak/exe3 + grep -q 0 + on_exit + echo OK OK + exit 0 Test time = 1.66 sec ---------------------------------------------------------- Test Passed. "x86_64-z-dynamic-undefined-weak" end time: Nov 13 20:03 CET "x86_64-z-dynamic-undefined-weak" time elapsed: 00:00:01 ---------------------------------------------------------- 307/322 Testing: x86_64-wrap-lto 307/322 Test: x86_64-wrap-lto Command: "/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/wrap-lto.sh" Directory: /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2_build "x86_64-wrap-lto" start time: Nov 13 20:03 CET Output: ---------------------------------------------------------- ++ dirname /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/wrap-lto.sh + . /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/common.inc ++ export LC_ALL=C ++ LC_ALL=C ++ '[' -z x86_64 ']' ++ '[' -z '' ']' ++ MACHINE=x86_64 ++ TESTDIR=out/test/elf/x86_64 ++ CC=cc ++ CXX=c++ ++ GCC=gcc ++ GXX=g++ ++ OBJDUMP=objdump ++ OBJCOPY=objcopy ++ STRIP=strip ++ QEMU= ++ '[' x86_64 = x86_64 -o x86_64 = i386 -o x86_64 = arm ']' ++ tlsdesc_opt=-mtls-dialect=gnu2 ++ '[' x86_64 = ppc64le -a -e /proc/cpuinfo ']' ++ trap 'on_error $LINENO' ERR ++ trap on_exit EXIT +++ basename /var/tmp/portage/sys-devel/mold-2.3.2-r1/work/mold-2.3.2/test/elf/wrap-lto.sh .sh ++ testname=wrap-lto ++ echo -n 'Testing wrap-lto ... ' Testing wrap-lto ... ++ t=out/test/elf/x86_64/wrap-lto ++ mkdir -p out/test/elf/x86_64/wrap-lto + cat + cc -fPIC -shared -o out/test/elf/x86_64/wrap-lto/a.so -xc - + cat + cc -c -o out/test/elf/x86_64/wrap-lto/b.o -xc - -flto + cat + cc -c -o out/test/elf/x86_64/wrap-lto/c.o -xc - -flto + cc -B. -o out/test/elf/x86_64/wrap-lto/exe out/test/elf/x86_64/wrap-lto/a.so out/test/elf/x86_64/wrap-lto/b.o -flto + out/test/elf/x86_64/wrap-lto/exe + grep -q '^foo$' + cc -B. -o out/test/elf/x86_64/wrap-lto/exe out/test/elf/x86_64/wrap-lto/a.so out/test/elf/x86_64/wrap-lto/b.o -Wl,-wrap,foo -flto + out/test/elf/x86_64/wrap-lto/exe + grep -q '^wrap_foo$' + cc -B. -o out/test/elf/x86_64/wrap-lto/exe out/test/elf/x86_64/wrap-lto/a.so out/test/elf/x86_64/wrap-lto/c.o -Wl,-wrap,foo -flto + out/test/elf/x86_64/wrap-lto/exe + grep -q '^foo$' + on_exit + echo OK OK + exit 0 Test time = 1.98 sec ---------------------------------------------------------- Test Passed. "x86_64-wrap-lto" end time: Nov 13 20:03 CET "x86_64-wrap-lto" time elapsed: 00:00:01 ---------------------------------------------------------- End testing: Nov 13 20:03 CET