Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 877241 Details for
Bug 918967
sys-devel/mold-2.4.0 fails tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
LastTest.log
LastTest.log (text/x-log), 803.06 KB, created by
Leonardo Hernández Hernández
on 2023-12-05 07:10:20 UTC
(
hide
)
Description:
LastTest.log
Filename:
MIME Type:
Creator:
Leonardo Hernández Hernández
Created:
2023-12-05 07:10:20 UTC
Size:
803.06 KB
patch
obsolete
>Start testing: Dec 04 14:13 CST >---------------------------------------------------------- >2/335 Testing: x86_64-x86_64_emulation-deduction >2/335 Test: x86_64-x86_64_emulation-deduction >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_emulation-deduction.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_emulation-deduction" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_emulation-deduction.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -qi x86-64 >+ readelf --file-header out/test/elf/x86_64/x86_64_emulation-deduction/exe >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.12 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_emulation-deduction" end time: Dec 04 14:13 CST >"x86_64-x86_64_emulation-deduction" time elapsed: 00:00:00 >---------------------------------------------------------- > >1/335 Testing: x86_64-x86_64_empty-mergeable-section >1/335 Test: x86_64-x86_64_empty-mergeable-section >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_empty-mergeable-section.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_empty-mergeable-section" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_empty-mergeable-section.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >++ on_error 23 >++ code=1 >++ echo 'command failed: 23: grep -q '\''.rodata.str1.1 .* AMS '\'' $t/log' >command failed: 23: grep -q '.rodata.str1.1 .* AMS ' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.20 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_empty-mergeable-section" end time: Dec 04 14:13 CST >"x86_64-x86_64_empty-mergeable-section" time elapsed: 00:00:00 >---------------------------------------------------------- > >6/335 Testing: x86_64-x86_64_execstack-if-needed >6/335 Test: x86_64-x86_64_execstack-if-needed >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_execstack-if-needed.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_execstack-if-needed" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_execstack-if-needed.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: warning: unknown -z value: execstack-if-needed >+ readelf --segments -W out/test/elf/x86_64/x86_64_execstack-if-needed/exe >+ grep -q 'GNU_STACK.* RWE ' >++ on_error 17 >++ code=1 >++ echo 'command failed: 17: grep -q '\''GNU_STACK.* RWE '\''' >command failed: 17: grep -q 'GNU_STACK.* RWE ' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_execstack-if-needed" end time: Dec 04 14:13 CST >"x86_64-x86_64_execstack-if-needed" time elapsed: 00:00:00 >---------------------------------------------------------- > >9/335 Testing: x86_64-x86_64_gotpcrelx >9/335 Test: x86_64-x86_64_gotpcrelx >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_gotpcrelx.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_gotpcrelx" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_gotpcrelx.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: out/test/elf/x86_64/x86_64_gotpcrelx/b.o:(function main: .text+0x11): relocation R_X86_64_REX_GOTPCRELX out of range: 4000008859 is not in [-2147483648, 2147483647]; references 'bar' >>>> referenced by - >>>> defined in out/test/elf/x86_64/x86_64_gotpcrelx/a.o >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 20 >++ code=1 >++ echo 'command failed: 20: $CC -B. -o $t/exe $t/a.o $t/b.o' >command failed: 20: $CC -B. -o $t/exe $t/a.o $t/b.o >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_gotpcrelx" end time: Dec 04 14:13 CST >"x86_64-x86_64_gotpcrelx" time elapsed: 00:00:00 >---------------------------------------------------------- > >7/335 Testing: x86_64-x86_64_gnu-linkonce >7/335 Test: x86_64-x86_64_gnu-linkonce >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_gnu-linkonce.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_gnu-linkonce" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_gnu-linkonce.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ cc -o out/test/elf/x86_64/x86_64_gnu-linkonce/a.o -c -x assembler - >+ cat >+ 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 >+ objdump -d out/test/elf/x86_64/x86_64_gnu-linkonce/exe >+ grep -Fq 'puts$plt' >+ grep -A1 '<__x86.get_pc_thunk.bx>:' >++ on_error 27 >++ code=1 >++ echo 'command failed: 27: grep -Fq '\''puts$plt'\''' >command failed: 27: grep -Fq 'puts$plt' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.26 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_gnu-linkonce" end time: Dec 04 14:13 CST >"x86_64-x86_64_gnu-linkonce" time elapsed: 00:00:00 >---------------------------------------------------------- > >3/335 Testing: x86_64-x86_64_endbr >3/335 Test: x86_64-x86_64_endbr >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_endbr.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_endbr" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_endbr.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 '<foo>:' out/test/elf/x86_64/x86_64_endbr/log1 >+ grep -q endbr64 >+ grep -A1 '<bar>:' out/test/elf/x86_64/x86_64_endbr/log1 >+ grep -q endbr64 >+ grep -A1 '<main>:' 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 >ld.lld: warning: unknown -z value: rewrite-endbr >+ objdump -dr out/test/elf/x86_64/x86_64_endbr/exe2 >+ grep -q nop >+ grep -A1 '<foo>:' out/test/elf/x86_64/x86_64_endbr/log2 >++ on_error 26 >++ code=1 >++ echo 'command failed: 26: grep -q nop' >command failed: 26: grep -q nop >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.46 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_endbr" end time: Dec 04 14:13 CST >"x86_64-x86_64_endbr" time elapsed: 00:00:00 >---------------------------------------------------------- > >5/335 Testing: x86_64-x86_64_exception-mcmodel-large >5/335 Test: x86_64-x86_64_exception-mcmodel-large >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_exception-mcmodel-large.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_exception-mcmodel-large" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_exception-mcmodel-large.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.47 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_exception-mcmodel-large" end time: Dec 04 14:13 CST >"x86_64-x86_64_exception-mcmodel-large" time elapsed: 00:00:00 >---------------------------------------------------------- > >4/335 Testing: x86_64-x86_64_endbr2 >4/335 Test: x86_64-x86_64_endbr2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_endbr2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_endbr2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_endbr2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_endbr2.sh .sh >++ testname=x86_64_endbr2 >++ echo -n 'Testing x86_64_endbr2 ... ' >Testing x86_64_endbr2 ... ++ t=out/test/elf/x86_64/x86_64_endbr2 >++ mkdir -p out/test/elf/x86_64/x86_64_endbr2 >+ '[' 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_endbr2/a.o -c -xc - -fno-function-sections -O -fcf-protection >+ cat >+ cc -o out/test/elf/x86_64/x86_64_endbr2/b.o -c -xc - -fno-function-sections -O -fcf-protection >+ cc -B. -o out/test/elf/x86_64/x86_64_endbr2/exe1 out/test/elf/x86_64/x86_64_endbr2/a.o out/test/elf/x86_64/x86_64_endbr2/b.o >+ objdump -dr out/test/elf/x86_64/x86_64_endbr2/exe1 >+ grep -A1 '<foo>:' out/test/elf/x86_64/x86_64_endbr2/log1 >+ grep -q endbr64 >+ grep -q endbr64 >+ grep -A1 '<bar>:' out/test/elf/x86_64/x86_64_endbr2/log1 >+ grep -A1 '<main>:' out/test/elf/x86_64/x86_64_endbr2/log1 >+ grep -q endbr64 >+ cc -B. -o out/test/elf/x86_64/x86_64_endbr2/exe2 out/test/elf/x86_64/x86_64_endbr2/a.o out/test/elf/x86_64/x86_64_endbr2/b.o -Wl,-z,rewrite-endbr >ld.lld: warning: unknown -z value: rewrite-endbr >+ objdump -dr out/test/elf/x86_64/x86_64_endbr2/exe2 >+ grep -A1 '<foo>:' out/test/elf/x86_64/x86_64_endbr2/log2 >+ grep -q nop >++ on_error 26 >++ code=1 >++ echo 'command failed: 26: grep -q nop' >command failed: 26: grep -q nop >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.50 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_endbr2" end time: Dec 04 14:13 CST >"x86_64-x86_64_endbr2" time elapsed: 00:00:00 >---------------------------------------------------------- > >8/335 Testing: x86_64-x86_64_gnu-retain >8/335 Test: x86_64-x86_64_gnu-retain >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_gnu-retain.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_gnu-retain" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_gnu-retain.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.49 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_gnu-retain" end time: Dec 04 14:13 CST >"x86_64-x86_64_gnu-retain" time elapsed: 00:00:00 >---------------------------------------------------------- > >14/335 Testing: x86_64-x86_64_init-array-readonly >14/335 Test: x86_64-x86_64_init-array-readonly >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_init-array-readonly.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_init-array-readonly" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_init-array-readonly.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ cc -c -o out/test/elf/x86_64/x86_64_init-array-readonly/a.o -x assembler - >+ cat >+ 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_error 36 >++ code=1 >++ echo 'command failed: 36: grep -q '\''init1 init2'\''' >command failed: 36: grep -q 'init1 init2' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.32 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_init-array-readonly" end time: Dec 04 14:13 CST >"x86_64-x86_64_init-array-readonly" time elapsed: 00:00:00 >---------------------------------------------------------- > >10/335 Testing: x86_64-x86_64_ifunc-alias >10/335 Test: x86_64-x86_64_ifunc-alias >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_ifunc-alias.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_ifunc-alias" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_ifunc-alias.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ test_cflags -static >+ echo 'int main() {}' >+ cc -static -o /dev/null -xc - >+ cat >+ c++ -o out/test/elf/x86_64/x86_64_ifunc-alias/a.o -c -xc++ - -fno-PIE >+ c++ -B. -o out/test/elf/x86_64/x86_64_ifunc-alias/exe out/test/elf/x86_64/x86_64_ifunc-alias/a.o -static >+ out/test/elf/x86_64/x86_64_ifunc-alias/exe >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.48 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_ifunc-alias" end time: Dec 04 14:13 CST >"x86_64-x86_64_ifunc-alias" time elapsed: 00:00:00 >---------------------------------------------------------- > >15/335 Testing: x86_64-x86_64_init-array >15/335 Test: x86_64-x86_64_init-array >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_init-array.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_init-array" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_init-array.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.29 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_init-array" end time: Dec 04 14:13 CST >"x86_64-x86_64_init-array" time elapsed: 00:00:00 >---------------------------------------------------------- > >13/335 Testing: x86_64-x86_64_incompatible-obj >13/335 Test: x86_64-x86_64_incompatible-obj >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_incompatible-obj.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_incompatible-obj" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_incompatible-obj.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_incompatible-obj/a.o -m64 -xc - >+ cc -c -o out/test/elf/x86_64/x86_64_incompatible-obj/b.o -m32 -xc - >+ cat >+ cc -B. -o /dev/null out/test/elf/x86_64/x86_64_incompatible-obj/a.o out/test/elf/x86_64/x86_64_incompatible-obj/b.o >+ grep -q 'out/test/elf/x86_64/x86_64_incompatible-obj/b.o: incompatible file type: x86_64 is expected but got i386' out/test/elf/x86_64/x86_64_incompatible-obj/log >++ on_error 17 >++ code=1 >++ echo 'command failed: 17: grep -q "$t/b.o: incompatible file type: x86_64 is expected but got i386" $t/log' >command failed: 17: grep -q "$t/b.o: incompatible file type: x86_64 is expected but got i386" $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_incompatible-obj" end time: Dec 04 14:13 CST >"x86_64-x86_64_incompatible-obj" time elapsed: 00:00:00 >---------------------------------------------------------- > >16/335 Testing: x86_64-x86_64_large-bss >16/335 Test: x86_64-x86_64_large-bss >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_large-bss.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_large-bss" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_large-bss.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ out/test/elf/x86_64/x86_64_large-bss/exe >+ grep -Eq '^1 c0000000$' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.33 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_large-bss" end time: Dec 04 14:13 CST >"x86_64-x86_64_large-bss" time elapsed: 00:00:00 >---------------------------------------------------------- > >17/335 Testing: x86_64-x86_64_mergeable-records >17/335 Test: x86_64-x86_64_mergeable-records >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_mergeable-records.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_mergeable-records" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_mergeable-records.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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$' >+ grep -q '^ijkl$' >+ out/test/elf/x86_64/x86_64_mergeable-records/exe >+ 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 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_mergeable-records" end time: Dec 04 14:13 CST >"x86_64-x86_64_mergeable-records" time elapsed: 00:00:00 >---------------------------------------------------------- > >19/335 Testing: x86_64-x86_64_note-property >19/335 Test: x86_64-x86_64_note-property >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_note-property.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_note-property" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_note-property.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ echo endbr64 >+ cc -o /dev/null -c -xassembler - >+ 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 >+ readelf -n out/test/elf/x86_64/x86_64_note-property/exe >+ grep -q 'x86 feature: IBT' >+ ./mold -o out/test/elf/x86_64/x86_64_note-property/exe out/test/elf/x86_64/x86_64_note-property/b.o >+ readelf -n out/test/elf/x86_64/x86_64_note-property/exe >+ grep -q 'x86 feature: IBT' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.32 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_note-property" end time: Dec 04 14:13 CST >"x86_64-x86_64_note-property" time elapsed: 00:00:00 >---------------------------------------------------------- > >12/335 Testing: x86_64-x86_64_incompatible-libs2 >12/335 Test: x86_64-x86_64_incompatible-libs2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_incompatible-libs2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_incompatible-libs2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_incompatible-libs2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -m32 -c -o out/test/elf/x86_64/x86_64_incompatible-libs2/a.o -xc - >+ mkdir -p out/test/elf/x86_64/x86_64_incompatible-libs2/lib32 >+ cc -m32 -shared -o out/test/elf/x86_64/x86_64_incompatible-libs2/lib32/libfoo.so out/test/elf/x86_64/x86_64_incompatible-libs2/a.o >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_incompatible-libs2/d.o -xc - >+ mkdir -p out/test/elf/x86_64/x86_64_incompatible-libs2/lib64 >+ cc -shared -o out/test/elf/x86_64/x86_64_incompatible-libs2/lib64/libfoo.so out/test/elf/x86_64/x86_64_incompatible-libs2/d.o >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_incompatible-libs2/e.o -xc - >+ mkdir -p out/test/elf/x86_64/x86_64_incompatible-libs2/script >+ echo 'GROUP(libfoo.so)' >+ cc -B. -o out/test/elf/x86_64/x86_64_incompatible-libs2/exe -Lout/test/elf/x86_64/x86_64_incompatible-libs2/lib32 -Lout/test/elf/x86_64/x86_64_incompatible-libs2/lib64 -lfoo out/test/elf/x86_64/x86_64_incompatible-libs2/e.o -Wl,-rpath out/test/elf/x86_64/x86_64_incompatible-libs2/lib64 >++ on_error 36 >++ code=1 >++ echo 'command failed: 36: $CC -B. -o $t/exe -L$t/lib32 -L$t/lib64 -lfoo $t/e.o -Wl,-rpath $t/lib64 >&$t/log' >command failed: 36: $CC -B. -o $t/exe -L$t/lib32 -L$t/lib64 -lfoo $t/e.o -Wl,-rpath $t/lib64 >&$t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.80 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_incompatible-libs2" end time: Dec 04 14:13 CST >"x86_64-x86_64_incompatible-libs2" time elapsed: 00:00:00 >---------------------------------------------------------- > >18/335 Testing: x86_64-x86_64_mergeable-strings >18/335 Test: x86_64-x86_64_mergeable-strings >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_mergeable-strings.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_mergeable-strings" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_mergeable-strings.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.47 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_mergeable-strings" end time: Dec 04 14:13 CST >"x86_64-x86_64_mergeable-strings" time elapsed: 00:00:00 >---------------------------------------------------------- > >22/335 Testing: x86_64-x86_64_note2 >22/335 Test: x86_64-x86_64_note2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_note2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_note2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_note2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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= >+ cat >+ cc -o out/test/elf/x86_64/x86_64_note2/a.o -c -x assembler - >+ cat >+ cc -o out/test/elf/x86_64/x86_64_note2/b.o -c -x assembler - >+ cat >+ cc -o out/test/elf/x86_64/x86_64_note2/c.o -c -x assembler - >+ cc -o out/test/elf/x86_64/x86_64_note2/d.o -c -xc - >+ cat >+ ./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 ><end of output> >Test time = 0.34 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_note2" end time: Dec 04 14:13 CST >"x86_64-x86_64_note2" time elapsed: 00:00:00 >---------------------------------------------------------- > >21/335 Testing: x86_64-x86_64_note >21/335 Test: x86_64-x86_64_note >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_note.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_note" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_note.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -static -o /dev/null -xc - >+ echo 'int main() {}' >+ '[' 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= >+ cc -o out/test/elf/x86_64/x86_64_note/a.o -c -x assembler - >+ cat >+ ./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 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_note" end time: Dec 04 14:13 CST >"x86_64-x86_64_note" time elapsed: 00:00:00 >---------------------------------------------------------- > >11/335 Testing: x86_64-x86_64_incompatible-libs >11/335 Test: x86_64-x86_64_incompatible-libs >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_incompatible-libs.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_incompatible-libs" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_incompatible-libs.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -m32 -c -o out/test/elf/x86_64/x86_64_incompatible-libs/a.o -xc - >+ mkdir -p out/test/elf/x86_64/x86_64_incompatible-libs/lib32 >+ ar crs out/test/elf/x86_64/x86_64_incompatible-libs/lib32/libfoo.a out/test/elf/x86_64/x86_64_incompatible-libs/a.o >+ cc -m32 -shared -o out/test/elf/x86_64/x86_64_incompatible-libs/lib32/libfoo.so out/test/elf/x86_64/x86_64_incompatible-libs/a.o >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_incompatible-libs/d.o -xc - >+ mkdir -p out/test/elf/x86_64/x86_64_incompatible-libs/lib64 >+ ar crs out/test/elf/x86_64/x86_64_incompatible-libs/lib64/libfoo.a out/test/elf/x86_64/x86_64_incompatible-libs/d.o >+ cc -shared -o out/test/elf/x86_64/x86_64_incompatible-libs/lib64/libfoo.so out/test/elf/x86_64/x86_64_incompatible-libs/d.o >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_incompatible-libs/e.o -xc - >+ mkdir -p out/test/elf/x86_64/x86_64_incompatible-libs/script >+ echo 'OUTPUT_FORMAT(elf32-i386)' >+ cc -B. -o out/test/elf/x86_64/x86_64_incompatible-libs/exe -Lout/test/elf/x86_64/x86_64_incompatible-libs/script -Lout/test/elf/x86_64/x86_64_incompatible-libs/lib32 -Lout/test/elf/x86_64/x86_64_incompatible-libs/lib64 out/test/elf/x86_64/x86_64_incompatible-libs/e.o -lfoo -Wl,-rpath out/test/elf/x86_64/x86_64_incompatible-libs/lib64 >++ on_error 38 >++ code=1 >++ echo 'command failed: 38: $CC -B. -o $t/exe -L$t/script -L$t/lib32 -L$t/lib64 $t/e.o -lfoo -Wl,-rpath $t/lib64 >&$t/log' >command failed: 38: $CC -B. -o $t/exe -L$t/script -L$t/lib32 -L$t/lib64 $t/e.o -lfoo -Wl,-rpath $t/lib64 >&$t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.93 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_incompatible-libs" end time: Dec 04 14:13 CST >"x86_64-x86_64_incompatible-libs" time elapsed: 00:00:00 >---------------------------------------------------------- > >23/335 Testing: x86_64-x86_64_plt >23/335 Test: x86_64-x86_64_plt >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_plt.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_plt" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_plt.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_plt" end time: Dec 04 14:13 CST >"x86_64-x86_64_plt" time elapsed: 00:00:00 >---------------------------------------------------------- > >26/335 Testing: x86_64-x86_64_reloc-overflow >26/335 Test: x86_64-x86_64_reloc-overflow >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_reloc-overflow.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_reloc-overflow" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_reloc-overflow.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.13 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_reloc-overflow" end time: Dec 04 14:13 CST >"x86_64-x86_64_reloc-overflow" time elapsed: 00:00:00 >---------------------------------------------------------- > >24/335 Testing: x86_64-x86_64_preinit-array >24/335 Test: x86_64-x86_64_preinit-array >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_preinit-array.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_preinit-array" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_preinit-array.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ '[' x86_64 = x86_64 ']' >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_preinit-array/a.o -x assembler - >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_preinit-array/b.o -xc - >+ cc -B. -o out/test/elf/x86_64/x86_64_preinit-array/exe out/test/elf/x86_64/x86_64_preinit-array/a.o out/test/elf/x86_64/x86_64_preinit-array/b.o >+ out/test/elf/x86_64/x86_64_preinit-array/exe >+ grep -q 'preinit init fini' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.31 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_preinit-array" end time: Dec 04 14:13 CST >"x86_64-x86_64_preinit-array" time elapsed: 00:00:00 >---------------------------------------------------------- > >27/335 Testing: x86_64-x86_64_reloc-zero >27/335 Test: x86_64-x86_64_reloc-zero >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_reloc-zero.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_reloc-zero" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_reloc-zero.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_reloc-zero" end time: Dec 04 14:13 CST >"x86_64-x86_64_reloc-zero" time elapsed: 00:00:00 >---------------------------------------------------------- > >29/335 Testing: x86_64-x86_64_section-alignment >29/335 Test: x86_64-x86_64_section-alignment >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_section-alignment.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_section-alignment" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_section-alignment.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_section-alignment" end time: Dec 04 14:13 CST >"x86_64-x86_64_section-alignment" time elapsed: 00:00:00 >---------------------------------------------------------- > >30/335 Testing: x86_64-x86_64_section-name >30/335 Test: x86_64-x86_64_section-name >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_section-name.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_section-name" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_section-name.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -Fq '.text.hot .text.hot.foo' >+ readelf -p .text.hot out/test/elf/x86_64/x86_64_section-name/exe >+ grep -Fq '.text.unknown .text.unknown.foo' >+ readelf -p .text.unknown out/test/elf/x86_64/x86_64_section-name/exe >+ 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' >+ grep -Fq '.rodata .rodata.foo' >+ readelf -p .rodata out/test/elf/x86_64/x86_64_section-name/exe >+ ./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 >+ readelf --sections out/test/elf/x86_64/x86_64_section-name/exe >+ grep -Fq .text.hot >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.27 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_section-name" end time: Dec 04 14:13 CST >"x86_64-x86_64_section-name" time elapsed: 00:00:00 >---------------------------------------------------------- > >25/335 Testing: x86_64-x86_64_relax >25/335 Test: x86_64-x86_64_relax >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_relax.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_relax" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_relax.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ cc -c -o /dev/null -xassembler -Wa,-mrelax-relocations=yes - >+ echo ret >+ 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 '<bar>:' >+ grep -Eq 'lea \s*0x.+\(%rip\),%rax .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%rcx .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%rdx .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%rbx .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%rbp .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%rsi .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%rdi .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%r8 .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%r9 .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%r10 .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%r11 .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%r12 .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%r13 .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%r14 .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'lea \s*0x.+\(%rip\),%r15 .*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'call.*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ grep -Eq 'jmp.*<foo>' out/test/elf/x86_64/x86_64_relax/log >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.45 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_relax" end time: Dec 04 14:13 CST >"x86_64-x86_64_relax" time elapsed: 00:00:00 >---------------------------------------------------------- > >33/335 Testing: x86_64-x86_64_tls-large-tbss >33/335 Test: x86_64-x86_64_tls-large-tbss >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-large-tbss.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_tls-large-tbss" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-large-tbss.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.29 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_tls-large-tbss" end time: Dec 04 14:13 CST >"x86_64-x86_64_tls-large-tbss" time elapsed: 00:00:00 >---------------------------------------------------------- > >34/335 Testing: x86_64-x86_64_tls-ld-mcmodel-large >34/335 Test: x86_64-x86_64_tls-ld-mcmodel-large >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-ld-mcmodel-large.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_tls-ld-mcmodel-large" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-ld-mcmodel-large.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/a.o:(function get_foo_addr: .text+0x20): expected R_X86_64_PLT32 or R_X86_64_GOTPCRELX after R_X86_64_TLSLD >ld.lld: error: out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/a.o:(function get_bar_addr: .text+0x62): expected R_X86_64_PLT32 or R_X86_64_GOTPCRELX after R_X86_64_TLSLD >ld.lld: error: out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/a.o:(function main: .text+0xa9): expected R_X86_64_PLT32 or R_X86_64_GOTPCRELX after R_X86_64_TLSLD >ld.lld: error: out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/a.o:(function main: .text+0xcb): expected R_X86_64_PLT32 or R_X86_64_GOTPCRELX after R_X86_64_TLSLD >ld.lld: error: out/test/elf/x86_64/x86_64_tls-ld-mcmodel-large/a.o:(function main: .text+0xea): expected R_X86_64_PLT32 or R_X86_64_GOTPCRELX after R_X86_64_TLSLD >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 27 >++ code=1 >++ echo 'command failed: 27: $CC -B. -o $t/exe $t/a.o $t/b.o -mcmodel=large' >command failed: 27: $CC -B. -o $t/exe $t/a.o $t/b.o -mcmodel=large >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.29 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_tls-ld-mcmodel-large" end time: Dec 04 14:13 CST >"x86_64-x86_64_tls-ld-mcmodel-large" time elapsed: 00:00:00 >---------------------------------------------------------- > >20/335 Testing: x86_64-x86_64_note-property2 >20/335 Test: x86_64-x86_64_note-property2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_note-property2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_note-property2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_note-property2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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= >+ readelf -v >+ grep -q -E 'GNU readelf .+ (2\.3[6-9]|2\.[4-9]|[3-9])' >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_note-property2/a.o -xassembler-with-cpp - >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_note-property2/b.o -xassembler-with-cpp - >+ cat >+ cc -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' >+ readelf -n out/test/elf/x86_64/x86_64_note-property2/d.o >+ grep -q 'x86 ISA used: x86-64-baseline, x86-64-v2, x86-64-v3, x86-64-v4' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 1.08 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_note-property2" end time: Dec 04 14:13 CST >"x86_64-x86_64_note-property2" time elapsed: 00:00:01 >---------------------------------------------------------- > >32/335 Testing: x86_64-x86_64_tls-gd-to-ie >32/335 Test: x86_64-x86_64_tls-gd-to-ie >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-gd-to-ie.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_tls-gd-to-ie" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-gd-to-ie.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ out/test/elf/x86_64/x86_64_tls-gd-to-ie/exe1 >+ grep -q '1 2 3' >+ 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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 28 >++ code=1 >++ echo 'command failed: 28: $CC -B. -shared -o $t/d.so $t/a.o -Wl,-no-relax' >command failed: 28: $CC -B. -shared -o $t/d.so $t/a.o -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.49 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_tls-gd-to-ie" end time: Dec 04 14:13 CST >"x86_64-x86_64_tls-gd-to-ie" time elapsed: 00:00:00 >---------------------------------------------------------- > >31/335 Testing: x86_64-x86_64_tls-gd-mcmodel-large >31/335 Test: x86_64-x86_64_tls-gd-mcmodel-large >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-gd-mcmodel-large.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_tls-gd-mcmodel-large" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-gd-mcmodel-large.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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' >++ on_error 41 >++ code=1 >++ echo 'command failed: 41: grep -q '\''1 2 3 4 5 6'\''' >command failed: 41: grep -q '1 2 3 4 5 6' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.60 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_tls-gd-mcmodel-large" end time: Dec 04 14:13 CST >"x86_64-x86_64_tls-gd-mcmodel-large" time elapsed: 00:00:00 >---------------------------------------------------------- > >37/335 Testing: x86_64-x86_64_unique >37/335 Test: x86_64-x86_64_unique >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_unique.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_unique" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_unique.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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*' >+ grep -q ab >+ readelf -x .data.foo.1 out/test/elf/x86_64/x86_64_unique/exe >readelf: Warning: Section '.data.foo.1' was not dumped because it does not exist >++ on_error 25 >++ code=1 >++ echo 'command failed: 25: grep -q ab' >command failed: 25: grep -q ab >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.18 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_unique" end time: Dec 04 14:13 CST >"x86_64-x86_64_unique" time elapsed: 00:00:00 >---------------------------------------------------------- > >36/335 Testing: x86_64-x86_64_tlsdesc >36/335 Test: x86_64-x86_64_tlsdesc >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tlsdesc.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_tlsdesc" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tlsdesc.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tlsdesc.sh .sh >++ testname=x86_64_tlsdesc >++ echo -n 'Testing x86_64_tlsdesc ... ' >Testing x86_64_tlsdesc ... ++ t=out/test/elf/x86_64/x86_64_tlsdesc >++ mkdir -p out/test/elf/x86_64/x86_64_tlsdesc >+ supports_tlsdesc >+ '[' x86_64 = arm ']' >+ '[' -n -mtls-dialect=gnu2 ']' >+ cat >+ gcc -c -o out/test/elf/x86_64/x86_64_tlsdesc/a.o -xassembler - >+ cat >+ gcc -fPIC -c -o out/test/elf/x86_64/x86_64_tlsdesc/b.o -xc - -mtls-dialect=gnu2 >+ cc -B. -o out/test/elf/x86_64/x86_64_tlsdesc/exe1 out/test/elf/x86_64/x86_64_tlsdesc/a.o out/test/elf/x86_64/x86_64_tlsdesc/b.o >+ out/test/elf/x86_64/x86_64_tlsdesc/exe1 >+ grep -q 42 >+ cc -B. -o out/test/elf/x86_64/x86_64_tlsdesc/exe2 out/test/elf/x86_64/x86_64_tlsdesc/a.o out/test/elf/x86_64/x86_64_tlsdesc/b.o -Wl,-no-relax >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 38 >++ code=1 >++ echo 'command failed: 38: $CC -B. -o $t/exe2 $t/a.o $t/b.o -Wl,-no-relax' >command failed: 38: $CC -B. -o $t/exe2 $t/a.o $t/b.o -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.35 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_tlsdesc" end time: Dec 04 14:13 CST >"x86_64-x86_64_tlsdesc" time elapsed: 00:00:00 >---------------------------------------------------------- > >38/335 Testing: x86_64-x86_64_warn-execstack >38/335 Test: x86_64-x86_64_warn-execstack >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_warn-execstack.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_warn-execstack" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_warn-execstack.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -o out/test/elf/x86_64/x86_64_warn-execstack/b.o -c -xc - >+ cat >+ 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 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_warn-execstack" end time: Dec 04 14:13 CST >"x86_64-x86_64_warn-execstack" time elapsed: 00:00:00 >---------------------------------------------------------- > >35/335 Testing: x86_64-x86_64_tls-module-base >35/335 Test: x86_64-x86_64_tls-module-base >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-module-base.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_tls-module-base" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_tls-module-base.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q '^20 3$' >+ out/test/elf/x86_64/x86_64_tls-module-base/exe1 >+ 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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 38 >++ code=1 >++ echo 'command failed: 38: $CC -B. -o $t/exe2 $t/a.o $t/b.o $t/c.o -Wl,-no-relax' >command failed: 38: $CC -B. -o $t/exe2 $t/a.o $t/b.o $t/c.o -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.45 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_tls-module-base" end time: Dec 04 14:13 CST >"x86_64-x86_64_tls-module-base" time elapsed: 00:00:00 >---------------------------------------------------------- > >40/335 Testing: x86_64-x86_64_warn-textrel >40/335 Test: x86_64-x86_64_warn-textrel >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_warn-textrel.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_warn-textrel" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_warn-textrel.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ '[' x86_64 = x86_64 ']' >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_warn-textrel/a.o -x assembler - >+ cc -c -o out/test/elf/x86_64/x86_64_warn-textrel/b.o -fPIC -xc - >+ cat >+ cc -B. -o out/test/elf/x86_64/x86_64_warn-textrel/exe out/test/elf/x86_64/x86_64_warn-textrel/a.o out/test/elf/x86_64/x86_64_warn-textrel/b.o -pie -Wl,-warn-textrel >++ on_error 22 >++ code=1 >++ echo 'command failed: 22: $CC -B. -o $t/exe $t/a.o $t/b.o -pie -Wl,-warn-textrel >&$t/log' >command failed: 22: $CC -B. -o $t/exe $t/a.o $t/b.o -pie -Wl,-warn-textrel >&$t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_warn-textrel" end time: Dec 04 14:13 CST >"x86_64-x86_64_warn-textrel" time elapsed: 00:00:00 >---------------------------------------------------------- > >39/335 Testing: x86_64-x86_64_warn-shared-textrel >39/335 Test: x86_64-x86_64_warn-shared-textrel >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_warn-shared-textrel.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_warn-shared-textrel" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_warn-shared-textrel.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q musl >+ ldd --help >+ '[' x86_64 = x86_64 ']' >+ cc -c -o out/test/elf/x86_64/x86_64_warn-shared-textrel/a.o -x assembler - >+ cat >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_warn-shared-textrel/b.o -fPIC -xc - >+ cc -B. -shared -o out/test/elf/x86_64/x86_64_warn-shared-textrel/c.so out/test/elf/x86_64/x86_64_warn-shared-textrel/a.o out/test/elf/x86_64/x86_64_warn-shared-textrel/b.o -Wl,-warn-shared-textrel >++ on_error 22 >++ code=1 >++ echo 'command failed: 22: $CC -B. -shared -o $t/c.so $t/a.o $t/b.o -Wl,-warn-shared-textrel >&$t/log' >command failed: 22: $CC -B. -shared -o $t/c.so $t/a.o $t/b.o -Wl,-warn-shared-textrel >&$t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.28 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_warn-shared-textrel" end time: Dec 04 14:13 CST >"x86_64-x86_64_warn-shared-textrel" time elapsed: 00:00:00 >---------------------------------------------------------- > >41/335 Testing: x86_64-x86_64_z-ibt >41/335 Test: x86_64-x86_64_z-ibt >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_z-ibt.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_z-ibt" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_z-ibt.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ echo endbr64 >+ cc -o /dev/null -c -xassembler - >+ cat >+ cc -o out/test/elf/x86_64/x86_64_z-ibt/a.o -c -x assembler - >+ 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 >ld.lld: warning: unknown -z value: ibt >+ readelf --notes out/test/elf/x86_64/x86_64_z-ibt/exe >+ grep -qw IBT >++ on_error 18 >++ code=1 >++ echo 'command failed: 18: grep -qw IBT' >command failed: 18: grep -qw IBT >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.36 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_z-ibt" end time: Dec 04 14:13 CST >"x86_64-x86_64_z-ibt" time elapsed: 00:00:00 >---------------------------------------------------------- > >45/335 Testing: x86_64-abs-error >45/335 Test: x86_64-abs-error >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/abs-error.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-abs-error" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/abs-error.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -fno-PIC -c -o out/test/elf/x86_64/abs-error/b.o -xc - >+ 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 ><end of output> >Test time = 0.27 sec >---------------------------------------------------------- >Test Passed. >"x86_64-abs-error" end time: Dec 04 14:13 CST >"x86_64-abs-error" time elapsed: 00:00:00 >---------------------------------------------------------- > >44/335 Testing: x86_64-x86_64_z-text >44/335 Test: x86_64-x86_64_z-text >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_z-text.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_z-text" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_z-text.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ '[' x86_64 = x86_64 ']' >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_z-text/a.o -x assembler - >+ cat >+ cc -c -o out/test/elf/x86_64/x86_64_z-text/b.o -fPIC -xc - >+ cc -B. -pie -o out/test/elf/x86_64/x86_64_z-text/exe out/test/elf/x86_64/x86_64_z-text/a.o out/test/elf/x86_64/x86_64_z-text/b.o >+ out/test/elf/x86_64/x86_64_z-text/exe >+ grep -q 3 >++ on_error 37 >++ code=1 >++ echo 'command failed: 37: grep -q 3' >command failed: 37: grep -q 3 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Failed. >"x86_64-x86_64_z-text" end time: Dec 04 14:13 CST >"x86_64-x86_64_z-text" time elapsed: 00:00:00 >---------------------------------------------------------- > >42/335 Testing: x86_64-x86_64_z-ibtplt >42/335 Test: x86_64-x86_64_z-ibtplt >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_z-ibtplt.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_z-ibtplt" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_z-ibtplt.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: warning: unknown -z value: 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 >ld.lld: warning: unknown -z value: ibtplt >+ out/test/elf/x86_64/x86_64_z-ibtplt/exe >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.39 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_z-ibtplt" end time: Dec 04 14:13 CST >"x86_64-x86_64_z-ibtplt" time elapsed: 00:00:00 >---------------------------------------------------------- > >43/335 Testing: x86_64-x86_64_z-shstk >43/335 Test: x86_64-x86_64_z-shstk >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_z-shstk.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_z-shstk" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_z-shstk.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ echo endbr64 >+ cc -o /dev/null -c -xassembler - >+ 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 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_z-shstk" end time: Dec 04 14:13 CST >"x86_64-x86_64_z-shstk" time elapsed: 00:00:00 >---------------------------------------------------------- > >46/335 Testing: x86_64-absolute-symbols >46/335 Test: x86_64-absolute-symbols >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/absolute-symbols.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-absolute-symbols" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/absolute-symbols.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -o out/test/elf/x86_64/absolute-symbols/b.o -c -fno-PIC -xc - >+ cat >+ 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 ><end of output> >Test time = 0.34 sec >---------------------------------------------------------- >Test Passed. >"x86_64-absolute-symbols" end time: Dec 04 14:13 CST >"x86_64-absolute-symbols" time elapsed: 00:00:00 >---------------------------------------------------------- > >53/335 Testing: x86_64-auxiliary >53/335 Test: x86_64-auxiliary >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/auxiliary.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-auxiliary" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/auxiliary.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.14 sec >---------------------------------------------------------- >Test Passed. >"x86_64-auxiliary" end time: Dec 04 14:13 CST >"x86_64-auxiliary" time elapsed: 00:00:00 >---------------------------------------------------------- > >47/335 Testing: x86_64-allow-multiple-definition >47/335 Test: x86_64-allow-multiple-definition >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/allow-multiple-definition.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-allow-multiple-definition" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/allow-multiple-definition.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -c -o out/test/elf/x86_64/allow-multiple-definition/b.o -xc - >+ echo 'int main() { return 1; }' >+ 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 ><end of output> >Test time = 0.47 sec >---------------------------------------------------------- >Test Passed. >"x86_64-allow-multiple-definition" end time: Dec 04 14:13 CST >"x86_64-allow-multiple-definition" time elapsed: 00:00:00 >---------------------------------------------------------- > >48/335 Testing: x86_64-ar-alignment >48/335 Test: x86_64-ar-alignment >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ar-alignment.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ar-alignment" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ar-alignment.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.42 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ar-alignment" end time: Dec 04 14:13 CST >"x86_64-ar-alignment" time elapsed: 00:00:00 >---------------------------------------------------------- > >49/335 Testing: x86_64-as-needed-dso >49/335 Test: x86_64-as-needed-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/as-needed-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-as-needed-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/as-needed-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -o out/test/elf/x86_64/as-needed-dso/a.o -c -xc - >+ 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 ><end of output> >Test time = 0.51 sec >---------------------------------------------------------- >Test Passed. >"x86_64-as-needed-dso" end time: Dec 04 14:13 CST >"x86_64-as-needed-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >50/335 Testing: x86_64-as-needed-dso2 >50/335 Test: x86_64-as-needed-dso2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/as-needed-dso2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-as-needed-dso2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/as-needed-dso2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -xc -c -o out/test/elf/x86_64/as-needed-dso2/c.o - >+ 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 ><end of output> >Test time = 0.58 sec >---------------------------------------------------------- >Test Passed. >"x86_64-as-needed-dso2" end time: Dec 04 14:13 CST >"x86_64-as-needed-dso2" time elapsed: 00:00:00 >---------------------------------------------------------- > >57/335 Testing: x86_64-bug178 >57/335 Test: x86_64-bug178 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/bug178.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-bug178" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/bug178.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.14 sec >---------------------------------------------------------- >Test Passed. >"x86_64-bug178" end time: Dec 04 14:13 CST >"x86_64-bug178" time elapsed: 00:00:00 >---------------------------------------------------------- > >55/335 Testing: x86_64-bsymbolic-functions >55/335 Test: x86_64-bsymbolic-functions >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/bsymbolic-functions.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-bsymbolic-functions" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/bsymbolic-functions.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -c -o out/test/elf/x86_64/bsymbolic-functions/a.o -fPIC -xc - >+ 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 >+ out/test/elf/x86_64/bsymbolic-functions/exe >+ grep -q '3 3 0' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.38 sec >---------------------------------------------------------- >Test Passed. >"x86_64-bsymbolic-functions" end time: Dec 04 14:13 CST >"x86_64-bsymbolic-functions" time elapsed: 00:00:00 >---------------------------------------------------------- > >52/335 Testing: x86_64-as-needed >52/335 Test: x86_64-as-needed >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/as-needed.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-as-needed" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/as-needed.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ 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 - >+ 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 ><end of output> >Test time = 0.66 sec >---------------------------------------------------------- >Test Passed. >"x86_64-as-needed" end time: Dec 04 14:13 CST >"x86_64-as-needed" time elapsed: 00:00:00 >---------------------------------------------------------- > >51/335 Testing: x86_64-as-needed-weak >51/335 Test: x86_64-as-needed-weak >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/as-needed-weak.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-as-needed-weak" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/as-needed-weak.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ 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 >+ 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 ><end of output> >Test time = 0.68 sec >---------------------------------------------------------- >Test Passed. >"x86_64-as-needed-weak" end time: Dec 04 14:13 CST >"x86_64-as-needed-weak" time elapsed: 00:00:00 >---------------------------------------------------------- > >54/335 Testing: x86_64-bno-symbolic >54/335 Test: x86_64-bno-symbolic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/bno-symbolic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-bno-symbolic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/bno-symbolic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-bno-symbolic" end time: Dec 04 14:13 CST >"x86_64-bno-symbolic" time elapsed: 00:00:00 >---------------------------------------------------------- > >56/335 Testing: x86_64-bsymbolic >56/335 Test: x86_64-bsymbolic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/bsymbolic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-bsymbolic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/bsymbolic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -c -o out/test/elf/x86_64/bsymbolic/c.o -xc - -fno-PIE >+ 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 >+ out/test/elf/x86_64/bsymbolic/exe >+ grep -q '3 4' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Passed. >"x86_64-bsymbolic" end time: Dec 04 14:13 CST >"x86_64-bsymbolic" time elapsed: 00:00:00 >---------------------------------------------------------- > >60/335 Testing: x86_64-cmdline >60/335 Test: x86_64-cmdline >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/cmdline.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-cmdline" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/cmdline.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.12 sec >---------------------------------------------------------- >Test Passed. >"x86_64-cmdline" end time: Dec 04 14:13 CST >"x86_64-cmdline" time elapsed: 00:00:00 >---------------------------------------------------------- > >62/335 Testing: x86_64-comment >62/335 Test: x86_64-comment >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/comment.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-comment" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/comment.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ readelf -p .comment out/test/elf/x86_64/comment/exe >+ grep -q '[ms]old' >++ on_error 9 >++ code=1 >++ echo 'command failed: 9: grep -q '\''[ms]old'\''' >command failed: 9: grep -q '[ms]old' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Failed. >"x86_64-comment" end time: Dec 04 14:13 CST >"x86_64-comment" time elapsed: 00:00:00 >---------------------------------------------------------- > >61/335 Testing: x86_64-color-diagnostics >61/335 Test: x86_64-color-diagnostics >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/color-diagnostics.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-color-diagnostics" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/color-diagnostics.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/color-diagnostics/a.o -c -xc - >+ ./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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-color-diagnostics" end time: Dec 04 14:13 CST >"x86_64-color-diagnostics" time elapsed: 00:00:00 >---------------------------------------------------------- > >58/335 Testing: x86_64-build-id >58/335 Test: x86_64-build-id >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/build-id.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-build-id" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/build-id.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ readelf -n out/test/elf/x86_64/build-id/exe >+ grep -qv '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=uuid >+ readelf -nW out/test/elf/x86_64/build-id/exe >+ grep -Eq 'Build ID: ............4...[89abcdef]' >++ on_error 10 >++ code=1 >++ echo 'command failed: 10: grep -Eq '\''Build ID: ............4...[89abcdef]'\''' >command failed: 10: grep -Eq 'Build ID: ............4...[89abcdef]' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Failed. >"x86_64-build-id" end time: Dec 04 14:13 CST >"x86_64-build-id" time elapsed: 00:00:00 >---------------------------------------------------------- > >59/335 Testing: x86_64-canonical-plt >59/335 Test: x86_64-canonical-plt >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/canonical-plt.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-canonical-plt" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/canonical-plt.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ cat >+ cc -o out/test/elf/x86_64/canonical-plt/a.so -fPIC -shared -xc - >+ 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 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-canonical-plt" end time: Dec 04 14:13 CST >"x86_64-canonical-plt" time elapsed: 00:00:00 >---------------------------------------------------------- > >65/335 Testing: x86_64-common >65/335 Test: x86_64-common >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-common" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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_error 26 >++ code=1 >++ echo 'command failed: 26: grep -q '\''.common .*NOBITS'\'' $t/log' >command failed: 26: grep -q '.common .*NOBITS' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.31 sec >---------------------------------------------------------- >Test Failed. >"x86_64-common" end time: Dec 04 14:13 CST >"x86_64-common" time elapsed: 00:00:00 >---------------------------------------------------------- > >63/335 Testing: x86_64-common-archive >63/335 Test: x86_64-common-archive >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common-archive.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-common-archive" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common-archive.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -fcommon -xc -c -o out/test/elf/x86_64/common-archive/a.o - >+ 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' >++ on_error 34 >++ code=1 >++ echo 'command failed: 34: grep -q '\''5 0 0 -1'\''' >command failed: 34: grep -q '5 0 0 -1' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Failed. >"x86_64-common-archive" end time: Dec 04 14:13 CST >"x86_64-common-archive" time elapsed: 00:00:00 >---------------------------------------------------------- > >66/335 Testing: x86_64-compress-debug-sections-zstd >66/335 Test: x86_64-compress-debug-sections-zstd >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/compress-debug-sections-zstd.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-compress-debug-sections-zstd" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/compress-debug-sections-zstd.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -c -g -o out/test/elf/x86_64/compress-debug-sections-zstd/a.o -xc - >+ 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 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Passed. >"x86_64-compress-debug-sections-zstd" end time: Dec 04 14:13 CST >"x86_64-compress-debug-sections-zstd" time elapsed: 00:00:00 >---------------------------------------------------------- > >64/335 Testing: x86_64-common-ref >64/335 Test: x86_64-common-ref >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common-ref.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-common-ref" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common-ref.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -fcommon -xc -c -o out/test/elf/x86_64/common-ref/d.o - >+ 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_error 31 >++ code=1 >++ echo 'command failed: 31: grep -q 5' >command failed: 31: grep -q 5 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.44 sec >---------------------------------------------------------- >Test Failed. >"x86_64-common-ref" end time: Dec 04 14:13 CST >"x86_64-common-ref" time elapsed: 00:00:00 >---------------------------------------------------------- > >68/335 Testing: x86_64-copyrel-protected >68/335 Test: x86_64-copyrel-protected >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel-protected.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-copyrel-protected" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel-protected.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -shared -o out/test/elf/x86_64/copyrel-protected/b.so -xc - >+ 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_error 22 >++ code=1 >++ echo 'command failed: 22: grep -Fq '\''cannot make copy relocation for protected symbol'\'' $t/log' >command failed: 22: grep -Fq 'cannot make copy relocation for protected symbol' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Failed. >"x86_64-copyrel-protected" end time: Dec 04 14:13 CST >"x86_64-copyrel-protected" time elapsed: 00:00:00 >---------------------------------------------------------- > >72/335 Testing: x86_64-ctors-in-init-array >72/335 Test: x86_64-ctors-in-init-array >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ctors-in-init-array.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ctors-in-init-array" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ctors-in-init-array.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ctors-in-init-array.sh .sh >++ testname=ctors-in-init-array >++ echo -n 'Testing ctors-in-init-array ... ' >Testing ctors-in-init-array ... ++ t=out/test/elf/x86_64/ctors-in-init-array >++ mkdir -p out/test/elf/x86_64/ctors-in-init-array >+ cat >+ cc -o out/test/elf/x86_64/ctors-in-init-array/a.o -c -xc - >+ cat >+ cc -o out/test/elf/x86_64/ctors-in-init-array/b.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/ctors-in-init-array/exe out/test/elf/x86_64/ctors-in-init-array/a.o out/test/elf/x86_64/ctors-in-init-array/b.o >+ out/test/elf/x86_64/ctors-in-init-array/exe >+ grep -q 'ctor1 init1 ctor2 ctor3 ctor4 init2 fini2 dtor1 dtor2 dtor3 fini1 dtor4' >++ on_error 55 >++ code=1 >++ echo 'command failed: 55: grep -q '\''ctor1 init1 ctor2 ctor3 ctor4 init2 fini2 dtor1 dtor2 dtor3 fini1 dtor4'\''' >command failed: 55: grep -q 'ctor1 init1 ctor2 ctor3 ctor4 init2 fini2 dtor1 dtor2 dtor3 fini1 dtor4' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.32 sec >---------------------------------------------------------- >Test Failed. >"x86_64-ctors-in-init-array" end time: Dec 04 14:13 CST >"x86_64-ctors-in-init-array" time elapsed: 00:00:00 >---------------------------------------------------------- > >69/335 Testing: x86_64-copyrel-relro >69/335 Test: x86_64-copyrel-relro >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel-relro.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-copyrel-relro" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel-relro.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ out/test/elf/x86_64/copyrel-relro/exe >+ grep -q '^sigsegv 0 1$' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-copyrel-relro" end time: Dec 04 14:13 CST >"x86_64-copyrel-relro" time elapsed: 00:00:00 >---------------------------------------------------------- > >73/335 Testing: x86_64-debug-macro-section >73/335 Test: x86_64-debug-macro-section >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/debug-macro-section.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-debug-macro-section" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/debug-macro-section.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Passed. >"x86_64-debug-macro-section" end time: Dec 04 14:13 CST >"x86_64-debug-macro-section" time elapsed: 00:00:00 >---------------------------------------------------------- > >70/335 Testing: x86_64-copyrel-relro2 >70/335 Test: x86_64-copyrel-relro2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel-relro2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-copyrel-relro2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel-relro2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 -B. -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 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-copyrel-relro2" end time: Dec 04 14:13 CST >"x86_64-copyrel-relro2" time elapsed: 00:00:00 >---------------------------------------------------------- > >74/335 Testing: x86_64-default-symver >74/335 Test: x86_64-default-symver >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/default-symver.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-default-symver" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/default-symver.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-default-symver' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 8 >++ code=1 >++ echo 'command failed: 8: $CC -B. -o $t/b.so -shared $t/a.o -Wl,-default-symver' >command failed: 8: $CC -B. -o $t/b.so -shared $t/a.o -Wl,-default-symver >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.19 sec >---------------------------------------------------------- >Test Failed. >"x86_64-default-symver" end time: Dec 04 14:13 CST >"x86_64-default-symver" time elapsed: 00:00:00 >---------------------------------------------------------- > >71/335 Testing: x86_64-copyrel >71/335 Test: x86_64-copyrel >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-copyrel" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -fPIC -o out/test/elf/x86_64/copyrel/c.o -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 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-copyrel" end time: Dec 04 14:13 CST >"x86_64-copyrel" time elapsed: 00:00:00 >---------------------------------------------------------- > >67/335 Testing: x86_64-copyrel-alignment >67/335 Test: x86_64-copyrel-alignment >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel-alignment.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-copyrel-alignment" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/copyrel-alignment.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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* ]] >+ cat >+ cc -fPIC -shared -o out/test/elf/x86_64/copyrel-alignment/a.so -xc - >+ 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$' >++ on_error 29 >++ code=1 >++ echo 'command failed: 29: grep -q '\''\.copyrel.* 32$'\''' >command failed: 29: grep -q '\.copyrel.* 32$' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.70 sec >---------------------------------------------------------- >Test Failed. >"x86_64-copyrel-alignment" end time: Dec 04 14:13 CST >"x86_64-copyrel-alignment" time elapsed: 00:00:00 >---------------------------------------------------------- > >76/335 Testing: x86_64-defsym-missing-symbol >76/335 Test: x86_64-defsym-missing-symbol >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/defsym-missing-symbol.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-defsym-missing-symbol" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/defsym-missing-symbol.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/defsym-missing-symbol.sh .sh >++ testname=defsym-missing-symbol >++ echo -n 'Testing defsym-missing-symbol ... ' >Testing defsym-missing-symbol ... ++ t=out/test/elf/x86_64/defsym-missing-symbol >++ mkdir -p out/test/elf/x86_64/defsym-missing-symbol >+ cat >+ cc -o out/test/elf/x86_64/defsym-missing-symbol/a.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/defsym-missing-symbol/exe out/test/elf/x86_64/defsym-missing-symbol/a.o -Wl,-defsym=foo=bar >+ grep -q 'undefined symbol: bar' out/test/elf/x86_64/defsym-missing-symbol/log >++ on_error 9 >++ code=1 >++ echo 'command failed: 9: grep -q '\''undefined symbol: bar'\'' $t/log' >command failed: 9: grep -q 'undefined symbol: bar' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.20 sec >---------------------------------------------------------- >Test Failed. >"x86_64-defsym-missing-symbol" end time: Dec 04 14:13 CST >"x86_64-defsym-missing-symbol" time elapsed: 00:00:00 >---------------------------------------------------------- > >77/335 Testing: x86_64-defsym >77/335 Test: x86_64-defsym >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/defsym.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-defsym" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/defsym.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -fPIC -o out/test/elf/x86_64/defsym/a.o -c -xc - >+ 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 >+ out/test/elf/x86_64/defsym/exe >+ grep -q '^Hello 0x10 0x2000$' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-defsym" end time: Dec 04 14:13 CST >"x86_64-defsym" time elapsed: 00:00:00 >---------------------------------------------------------- > >78/335 Testing: x86_64-defsym2 >78/335 Test: x86_64-defsym2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/defsym2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-defsym2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/defsym2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-defsym2" end time: Dec 04 14:13 CST >"x86_64-defsym2" time elapsed: 00:00:00 >---------------------------------------------------------- > >79/335 Testing: x86_64-demangle-rust >79/335 Test: x86_64-demangle-rust >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/demangle-rust.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-demangle-rust" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/demangle-rust.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -c -o out/test/elf/x86_64/demangle-rust/a.o -xc - >+ cat >+ cc -B. -o out/test/elf/x86_64/demangle-rust/exe out/test/elf/x86_64/demangle-rust/a.o >+ grep -Fq '<core::slice::Iter<u8> as core::iter::iterator::Iterator>::rposition::<core::slice::memchr::memrchr::{closure#1}>::{closure#0}' out/test/elf/x86_64/demangle-rust/log >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-demangle-rust" end time: Dec 04 14:13 CST >"x86_64-demangle-rust" time elapsed: 00:00:00 >---------------------------------------------------------- > >81/335 Testing: x86_64-dependency-file >81/335 Test: x86_64-dependency-file >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dependency-file.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dependency-file" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dependency-file.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-dependency-file=out/test/elf/x86_64/dependency-file/dep', did you mean '--dependency-file=out/test/elf/x86_64/dependency-file/dep' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 11 >++ code=1 >++ echo 'command failed: 11: $CC -B. -o $t/exe $t/a.o -Wl,-dependency-file=$t/dep' >command failed: 11: $CC -B. -o $t/exe $t/a.o -Wl,-dependency-file=$t/dep >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.19 sec >---------------------------------------------------------- >Test Failed. >"x86_64-dependency-file" end time: Dec 04 14:13 CST >"x86_64-dependency-file" time elapsed: 00:00:00 >---------------------------------------------------------- > >28/335 Testing: x86_64-x86_64_reloc >28/335 Test: x86_64-x86_64_reloc >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_reloc.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-x86_64_reloc" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/x86_64_reloc.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q '^56$' >+ out/test/elf/x86_64/x86_64_reloc/exe >+ 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 ><end of output> >Test time = 2.98 sec >---------------------------------------------------------- >Test Passed. >"x86_64-x86_64_reloc" end time: Dec 04 14:13 CST >"x86_64-x86_64_reloc" time elapsed: 00:00:02 >---------------------------------------------------------- > >75/335 Testing: x86_64-defsym-lto >75/335 Test: x86_64-defsym-lto >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/defsym-lto.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-defsym-lto" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/defsym-lto.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.44 sec >---------------------------------------------------------- >Test Passed. >"x86_64-defsym-lto" end time: Dec 04 14:13 CST >"x86_64-defsym-lto" time elapsed: 00:00:00 >---------------------------------------------------------- > >83/335 Testing: x86_64-discard >83/335 Test: x86_64-discard >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/discard.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-discard" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/discard.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Passed. >"x86_64-discard" end time: Dec 04 14:13 CST >"x86_64-discard" time elapsed: 00:00:00 >---------------------------------------------------------- > >88/335 Testing: x86_64-duplicate-error >88/335 Test: x86_64-duplicate-error >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/duplicate-error.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-duplicate-error" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/duplicate-error.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/duplicate-error/a.o -c -x assembler - >+ ./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 ><end of output> >Test time = 0.12 sec >---------------------------------------------------------- >Test Passed. >"x86_64-duplicate-error" end time: Dec 04 14:13 CST >"x86_64-duplicate-error" time elapsed: 00:00:00 >---------------------------------------------------------- > >82/335 Testing: x86_64-disable-new-dtags >82/335 Test: x86_64-disable-new-dtags >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/disable-new-dtags.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-disable-new-dtags" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/disable-new-dtags.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/disable-new-dtags/a.o -c -xc -fPIC - >+ 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 ><end of output> >Test time = 0.46 sec >---------------------------------------------------------- >Test Passed. >"x86_64-disable-new-dtags" end time: Dec 04 14:13 CST >"x86_64-disable-new-dtags" time elapsed: 00:00:00 >---------------------------------------------------------- > >80/335 Testing: x86_64-demangle >80/335 Test: x86_64-demangle >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/demangle.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-demangle" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/demangle.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -c -o out/test/elf/x86_64/demangle/b.o -xc - >+ 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 ><end of output> >Test time = 0.63 sec >---------------------------------------------------------- >Test Passed. >"x86_64-demangle" end time: Dec 04 14:13 CST >"x86_64-demangle" time elapsed: 00:00:00 >---------------------------------------------------------- > >90/335 Testing: x86_64-dynamic-linker >90/335 Test: x86_64-dynamic-linker >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-linker.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dynamic-linker" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-linker.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -c -o out/test/elf/x86_64/dynamic-linker/a.o -x assembler - >+ ./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 ><end of output> >Test time = 0.17 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dynamic-linker" end time: Dec 04 14:13 CST >"x86_64-dynamic-linker" time elapsed: 00:00:00 >---------------------------------------------------------- > >84/335 Testing: x86_64-dso-undef >84/335 Test: x86_64-dso-undef >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dso-undef.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dso-undef" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dso-undef.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ readelf --dyn-syms out/test/elf/x86_64/dso-undef/exe >+ grep -q ' foo$' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.48 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dso-undef" end time: Dec 04 14:13 CST >"x86_64-dso-undef" time elapsed: 00:00:00 >---------------------------------------------------------- > >87/335 Testing: x86_64-duplicate-error-archive >87/335 Test: x86_64-duplicate-error-archive >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/duplicate-error-archive.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-duplicate-error-archive" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/duplicate-error-archive.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/duplicate-error-archive/a.o -c -xc - >+ 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 >+ cat >+ cc -o out/test/elf/x86_64/duplicate-error-archive/c.o -c -xc - >+ 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 ><end of output> >Test time = 0.42 sec >---------------------------------------------------------- >Test Passed. >"x86_64-duplicate-error-archive" end time: Dec 04 14:13 CST >"x86_64-duplicate-error-archive" time elapsed: 00:00:00 >---------------------------------------------------------- > >85/335 Testing: x86_64-dt-init >85/335 Test: x86_64-dt-init >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dt-init.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dt-init" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dt-init.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -c -fPIC -o out/test/elf/x86_64/dt-init/b.o -xc - >+ cat >+ 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 ><end of output> >Test time = 0.62 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dt-init" end time: Dec 04 14:13 CST >"x86_64-dt-init" time elapsed: 00:00:00 >---------------------------------------------------------- > >89/335 Testing: x86_64-dynamic-dt-debug >89/335 Test: x86_64-dynamic-dt-debug >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-dt-debug.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dynamic-dt-debug" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-dt-debug.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/dynamic-dt-debug/a.o -c -xc - >+ 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 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dynamic-dt-debug" end time: Dec 04 14:13 CST >"x86_64-dynamic-dt-debug" time elapsed: 00:00:00 >---------------------------------------------------------- > >95/335 Testing: x86_64-dynamic >95/335 Test: x86_64-dynamic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dynamic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dynamic" end time: Dec 04 14:13 CST >"x86_64-dynamic" time elapsed: 00:00:00 >---------------------------------------------------------- > >86/335 Testing: x86_64-dt-needed >86/335 Test: x86_64-dt-needed >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dt-needed.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dt-needed" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dt-needed.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 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 -L out/test/elf/x86_64/dt-needed -lfoo >+ grep -Fq 'Shared library: [libfoo]' >+ readelf --dynamic out/test/elf/x86_64/dt-needed/exe >+ 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 ><end of output> >Test time = 0.82 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dt-needed" end time: Dec 04 14:13 CST >"x86_64-dt-needed" time elapsed: 00:00:00 >---------------------------------------------------------- > >96/335 Testing: x86_64-emit-relocs-cpp >96/335 Test: x86_64-emit-relocs-cpp >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/emit-relocs-cpp.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-emit-relocs-cpp" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/emit-relocs-cpp.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Passed. >"x86_64-emit-relocs-cpp" end time: Dec 04 14:13 CST >"x86_64-emit-relocs-cpp" time elapsed: 00:00:00 >---------------------------------------------------------- > >93/335 Testing: x86_64-dynamic-list3 >93/335 Test: x86_64-dynamic-list3 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-list3.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dynamic-list3" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-list3.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dynamic-list3" end time: Dec 04 14:13 CST >"x86_64-dynamic-list3" time elapsed: 00:00:00 >---------------------------------------------------------- > >92/335 Testing: x86_64-dynamic-list2 >92/335 Test: x86_64-dynamic-list2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-list2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dynamic-list2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-list2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/dynamic-list2/a.o -c -xc - >+ 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 ><end of output> >Test time = 0.55 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dynamic-list2" end time: Dec 04 14:13 CST >"x86_64-dynamic-list2" time elapsed: 00:00:00 >---------------------------------------------------------- > >91/335 Testing: x86_64-dynamic-list >91/335 Test: x86_64-dynamic-list >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-list.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dynamic-list" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-list.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.62 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dynamic-list" end time: Dec 04 14:13 CST >"x86_64-dynamic-list" time elapsed: 00:00:00 >---------------------------------------------------------- > >100/335 Testing: x86_64-empty-input >100/335 Test: x86_64-empty-input >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/empty-input.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-empty-input" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/empty-input.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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_error 7 >++ code=1 >++ echo 'command failed: 7: grep -q '\''unknown file type'\'' $t/log' >command failed: 7: grep -q 'unknown file type' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.16 sec >---------------------------------------------------------- >Test Failed. >"x86_64-empty-input" end time: Dec 04 14:13 CST >"x86_64-empty-input" time elapsed: 00:00:00 >---------------------------------------------------------- > >98/335 Testing: x86_64-emit-relocs >98/335 Test: x86_64-emit-relocs >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/emit-relocs.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-emit-relocs" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/emit-relocs.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.26 sec >---------------------------------------------------------- >Test Passed. >"x86_64-emit-relocs" end time: Dec 04 14:13 CST >"x86_64-emit-relocs" time elapsed: 00:00:00 >---------------------------------------------------------- > >99/335 Testing: x86_64-empty-file >99/335 Test: x86_64-empty-file >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/empty-file.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-empty-file" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/empty-file.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: out/test/elf/x86_64/empty-file/b.script:1: unexpected EOF >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 14 >++ code=1 >++ echo 'command failed: 14: $CC -B. -o $t/exe $t/a.o -Wl,--version-script,$t/b.script' >command failed: 14: $CC -B. -o $t/exe $t/a.o -Wl,--version-script,$t/b.script >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Failed. >"x86_64-empty-file" end time: Dec 04 14:13 CST >"x86_64-empty-file" time elapsed: 00:00:00 >---------------------------------------------------------- > >101/335 Testing: x86_64-empty-version >101/335 Test: x86_64-empty-version >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/empty-version.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-empty-version" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/empty-version.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: out/test/elf/x86_64/empty-version/a.o: symbol bar2@@ has undefined version >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 12 >++ code=1 >++ echo 'command failed: 12: $CC -B. -shared -o $t/b.so $t/a.o' >command failed: 12: $CC -B. -shared -o $t/b.so $t/a.o >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.21 sec >---------------------------------------------------------- >Test Failed. >"x86_64-empty-version" end time: Dec 04 14:13 CST >"x86_64-empty-version" time elapsed: 00:00:00 >---------------------------------------------------------- > >94/335 Testing: x86_64-dynamic-list4 >94/335 Test: x86_64-dynamic-list4 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-list4.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-dynamic-list4" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/dynamic-list4.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.75 sec >---------------------------------------------------------- >Test Passed. >"x86_64-dynamic-list4" end time: Dec 04 14:13 CST >"x86_64-dynamic-list4" time elapsed: 00:00:00 >---------------------------------------------------------- > >106/335 Testing: x86_64-exclude-libs2 >106/335 Test: x86_64-exclude-libs2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exclude-libs2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-exclude-libs2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exclude-libs2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Passed. >"x86_64-exclude-libs2" end time: Dec 04 14:13 CST >"x86_64-exclude-libs2" time elapsed: 00:00:00 >---------------------------------------------------------- > >107/335 Testing: x86_64-exclude-libs3 >107/335 Test: x86_64-exclude-libs3 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exclude-libs3.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-exclude-libs3" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exclude-libs3.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Passed. >"x86_64-exclude-libs3" end time: Dec 04 14:13 CST >"x86_64-exclude-libs3" time elapsed: 00:00:00 >---------------------------------------------------------- > >102/335 Testing: x86_64-entry >102/335 Test: x86_64-entry >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/entry.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-entry" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/entry.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.42 sec >---------------------------------------------------------- >Test Passed. >"x86_64-entry" end time: Dec 04 14:13 CST >"x86_64-entry" time elapsed: 00:00:00 >---------------------------------------------------------- > >109/335 Testing: x86_64-execute-only >109/335 Test: x86_64-execute-only >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/execute-only.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-execute-only" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/execute-only.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: --execute-only is only supported on AArch64 targets >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 17 >++ code=1 >++ echo 'command failed: 17: $CC -B. -o $t/exe $t/a.o -Wl,--execute-only' >command failed: 17: $CC -B. -o $t/exe $t/a.o -Wl,--execute-only >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.20 sec >---------------------------------------------------------- >Test Failed. >"x86_64-execute-only" end time: Dec 04 14:13 CST >"x86_64-execute-only" time elapsed: 00:00:00 >---------------------------------------------------------- > >108/335 Testing: x86_64-execstack >108/335 Test: x86_64-execstack >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/execstack.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-execstack" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/execstack.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q 'GNU_STACK.* RWE ' >+ readelf --segments -W out/test/elf/x86_64/execstack/exe >+ 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 >+ readelf --segments -W out/test/elf/x86_64/execstack/exe >+ grep -q 'GNU_STACK.* RW ' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.50 sec >---------------------------------------------------------- >Test Passed. >"x86_64-execstack" end time: Dec 04 14:13 CST >"x86_64-execstack" time elapsed: 00:00:00 >---------------------------------------------------------- > >110/335 Testing: x86_64-export-dynamic >110/335 Test: x86_64-export-dynamic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/export-dynamic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-export-dynamic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/export-dynamic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.34 sec >---------------------------------------------------------- >Test Passed. >"x86_64-export-dynamic" end time: Dec 04 14:13 CST >"x86_64-export-dynamic" time elapsed: 00:00:00 >---------------------------------------------------------- > >114/335 Testing: x86_64-filter >114/335 Test: x86_64-filter >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/filter.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-filter" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/filter.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/filter/a.o -c -x assembler - >+ ./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 ><end of output> >Test time = 0.15 sec >---------------------------------------------------------- >Test Passed. >"x86_64-filter" end time: Dec 04 14:13 CST >"x86_64-filter" time elapsed: 00:00:00 >---------------------------------------------------------- > >111/335 Testing: x86_64-export-from-exe >111/335 Test: x86_64-export-from-exe >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/export-from-exe.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-export-from-exe" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/export-from-exe.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.49 sec >---------------------------------------------------------- >Test Passed. >"x86_64-export-from-exe" end time: Dec 04 14:13 CST >"x86_64-export-from-exe" time elapsed: 00:00:00 >---------------------------------------------------------- > >103/335 Testing: x86_64-exception-multiple-ehframe >103/335 Test: x86_64-exception-multiple-ehframe >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exception-multiple-ehframe.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-exception-multiple-ehframe" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exception-multiple-ehframe.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exception-multiple-ehframe.sh .sh >++ testname=exception-multiple-ehframe >++ echo -n 'Testing exception-multiple-ehframe ... ' >Testing exception-multiple-ehframe ... ++ t=out/test/elf/x86_64/exception-multiple-ehframe >++ mkdir -p out/test/elf/x86_64/exception-multiple-ehframe >+ nm mold >+ grep -q __tsan_init >+ '[' x86_64 = m68k ']' >+ '[' x86_64 = sh4 ']' >+ cat >+ c++ -o out/test/elf/x86_64/exception-multiple-ehframe/a.o -c -xc++ - >+ cat >+ c++ -o out/test/elf/x86_64/exception-multiple-ehframe/b.o -c -xc++ - >+ objcopy --rename-section .eh_frame=.eh_frame2 out/test/elf/x86_64/exception-multiple-ehframe/a.o >+ ./mold -r -o out/test/elf/x86_64/exception-multiple-ehframe/c.o out/test/elf/x86_64/exception-multiple-ehframe/a.o out/test/elf/x86_64/exception-multiple-ehframe/b.o >+ objcopy --rename-section .eh_frame2=.eh_frame out/test/elf/x86_64/exception-multiple-ehframe/c.o >+ cat >+ c++ -o out/test/elf/x86_64/exception-multiple-ehframe/d.o -c -xc++ - >+ c++ -B. -o out/test/elf/x86_64/exception-multiple-ehframe/exe1 out/test/elf/x86_64/exception-multiple-ehframe/d.o out/test/elf/x86_64/exception-multiple-ehframe/c.o >+ out/test/elf/x86_64/exception-multiple-ehframe/exe1 >1 3 >+ out/test/elf/x86_64/exception-multiple-ehframe/exe1 >+ grep -q '^1 3$' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.91 sec >---------------------------------------------------------- >Test Passed. >"x86_64-exception-multiple-ehframe" end time: Dec 04 14:13 CST >"x86_64-exception-multiple-ehframe" time elapsed: 00:00:00 >---------------------------------------------------------- > >105/335 Testing: x86_64-exclude-libs >105/335 Test: x86_64-exclude-libs >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exclude-libs.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-exclude-libs" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exclude-libs.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -fPIC -xc -c -o out/test/elf/x86_64/exclude-libs/a.o - >+ cat >+ 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 ><end of output> >Test time = 0.87 sec >---------------------------------------------------------- >Test Passed. >"x86_64-exclude-libs" end time: Dec 04 14:13 CST >"x86_64-exclude-libs" time elapsed: 00:00:00 >---------------------------------------------------------- > >112/335 Testing: x86_64-fatal-warnings >112/335 Test: x86_64-fatal-warnings >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/fatal-warnings.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-fatal-warnings" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/fatal-warnings.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -fcommon -xc -c -o out/test/elf/x86_64/fatal-warnings/b.o - >+ cat >+ 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 ><end of output> >Test time = 0.39 sec >---------------------------------------------------------- >Test Passed. >"x86_64-fatal-warnings" end time: Dec 04 14:13 CST >"x86_64-fatal-warnings" time elapsed: 00:00:00 >---------------------------------------------------------- > >118/335 Testing: x86_64-gdb-index-empty >118/335 Test: x86_64-gdb-index-empty >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gdb-index-empty.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-gdb-index-empty" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gdb-index-empty.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.15 sec >---------------------------------------------------------- >Test Passed. >"x86_64-gdb-index-empty" end time: Dec 04 14:13 CST >"x86_64-gdb-index-empty" time elapsed: 00:00:00 >---------------------------------------------------------- > >113/335 Testing: x86_64-filler >113/335 Test: x86_64-filler >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/filler.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-filler" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/filler.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '--filler', did you mean '--filter' >ld.lld: error: cannot open 0xfe: No such file or directory >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 20 >++ code=1 >++ echo 'command failed: 20: $CC -B. -static -Wl,--filler,0xfe -o $t/exe1 $t/a.o' >command failed: 20: $CC -B. -static -Wl,--filler,0xfe -o $t/exe1 $t/a.o >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.42 sec >---------------------------------------------------------- >Test Failed. >"x86_64-filler" end time: Dec 04 14:13 CST >"x86_64-filler" time elapsed: 00:00:00 >---------------------------------------------------------- > >120/335 Testing: x86_64-glibc-2.22-bug >120/335 Test: x86_64-glibc-2.22-bug >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/glibc-2.22-bug.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-glibc-2.22-bug" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/glibc-2.22-bug.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-glibc-2.22-bug" end time: Dec 04 14:13 CST >"x86_64-glibc-2.22-bug" time elapsed: 00:00:00 >---------------------------------------------------------- > >115/335 Testing: x86_64-func-addr >115/335 Test: x86_64-func-addr >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/func-addr.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-func-addr" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/func-addr.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.46 sec >---------------------------------------------------------- >Test Passed. >"x86_64-func-addr" end time: Dec 04 14:13 CST >"x86_64-func-addr" time elapsed: 00:00:00 >---------------------------------------------------------- > >121/335 Testing: x86_64-global-offset-table >121/335 Test: x86_64-global-offset-table >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/global-offset-table.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-global-offset-table" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/global-offset-table.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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=202870 >+ '[' x86_64 = x86_64 -o x86_64 = i686 ']' >+ readelf -WS out/test/elf/x86_64/global-offset-table/exe >+ grep -q '\.got\.plt .*202870 ' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.31 sec >---------------------------------------------------------- >Test Passed. >"x86_64-global-offset-table" end time: Dec 04 14:13 CST >"x86_64-global-offset-table" time elapsed: 00:00:00 >---------------------------------------------------------- > >116/335 Testing: x86_64-gc-sections >116/335 Test: x86_64-gc-sections >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gc-sections.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-gc-sections" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gc-sections.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ out/test/elf/x86_64/gc-sections/exe2 >+ grep -q '1 2' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.56 sec >---------------------------------------------------------- >Test Passed. >"x86_64-gc-sections" end time: Dec 04 14:13 CST >"x86_64-gc-sections" time elapsed: 00:00:00 >---------------------------------------------------------- > >122/335 Testing: x86_64-gnu-hash >122/335 Test: x86_64-gnu-hash >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gnu-hash.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-gnu-hash" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gnu-hash.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-gnu-hash" end time: Dec 04 14:13 CST >"x86_64-gnu-hash" time elapsed: 00:00:00 >---------------------------------------------------------- > >123/335 Testing: x86_64-gnu-unique >123/335 Test: x86_64-gnu-unique >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gnu-unique.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-gnu-unique" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gnu-unique.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 -no-pie >+ out/test/elf/x86_64/gnu-unique/exe >+ grep -q foo=5 >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.35 sec >---------------------------------------------------------- >Test Passed. >"x86_64-gnu-unique" end time: Dec 04 14:13 CST >"x86_64-gnu-unique" time elapsed: 00:00:00 >---------------------------------------------------------- > >125/335 Testing: x86_64-hash-style >125/335 Test: x86_64-hash-style >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hash-style.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-hash-style" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hash-style.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -Fq ' .hash' >+ readelf -WS out/test/elf/x86_64/hash-style/b.so >+ 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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-hash-style" end time: Dec 04 14:13 CST >"x86_64-hash-style" time elapsed: 00:00:00 >---------------------------------------------------------- > >124/335 Testing: x86_64-gnu-warning >124/335 Test: x86_64-gnu-warning >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gnu-warning.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-gnu-warning" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gnu-warning.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 -no-pie >+ out/test/elf/x86_64/gnu-warning/exe >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.27 sec >---------------------------------------------------------- >Test Passed. >"x86_64-gnu-warning" end time: Dec 04 14:13 CST >"x86_64-gnu-warning" time elapsed: 00:00:00 >---------------------------------------------------------- > >97/335 Testing: x86_64-emit-relocs-dead-sections >97/335 Test: x86_64-emit-relocs-dead-sections >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/emit-relocs-dead-sections.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-emit-relocs-dead-sections" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/emit-relocs-dead-sections.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 = m68k ']' >+ '[' x86_64 = sh4 ']' >+ cat >+ c++ -o out/test/elf/x86_64/emit-relocs-dead-sections/a.o -c -fPIC -xc++ -g -ffunction-sections - >+ c++ -o out/test/elf/x86_64/emit-relocs-dead-sections/b.o -c -fPIC -xc++ -g -ffunction-sections - >+ cat >+ 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 ><end of output> >Test time = 2.07 sec >---------------------------------------------------------- >Test Passed. >"x86_64-emit-relocs-dead-sections" end time: Dec 04 14:13 CST >"x86_64-emit-relocs-dead-sections" time elapsed: 00:00:02 >---------------------------------------------------------- > >128/335 Testing: x86_64-help >128/335 Test: x86_64-help >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/help.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-help" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/help.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.06 sec >---------------------------------------------------------- >Test Passed. >"x86_64-help" end time: Dec 04 14:13 CST >"x86_64-help" time elapsed: 00:00:00 >---------------------------------------------------------- > >126/335 Testing: x86_64-hello-dynamic >126/335 Test: x86_64-hello-dynamic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hello-dynamic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-hello-dynamic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hello-dynamic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Passed. >"x86_64-hello-dynamic" end time: Dec 04 14:13 CST >"x86_64-hello-dynamic" time elapsed: 00:00:00 >---------------------------------------------------------- > >119/335 Testing: x86_64-gdb-index-split-dwarf >119/335 Test: x86_64-gdb-index-split-dwarf >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gdb-index-split-dwarf.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-gdb-index-split-dwarf" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gdb-index-split-dwarf.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ test_cflags -gdwarf-5 -g >+ echo 'int main() {}' >+ cc -gdwarf-5 -g -o /dev/null -xc - >+ cat >+ cat >+ cat >+ cat >+ cc -c -o out/test/elf/x86_64/gdb-index-split-dwarf/a.o out/test/elf/x86_64/gdb-index-split-dwarf/a.c -fPIC -g -ggnu-pubnames -gdwarf-5 -gsplit-dwarf >+ cc -c -o out/test/elf/x86_64/gdb-index-split-dwarf/b.o out/test/elf/x86_64/gdb-index-split-dwarf/b.c -fPIC -g -ggnu-pubnames -gdwarf-4 -gsplit-dwarf >+ cc -c -o out/test/elf/x86_64/gdb-index-split-dwarf/c.o out/test/elf/x86_64/gdb-index-split-dwarf/c.c -fPIC -g -ggnu-pubnames -gdwarf-5 >+ cc -c -o out/test/elf/x86_64/gdb-index-split-dwarf/d.o out/test/elf/x86_64/gdb-index-split-dwarf/d.c -fPIC -g -ggnu-pubnames -gdwarf-5 -gsplit-dwarf >+ cc -B. -shared -o out/test/elf/x86_64/gdb-index-split-dwarf/e.so out/test/elf/x86_64/gdb-index-split-dwarf/a.o out/test/elf/x86_64/gdb-index-split-dwarf/b.o out/test/elf/x86_64/gdb-index-split-dwarf/c.o out/test/elf/x86_64/gdb-index-split-dwarf/d.o -Wl,--gdb-index >+ grep -Fq .gdb_index >+ readelf -WS out/test/elf/x86_64/gdb-index-split-dwarf/e.so >+ cat >+ cc -c -o out/test/elf/x86_64/gdb-index-split-dwarf/f.o -fPIC -g -ggnu-pubnames -gdwarf-5 -gsplit-dwarf -xc - -gz >+ cc -B. -o out/test/elf/x86_64/gdb-index-split-dwarf/exe out/test/elf/x86_64/gdb-index-split-dwarf/e.so out/test/elf/x86_64/gdb-index-split-dwarf/f.o -Wl,--gdb-index >+ readelf -WS out/test/elf/x86_64/gdb-index-split-dwarf/exe >+ grep -Fq .gdb_index >+ out/test/elf/x86_64/gdb-index-split-dwarf/exe >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.93 sec >---------------------------------------------------------- >Test Passed. >"x86_64-gdb-index-split-dwarf" end time: Dec 04 14:13 CST >"x86_64-gdb-index-split-dwarf" time elapsed: 00:00:00 >---------------------------------------------------------- > >104/335 Testing: x86_64-exception >104/335 Test: x86_64-exception >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exception.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-exception" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/exception.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 = m68k ']' >+ '[' 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 ><end of output> >Test time = 1.92 sec >---------------------------------------------------------- >Test Passed. >"x86_64-exception" end time: Dec 04 14:13 CST >"x86_64-exception" time elapsed: 00:00:01 >---------------------------------------------------------- > >130/335 Testing: x86_64-hidden-weak-undef >130/335 Test: x86_64-hidden-weak-undef >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hidden-weak-undef.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-hidden-weak-undef" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hidden-weak-undef.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-hidden-weak-undef" end time: Dec 04 14:13 CST >"x86_64-hidden-weak-undef" time elapsed: 00:00:00 >---------------------------------------------------------- > >132/335 Testing: x86_64-icf-small >132/335 Test: x86_64-icf-small >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/icf-small.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-icf-small" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/icf-small.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.13 sec >---------------------------------------------------------- >Test Passed. >"x86_64-icf-small" end time: Dec 04 14:13 CST >"x86_64-icf-small" time elapsed: 00:00:00 >---------------------------------------------------------- > >129/335 Testing: x86_64-hidden-undef >129/335 Test: x86_64-hidden-undef >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hidden-undef.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-hidden-undef" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hidden-undef.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/hidden-undef/a.so -shared -fPIC -xc - >+ 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_error 14 >++ code=1 >++ echo 'command failed: 14: grep -q '\''undefined symbol: foo'\'' $t/log' >command failed: 14: grep -q 'undefined symbol: foo' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.38 sec >---------------------------------------------------------- >Test Failed. >"x86_64-hidden-undef" end time: Dec 04 14:13 CST >"x86_64-hidden-undef" time elapsed: 00:00:00 >---------------------------------------------------------- > >133/335 Testing: x86_64-icf >133/335 Test: x86_64-icf >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/icf.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-icf" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/icf.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Passed. >"x86_64-icf" end time: Dec 04 14:13 CST >"x86_64-icf" time elapsed: 00:00:00 >---------------------------------------------------------- > >127/335 Testing: x86_64-hello-static >127/335 Test: x86_64-hello-static >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hello-static.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-hello-static" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/hello-static.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -static -o /dev/null -xc - >+ echo 'int main() {}' >+ cat >+ cc -o out/test/elf/x86_64/hello-static/a.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/hello-static/exe out/test/elf/x86_64/hello-static/a.o -static >+ out/test/elf/x86_64/hello-static/exe >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.48 sec >---------------------------------------------------------- >Test Passed. >"x86_64-hello-static" end time: Dec 04 14:13 CST >"x86_64-hello-static" time elapsed: 00:00:00 >---------------------------------------------------------- > >131/335 Testing: x86_64-icf-safe >131/335 Test: x86_64-icf-safe >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/icf-safe.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-icf-safe" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/icf-safe.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ cc -c -o out/test/elf/x86_64/icf-safe/a.o -ffunction-sections -fdata-sections -xc - >+ cat >+ cat >+ cc -c -o out/test/elf/x86_64/icf-safe/b.o -ffunction-sections -fdata-sections -xc - >+ 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 ><end of output> >Test time = 0.51 sec >---------------------------------------------------------- >Test Passed. >"x86_64-icf-safe" end time: Dec 04 14:13 CST >"x86_64-icf-safe" time elapsed: 00:00:00 >---------------------------------------------------------- > >136/335 Testing: x86_64-ifunc-alias >136/335 Test: x86_64-ifunc-alias >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-alias.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-alias" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-alias.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' >+ cc -c -o /dev/null -xc - >+ cat >+ cc -fPIC -o out/test/elf/x86_64/ifunc-alias/a.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/ifunc-alias/exe1 out/test/elf/x86_64/ifunc-alias/a.o -pie >+ out/test/elf/x86_64/ifunc-alias/exe1 >+ grep -Eq '^(\S+) \1$' >+ cc -B. -o out/test/elf/x86_64/ifunc-alias/exe2 out/test/elf/x86_64/ifunc-alias/a.o -no-pie >+ grep -Eq '^(\S+) \1$' >+ out/test/elf/x86_64/ifunc-alias/exe2 >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-alias" end time: Dec 04 14:13 CST >"x86_64-ifunc-alias" time elapsed: 00:00:00 >---------------------------------------------------------- > >135/335 Testing: x86_64-ifunc-address-equality >135/335 Test: x86_64-ifunc-address-equality >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-address-equality.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-address-equality" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-address-equality.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -c -fno-PIE -o out/test/elf/x86_64/ifunc-address-equality/a.o -xc - >+ cat >+ cc -c -fPIC -o out/test/elf/x86_64/ifunc-address-equality/b.o -xc - >+ cat >+ cc -c -fno-PIE -o out/test/elf/x86_64/ifunc-address-equality/c.o -xc - >+ cc -B. -o out/test/elf/x86_64/ifunc-address-equality/exe1 out/test/elf/x86_64/ifunc-address-equality/a.o out/test/elf/x86_64/ifunc-address-equality/b.o out/test/elf/x86_64/ifunc-address-equality/c.o -no-pie >+ out/test/elf/x86_64/ifunc-address-equality/exe1 >+ grep -Eq '^(\S+) \1 (\S+) \2' >+ readelf --dynamic out/test/elf/x86_64/ifunc-address-equality/exe1 >+ grep -q TEXTREL out/test/elf/x86_64/ifunc-address-equality/log1 >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-address-equality" end time: Dec 04 14:13 CST >"x86_64-ifunc-address-equality" time elapsed: 00:00:00 >---------------------------------------------------------- > >134/335 Testing: x86_64-ifunc-address-equality-exported >134/335 Test: x86_64-ifunc-address-equality-exported >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-address-equality-exported.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-address-equality-exported" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-address-equality-exported.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -c -fPIC -o out/test/elf/x86_64/ifunc-address-equality-exported/a.o -xc - >+ cc -B. -shared -o out/test/elf/x86_64/ifunc-address-equality-exported/b.so out/test/elf/x86_64/ifunc-address-equality-exported/a.o >+ cat >+ cc -c -fno-PIE -o out/test/elf/x86_64/ifunc-address-equality-exported/c.o -xc - >+ cc -B. -o out/test/elf/x86_64/ifunc-address-equality-exported/exe out/test/elf/x86_64/ifunc-address-equality-exported/c.o out/test/elf/x86_64/ifunc-address-equality-exported/b.so -no-pie >+ out/test/elf/x86_64/ifunc-address-equality-exported/exe >+ grep -Eq '^(\S+) \1' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.47 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-address-equality-exported" end time: Dec 04 14:13 CST >"x86_64-ifunc-address-equality-exported" time elapsed: 00:00:00 >---------------------------------------------------------- > >137/335 Testing: x86_64-ifunc-dlopen >137/335 Test: x86_64-ifunc-dlopen >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-dlopen.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-dlopen" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-dlopen.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -fno-PIE -o out/test/elf/x86_64/ifunc-dlopen/a.o -c -xc - >+ cat >+ cc -fPIC -o out/test/elf/x86_64/ifunc-dlopen/b.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/ifunc-dlopen/c.so out/test/elf/x86_64/ifunc-dlopen/b.o -shared >+ cc -B. -o out/test/elf/x86_64/ifunc-dlopen/exe out/test/elf/x86_64/ifunc-dlopen/a.o out/test/elf/x86_64/ifunc-dlopen/c.so -no-pie -ldl >+ out/test/elf/x86_64/ifunc-dlopen/exe >+ grep -q 'foo foo' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.47 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-dlopen" end time: Dec 04 14:13 CST >"x86_64-ifunc-dlopen" time elapsed: 00:00:00 >---------------------------------------------------------- > >140/335 Testing: x86_64-ifunc-export >140/335 Test: x86_64-ifunc-export >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-export.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-export" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-export.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -c -fPIC -o out/test/elf/x86_64/ifunc-export/a.o -xc - >+ cc -B. -shared -o out/test/elf/x86_64/ifunc-export/b.so out/test/elf/x86_64/ifunc-export/a.o >+ grep -Eq '(IFUNC|<OS specific>: 10)\s+GLOBAL DEFAULT.* foobar' >+ readelf --dyn-syms out/test/elf/x86_64/ifunc-export/b.so >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.29 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-export" end time: Dec 04 14:13 CST >"x86_64-ifunc-export" time elapsed: 00:00:00 >---------------------------------------------------------- > >139/335 Testing: x86_64-ifunc-dynamic >139/335 Test: x86_64-ifunc-dynamic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-dynamic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-dynamic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-dynamic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -o out/test/elf/x86_64/ifunc-dynamic/a.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/ifunc-dynamic/exe1 out/test/elf/x86_64/ifunc-dynamic/a.o -Wl,-z,lazy >+ out/test/elf/x86_64/ifunc-dynamic/exe1 >+ grep -q 'Hello world' >+ cc -B. -o out/test/elf/x86_64/ifunc-dynamic/exe2 out/test/elf/x86_64/ifunc-dynamic/a.o -Wl,-z,now >+ out/test/elf/x86_64/ifunc-dynamic/exe2 >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-dynamic" end time: Dec 04 14:13 CST >"x86_64-ifunc-dynamic" time elapsed: 00:00:00 >---------------------------------------------------------- > >117/335 Testing: x86_64-gdb-index-dwarf64 >117/335 Test: x86_64-gdb-index-dwarf64 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gdb-index-dwarf64.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-gdb-index-dwarf64" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/gdb-index-dwarf64.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ test_cflags -gdwarf-5 -g -gdwarf64 >+ cc -gdwarf-5 -g -gdwarf64 -o /dev/null -xc - >+ echo 'int main() {}' >+ cat >+ cat >+ cat >+ cat >+ cc -c -o out/test/elf/x86_64/gdb-index-dwarf64/a.o out/test/elf/x86_64/gdb-index-dwarf64/a.c -fPIC -g -ggnu-pubnames -gdwarf-5 -gdwarf64 -ffunction-sections >+ cc -c -o out/test/elf/x86_64/gdb-index-dwarf64/b.o out/test/elf/x86_64/gdb-index-dwarf64/b.c -fPIC -g -ggnu-pubnames -gdwarf-4 -gdwarf64 -ffunction-sections >+ cc -c -o out/test/elf/x86_64/gdb-index-dwarf64/c.o out/test/elf/x86_64/gdb-index-dwarf64/c.c -fPIC -g -ggnu-pubnames -gdwarf-5 -gdwarf64 >+ cc -c -o out/test/elf/x86_64/gdb-index-dwarf64/d.o out/test/elf/x86_64/gdb-index-dwarf64/d.c -fPIC -g -ggnu-pubnames -gdwarf-5 -gdwarf64 -ffunction-sections >+ cc -B. -shared -o out/test/elf/x86_64/gdb-index-dwarf64/e.so out/test/elf/x86_64/gdb-index-dwarf64/a.o out/test/elf/x86_64/gdb-index-dwarf64/b.o out/test/elf/x86_64/gdb-index-dwarf64/c.o out/test/elf/x86_64/gdb-index-dwarf64/d.o >+ cc -B. -shared -o out/test/elf/x86_64/gdb-index-dwarf64/f.so out/test/elf/x86_64/gdb-index-dwarf64/a.o out/test/elf/x86_64/gdb-index-dwarf64/b.o out/test/elf/x86_64/gdb-index-dwarf64/c.o out/test/elf/x86_64/gdb-index-dwarf64/d.o -Wl,--gdb-index >+ readelf -WS out/test/elf/x86_64/gdb-index-dwarf64/f.so >+ grep -Fq .gdb_index >+ cat >+ cc -c -o out/test/elf/x86_64/gdb-index-dwarf64/g.o -fPIC -g -ggnu-pubnames -gdwarf-5 -xc - -gz >+ cc -B. -o out/test/elf/x86_64/gdb-index-dwarf64/exe1 out/test/elf/x86_64/gdb-index-dwarf64/e.so out/test/elf/x86_64/gdb-index-dwarf64/g.o >+ DEBUGINFOD_URLS= >+ gdb out/test/elf/x86_64/gdb-index-dwarf64/exe1 -nx -batch -ex 'b main' -ex r -ex quit >+ grep -q 'DW_FORM_line_strp pointing outside of .debug_line_str' out/test/elf/x86_64/gdb-index-dwarf64/log1 >+ cc -B. -o out/test/elf/x86_64/gdb-index-dwarf64/exe2 out/test/elf/x86_64/gdb-index-dwarf64/f.so out/test/elf/x86_64/gdb-index-dwarf64/g.o -Wl,--gdb-index >+ grep -Fq .gdb_index >+ readelf -WS out/test/elf/x86_64/gdb-index-dwarf64/exe2 >+ out/test/elf/x86_64/gdb-index-dwarf64/exe2 >+ grep -q 'Hello world' >+ DEBUGINFOD_URLS= >+ gdb out/test/elf/x86_64/gdb-index-dwarf64/exe2 -nx -batch -ex 'b main' -ex r -ex 'b trap' -ex c -ex bt -ex quit >++ on_error 91 >++ code=1 >++ echo 'command failed: 91: DEBUGINFOD_URLS= gdb $t/exe2 -nx -batch -ex '\''b main'\'' -ex r -ex '\''b trap'\'' -ex c -ex bt -ex quit >&$t/log2' >command failed: 91: DEBUGINFOD_URLS= gdb $t/exe2 -nx -batch -ex 'b main' -ex r -ex 'b trap' -ex c -ex bt -ex quit >&$t/log2 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 1.73 sec >---------------------------------------------------------- >Test Failed. >"x86_64-gdb-index-dwarf64" end time: Dec 04 14:13 CST >"x86_64-gdb-index-dwarf64" time elapsed: 00:00:01 >---------------------------------------------------------- > >138/335 Testing: x86_64-ifunc-dso >138/335 Test: x86_64-ifunc-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -fPIC -o out/test/elf/x86_64/ifunc-dso/a.o -c -xc - >+ cat >+ cat >+ cc -fPIC -o out/test/elf/x86_64/ifunc-dso/b.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/ifunc-dso/c.so out/test/elf/x86_64/ifunc-dso/b.o -shared >+ readelf -W --dyn-syms out/test/elf/x86_64/ifunc-dso/c.so >+ grep -Eq '(IFUNC|<OS specific>: 10).*foobar' >+ cc -B. -o out/test/elf/x86_64/ifunc-dso/exe out/test/elf/x86_64/ifunc-dso/a.o out/test/elf/x86_64/ifunc-dso/c.so >+ out/test/elf/x86_64/ifunc-dso/exe >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.51 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-dso" end time: Dec 04 14:13 CST >"x86_64-ifunc-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >142/335 Testing: x86_64-ifunc-noplt >142/335 Test: x86_64-ifunc-noplt >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-noplt.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-noplt" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-noplt.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -fPIC -o out/test/elf/x86_64/ifunc-noplt/a.o -c -xc - -fno-plt >+ cat >+ cc -B. -o out/test/elf/x86_64/ifunc-noplt/exe1 out/test/elf/x86_64/ifunc-noplt/a.o -pie >+ out/test/elf/x86_64/ifunc-noplt/exe1 >+ grep -q 'Hello world' >+ cc -B. -o out/test/elf/x86_64/ifunc-noplt/exe2 out/test/elf/x86_64/ifunc-noplt/a.o -no-pie >+ out/test/elf/x86_64/ifunc-noplt/exe2 >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-noplt" end time: Dec 04 14:13 CST >"x86_64-ifunc-noplt" time elapsed: 00:00:00 >---------------------------------------------------------- > >145/335 Testing: x86_64-image-base >145/335 Test: x86_64-image-base >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/image-base.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-image-base" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/image-base.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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' >+ cat >+ cc -o out/test/elf/x86_64/image-base/b.o -c -xc - >+ '[' x86_64 = x86-64 -o x86_64 = aarch64 ']' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.27 sec >---------------------------------------------------------- >Test Passed. >"x86_64-image-base" end time: Dec 04 14:13 CST >"x86_64-image-base" time elapsed: 00:00:00 >---------------------------------------------------------- > >141/335 Testing: x86_64-ifunc-funcptr >141/335 Test: x86_64-ifunc-funcptr >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-funcptr.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-funcptr" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-funcptr.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -c -fPIC -o out/test/elf/x86_64/ifunc-funcptr/a.o -c -xc - >+ cat >+ cc -c -fPIC -o out/test/elf/x86_64/ifunc-funcptr/b.o -xc - >+ cat >+ cc -c -fPIC -o out/test/elf/x86_64/ifunc-funcptr/c.o -xc - >+ cc -B. -o out/test/elf/x86_64/ifunc-funcptr/exe1 out/test/elf/x86_64/ifunc-funcptr/a.o out/test/elf/x86_64/ifunc-funcptr/b.o out/test/elf/x86_64/ifunc-funcptr/c.o -pie >+ out/test/elf/x86_64/ifunc-funcptr/exe1 >+ grep -q '^3$' >+ cc -B. -o out/test/elf/x86_64/ifunc-funcptr/exe2 out/test/elf/x86_64/ifunc-funcptr/a.o out/test/elf/x86_64/ifunc-funcptr/b.o out/test/elf/x86_64/ifunc-funcptr/c.o -no-pie >+ out/test/elf/x86_64/ifunc-funcptr/exe2 >+ grep -q '^3$' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.51 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-funcptr" end time: Dec 04 14:13 CST >"x86_64-ifunc-funcptr" time elapsed: 00:00:00 >---------------------------------------------------------- > >143/335 Testing: x86_64-ifunc-static-pie >143/335 Test: x86_64-ifunc-static-pie >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-static-pie.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-static-pie" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-static-pie.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-static-pie.sh .sh >++ testname=ifunc-static-pie >++ echo -n 'Testing ifunc-static-pie ... ' >Testing ifunc-static-pie ... ++ t=out/test/elf/x86_64/ifunc-static-pie >++ mkdir -p out/test/elf/x86_64/ifunc-static-pie >+ test_cflags -static-pie >+ echo 'int main() {}' >+ cc -static-pie -o /dev/null -xc - >+ supports_ifunc >+ echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' >+ cc -c -o /dev/null -xc - >+ cat >+ cc -o out/test/elf/x86_64/ifunc-static-pie/a.o -c -xc - -fPIC >+ cc -B. -o out/test/elf/x86_64/ifunc-static-pie/exe2 out/test/elf/x86_64/ifunc-static-pie/a.o -static-pie >+ out/test/elf/x86_64/ifunc-static-pie/exe2 >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.53 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-static-pie" end time: Dec 04 14:13 CST >"x86_64-ifunc-static-pie" time elapsed: 00:00:00 >---------------------------------------------------------- > >148/335 Testing: x86_64-init >148/335 Test: x86_64-init >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/init.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-init" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/init.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.32 sec >---------------------------------------------------------- >Test Passed. >"x86_64-init" end time: Dec 04 14:13 CST >"x86_64-init" time elapsed: 00:00:00 >---------------------------------------------------------- > >147/335 Testing: x86_64-init-in-dso >147/335 Test: x86_64-init-in-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/init-in-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-init-in-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/init-in-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -o out/test/elf/x86_64/init-in-dso/b.o -c -xc - >+ 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 ><end of output> >Test time = 0.39 sec >---------------------------------------------------------- >Test Passed. >"x86_64-init-in-dso" end time: Dec 04 14:13 CST >"x86_64-init-in-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >149/335 Testing: x86_64-initfirst >149/335 Test: x86_64-initfirst >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/initfirst.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-initfirst" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/initfirst.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-initfirst" end time: Dec 04 14:13 CST >"x86_64-initfirst" time elapsed: 00:00:00 >---------------------------------------------------------- > >150/335 Testing: x86_64-interpose >150/335 Test: x86_64-interpose >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/interpose.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-interpose" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/interpose.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ readelf --dynamic out/test/elf/x86_64/interpose/b.so >+ grep -q 'Flags:.*INTERPOSE' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-interpose" end time: Dec 04 14:13 CST >"x86_64-interpose" time elapsed: 00:00:00 >---------------------------------------------------------- > >144/335 Testing: x86_64-ifunc-static >144/335 Test: x86_64-ifunc-static >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-static.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-ifunc-static" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/ifunc-static.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ echo 'void x() __attribute__((ifunc("y"))); void *y() { return 0; }' >+ cc -c -o /dev/null -xc - >+ cat >+ cc -o out/test/elf/x86_64/ifunc-static/a.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/ifunc-static/exe out/test/elf/x86_64/ifunc-static/a.o -static >+ grep -q 'Hello world' >+ out/test/elf/x86_64/ifunc-static/exe >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.52 sec >---------------------------------------------------------- >Test Passed. >"x86_64-ifunc-static" end time: Dec 04 14:13 CST >"x86_64-ifunc-static" time elapsed: 00:00:00 >---------------------------------------------------------- > >151/335 Testing: x86_64-invalid-version-script >151/335 Test: x86_64-invalid-version-script >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/invalid-version-script.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-invalid-version-script" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/invalid-version-script.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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_error 10 >++ code=1 >++ echo 'command failed: 10: grep -q '\''invalid version pattern'\'' $t/log' >command failed: 10: grep -q 'invalid version pattern' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.20 sec >---------------------------------------------------------- >Test Failed. >"x86_64-invalid-version-script" end time: Dec 04 14:13 CST >"x86_64-invalid-version-script" time elapsed: 00:00:00 >---------------------------------------------------------- > >154/335 Testing: x86_64-large-alignment >154/335 Test: x86_64-large-alignment >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-alignment.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-large-alignment" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-alignment.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 = i686 ']' >+ cat >+ cc -o out/test/elf/x86_64/large-alignment/a.o -c -xc - -ffunction-sections >+ cc -B. -o out/test/elf/x86_64/large-alignment/exe out/test/elf/x86_64/large-alignment/a.o >+ out/test/elf/x86_64/large-alignment/exe >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-large-alignment" end time: Dec 04 14:13 CST >"x86_64-large-alignment" time elapsed: 00:00:00 >---------------------------------------------------------- > >155/335 Testing: x86_64-large-max-page-size-strip >155/335 Test: x86_64-large-max-page-size-strip >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-max-page-size-strip.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-large-max-page-size-strip" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-max-page-size-strip.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-large-max-page-size-strip" end time: Dec 04 14:13 CST >"x86_64-large-max-page-size-strip" time elapsed: 00:00:00 >---------------------------------------------------------- > >156/335 Testing: x86_64-large-max-page-size >156/335 Test: x86_64-large-max-page-size >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-max-page-size.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-large-max-page-size" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-max-page-size.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-large-max-page-size" end time: Dec 04 14:13 CST >"x86_64-large-max-page-size" time elapsed: 00:00:00 >---------------------------------------------------------- > >153/335 Testing: x86_64-large-alignment-dso >153/335 Test: x86_64-large-alignment-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-alignment-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-large-alignment-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-alignment-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 = i686 ']' >+ 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 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-large-alignment-dso" end time: Dec 04 14:13 CST >"x86_64-large-alignment-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >146/335 Testing: x86_64-init-array-priorities >146/335 Test: x86_64-init-array-priorities >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/init-array-priorities.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-init-array-priorities" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/init-array-priorities.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ ldd --help >+ grep -q musl >+ cat >+ cc -c -o out/test/elf/x86_64/init-array-priorities/a.o -xc - >+ cat >+ cc -c -o out/test/elf/x86_64/init-array-priorities/b.o -xc - >+ cat >+ cc -c -o out/test/elf/x86_64/init-array-priorities/c.o -xc - >+ cat >+ cc -c -o out/test/elf/x86_64/init-array-priorities/d.o -xc - >+ cat >+ cc -c -o out/test/elf/x86_64/init-array-priorities/e.o -xc - >+ cat >+ cc -c -o out/test/elf/x86_64/init-array-priorities/f.o -xc - >+ cat >+ cc -c -o out/test/elf/x86_64/init-array-priorities/g.o -xc - >+ cat >+ cc -c -o out/test/elf/x86_64/init-array-priorities/h.o -xc - >+ cat >+ cc -c -o out/test/elf/x86_64/init-array-priorities/i.o -xc - >+ cc -B. -o out/test/elf/x86_64/init-array-priorities/exe out/test/elf/x86_64/init-array-priorities/a.o out/test/elf/x86_64/init-array-priorities/b.o out/test/elf/x86_64/init-array-priorities/c.o out/test/elf/x86_64/init-array-priorities/d.o out/test/elf/x86_64/init-array-priorities/e.o out/test/elf/x86_64/init-array-priorities/f.o out/test/elf/x86_64/init-array-priorities/g.o out/test/elf/x86_64/init-array-priorities/h.o out/test/elf/x86_64/init-array-priorities/i.o >+ out/test/elf/x86_64/init-array-priorities/exe >+ grep -q 21348756 >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.85 sec >---------------------------------------------------------- >Test Passed. >"x86_64-init-array-priorities" end time: Dec 04 14:13 CST >"x86_64-init-array-priorities" time elapsed: 00:00:00 >---------------------------------------------------------- > >157/335 Testing: x86_64-large-text >157/335 Test: x86_64-large-text >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-text.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-large-text" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/large-text.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.44 sec >---------------------------------------------------------- >Test Passed. >"x86_64-large-text" end time: Dec 04 14:13 CST >"x86_64-large-text" time elapsed: 00:00:00 >---------------------------------------------------------- > >163/335 Testing: x86_64-linker-script3 >163/335 Test: x86_64-linker-script3 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script3.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-linker-script3" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script3.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-linker-script3" end time: Dec 04 14:13 CST >"x86_64-linker-script3" time elapsed: 00:00:00 >---------------------------------------------------------- > >162/335 Testing: x86_64-linker-script2 >162/335 Test: x86_64-linker-script2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-linker-script2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/linker-script2/a.o -c -xc - >+ 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 ><end of output> >Test time = 0.26 sec >---------------------------------------------------------- >Test Passed. >"x86_64-linker-script2" end time: Dec 04 14:13 CST >"x86_64-linker-script2" time elapsed: 00:00:00 >---------------------------------------------------------- > >158/335 Testing: x86_64-link-order >158/335 Test: x86_64-link-order >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/link-order.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-link-order" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/link-order.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -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 ><end of output> >Test time = 0.56 sec >---------------------------------------------------------- >Test Passed. >"x86_64-link-order" end time: Dec 04 14:13 CST >"x86_64-link-order" time elapsed: 00:00:00 >---------------------------------------------------------- > >159/335 Testing: x86_64-linker-script-defsym >159/335 Test: x86_64-linker-script-defsym >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script-defsym.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-linker-script-defsym" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script-defsym.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q 'FUNC .* bar' >+ readelf -sW out/test/elf/x86_64/linker-script-defsym/b.so >+ 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 ><end of output> >Test time = 0.44 sec >---------------------------------------------------------- >Test Passed. >"x86_64-linker-script-defsym" end time: Dec 04 14:13 CST >"x86_64-linker-script-defsym" time elapsed: 00:00:00 >---------------------------------------------------------- > >164/335 Testing: x86_64-linker-script4 >164/335 Test: x86_64-linker-script4 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script4.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-linker-script4" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script4.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-linker-script4" end time: Dec 04 14:13 CST >"x86_64-linker-script4" time elapsed: 00:00:00 >---------------------------------------------------------- > >161/335 Testing: x86_64-linker-script >161/335 Test: x86_64-linker-script >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-linker-script" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.49 sec >---------------------------------------------------------- >Test Passed. >"x86_64-linker-script" end time: Dec 04 14:13 CST >"x86_64-linker-script" time elapsed: 00:00:00 >---------------------------------------------------------- > >165/335 Testing: x86_64-lto-nostdlib >165/335 Test: x86_64-lto-nostdlib >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/lto-nostdlib.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-lto-nostdlib" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/lto-nostdlib.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ readelf -Ws out/test/elf/x86_64/lto-nostdlib/exe >+ grep -Eq ' _start' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-lto-nostdlib" end time: Dec 04 14:13 CST >"x86_64-lto-nostdlib" time elapsed: 00:00:00 >---------------------------------------------------------- > >170/335 Testing: x86_64-missing-but-ok >170/335 Test: x86_64-missing-but-ok >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/missing-but-ok.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-missing-but-ok" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/missing-but-ok.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/missing-but-ok/a.o -c -x assembler - >+ ./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 ><end of output> >Test time = 0.11 sec >---------------------------------------------------------- >Test Passed. >"x86_64-missing-but-ok" end time: Dec 04 14:13 CST >"x86_64-missing-but-ok" time elapsed: 00:00:00 >---------------------------------------------------------- > >152/335 Testing: x86_64-issue646 >152/335 Test: x86_64-issue646 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/issue646.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-issue646" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/issue646.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 = m68k ']' >+ '[' 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 ><end of output> >Test time = 0.99 sec >---------------------------------------------------------- >Test Passed. >"x86_64-issue646" end time: Dec 04 14:13 CST >"x86_64-issue646" time elapsed: 00:00:00 >---------------------------------------------------------- > >171/335 Testing: x86_64-missing-error >171/335 Test: x86_64-missing-error >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/missing-error.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-missing-error" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/missing-error.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.16 sec >---------------------------------------------------------- >Test Passed. >"x86_64-missing-error" end time: Dec 04 14:13 CST >"x86_64-missing-error" time elapsed: 00:00:00 >---------------------------------------------------------- > >160/335 Testing: x86_64-linker-script-relocatable >160/335 Test: x86_64-linker-script-relocatable >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script-relocatable.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-linker-script-relocatable" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/linker-script-relocatable.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.76 sec >---------------------------------------------------------- >Test Passed. >"x86_64-linker-script-relocatable" end time: Dec 04 14:13 CST >"x86_64-linker-script-relocatable" time elapsed: 00:00:00 >---------------------------------------------------------- > >175/335 Testing: x86_64-no-eh-frame-header >175/335 Test: x86_64-no-eh-frame-header >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/no-eh-frame-header.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-no-eh-frame-header" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/no-eh-frame-header.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '--thread-count=1' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 10 >++ code=1 >++ echo 'command failed: 10: $CC -B. -Wl,--no-eh-frame-hdr -Wl,--thread-count=1 -O0 -o $t/exe $t/a.o' >command failed: 10: $CC -B. -Wl,--no-eh-frame-hdr -Wl,--thread-count=1 -O0 -o $t/exe $t/a.o >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.16 sec >---------------------------------------------------------- >Test Failed. >"x86_64-no-eh-frame-header" end time: Dec 04 14:13 CST >"x86_64-no-eh-frame-header" time elapsed: 00:00:00 >---------------------------------------------------------- > >166/335 Testing: x86_64-main-in-dso >166/335 Test: x86_64-main-in-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/main-in-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-main-in-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/main-in-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q 'Hello world' >+ out/test/elf/x86_64/main-in-dso/exe1 >+ 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 ><end of output> >Test time = 0.58 sec >---------------------------------------------------------- >Test Passed. >"x86_64-main-in-dso" end time: Dec 04 14:13 CST >"x86_64-main-in-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >169/335 Testing: x86_64-mergeable-strings >169/335 Test: x86_64-mergeable-strings >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/mergeable-strings.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-mergeable-strings" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/mergeable-strings.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/mergeable-strings/a.o -c -xc - -O2 >+ cc -o out/test/elf/x86_64/mergeable-strings/b.o -c -xc - -O2 >+ cat >+ 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 ><end of output> >Test time = 0.53 sec >---------------------------------------------------------- >Test Passed. >"x86_64-mergeable-strings" end time: Dec 04 14:13 CST >"x86_64-mergeable-strings" time elapsed: 00:00:00 >---------------------------------------------------------- > >174/335 Testing: x86_64-nmagic >174/335 Test: x86_64-nmagic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/nmagic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-nmagic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/nmagic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/nmagic.sh .sh >++ testname=nmagic >++ echo -n 'Testing nmagic ... ' >Testing nmagic ... ++ t=out/test/elf/x86_64/nmagic >++ mkdir -p out/test/elf/x86_64/nmagic >+ cat >+ cc -o out/test/elf/x86_64/nmagic/a.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/nmagic/exe1 out/test/elf/x86_64/nmagic/a.o -nostdlib -Wl,-nmagic >+ cc -B. -o out/test/elf/x86_64/nmagic/exe2 out/test/elf/x86_64/nmagic/a.o -nostdlib >++ nm out/test/elf/x86_64/nmagic/exe1 >++ grep ' end$' >++ cut '-d ' -f1 >+ end1= >++ nm out/test/elf/x86_64/nmagic/exe2 >++ grep ' end$' >++ cut '-d ' -f1 >+ end2= >+ '[' 0 -lt 0 ']' >++ on_error 14 >++ code=1 >++ echo 'command failed: 14: [ $((0x$end1)) -lt $((0x$end2)) ]' >command failed: 14: [ $((0x$end1)) -lt $((0x$end2)) ] >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.32 sec >---------------------------------------------------------- >Test Failed. >"x86_64-nmagic" end time: Dec 04 14:13 CST >"x86_64-nmagic" time elapsed: 00:00:00 >---------------------------------------------------------- > >176/335 Testing: x86_64-no-quick-exit >176/335 Test: x86_64-no-quick-exit >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/no-quick-exit.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-no-quick-exit" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/no-quick-exit.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-no-quick-exit' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 13 >++ code=1 >++ echo 'command failed: 13: $CC -B. -o $t/exe $t/a.o -Wl,-no-quick-exit' >command failed: 13: $CC -B. -o $t/exe $t/a.o -Wl,-no-quick-exit >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.19 sec >---------------------------------------------------------- >Test Failed. >"x86_64-no-quick-exit" end time: Dec 04 14:13 CST >"x86_64-no-quick-exit" time elapsed: 00:00:00 >---------------------------------------------------------- > >177/335 Testing: x86_64-no-undefined-version >177/335 Test: x86_64-no-undefined-version >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/no-undefined-version.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-no-undefined-version" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/no-undefined-version.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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; };' >+ cat >+ cc -o out/test/elf/x86_64/no-undefined-version/b.o -c -xc - >+ 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 >++ on_error 10 >++ code=1 >++ echo 'command failed: 10: $CC -B. -o $t/exe -Wl,--version-script,$t/a.ver $t/b.o 2> $t/log' >command failed: 10: $CC -B. -o $t/exe -Wl,--version-script,$t/a.ver $t/b.o 2> $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.19 sec >---------------------------------------------------------- >Test Failed. >"x86_64-no-undefined-version" end time: Dec 04 14:13 CST >"x86_64-no-undefined-version" time elapsed: 00:00:00 >---------------------------------------------------------- > >179/335 Testing: x86_64-noinhibit-exec >179/335 Test: x86_64-noinhibit-exec >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/noinhibit-exec.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-noinhibit-exec" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/noinhibit-exec.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >++ on_error 11 >++ code=1 >++ echo 'command failed: 11: grep -q '\''undefined symbol: no-such-sym'\'' $t/log1' >command failed: 11: grep -q 'undefined symbol: no-such-sym' $t/log1 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.28 sec >---------------------------------------------------------- >Test Failed. >"x86_64-noinhibit-exec" end time: Dec 04 14:13 CST >"x86_64-noinhibit-exec" time elapsed: 00:00:00 >---------------------------------------------------------- > >172/335 Testing: x86_64-mold-wrapper >172/335 Test: x86_64-mold-wrapper >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/mold-wrapper.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-mold-wrapper" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/mold-wrapper.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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.4.0/work/mold-2.4.0_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.4.0/work/mold-2.4.0_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.4.0/work/mold-2.4.0_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.4.0/work/mold-2.4.0_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 >+ grep -q 'a.sh execvp' >++ pwd >+ LD_PRELOAD='/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_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 execvpe bar' >++ pwd >+ LD_PRELOAD='/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_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 >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.81 sec >---------------------------------------------------------- >Test Passed. >"x86_64-mold-wrapper" end time: Dec 04 14:13 CST >"x86_64-mold-wrapper" time elapsed: 00:00:00 >---------------------------------------------------------- > >178/335 Testing: x86_64-nocopyreloc >178/335 Test: x86_64-nocopyreloc >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/nocopyreloc.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-nocopyreloc" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/nocopyreloc.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 = i686 ']' >+ '[' 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 ><end of output> >Test time = 0.51 sec >---------------------------------------------------------- >Test Passed. >"x86_64-nocopyreloc" end time: Dec 04 14:13 CST >"x86_64-nocopyreloc" time elapsed: 00:00:00 >---------------------------------------------------------- > >180/335 Testing: x86_64-non-canonical-plt >180/335 Test: x86_64-non-canonical-plt >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/non-canonical-plt.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-non-canonical-plt" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/non-canonical-plt.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/non-canonical-plt/c.o -c -xc - -fPIC >+ 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 ><end of output> >Test time = 0.42 sec >---------------------------------------------------------- >Test Passed. >"x86_64-non-canonical-plt" end time: Dec 04 14:13 CST >"x86_64-non-canonical-plt" time elapsed: 00:00:00 >---------------------------------------------------------- > >182/335 Testing: x86_64-now >182/335 Test: x86_64-now >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/now.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-now" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/now.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -c -fPIC -o out/test/elf/x86_64/now/a.o -xc - >+ 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 ><end of output> >Test time = 0.29 sec >---------------------------------------------------------- >Test Passed. >"x86_64-now" end time: Dec 04 14:13 CST >"x86_64-now" time elapsed: 00:00:00 >---------------------------------------------------------- > >183/335 Testing: x86_64-oformat-binary >183/335 Test: x86_64-oformat-binary >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/oformat-binary.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-oformat-binary" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/oformat-binary.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.35 sec >---------------------------------------------------------- >Test Passed. >"x86_64-oformat-binary" end time: Dec 04 14:13 CST >"x86_64-oformat-binary" time elapsed: 00:00:00 >---------------------------------------------------------- > >181/335 Testing: x86_64-nostdlib >181/335 Test: x86_64-nostdlib >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/nostdlib.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-nostdlib" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/nostdlib.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.65 sec >---------------------------------------------------------- >Test Passed. >"x86_64-nostdlib" end time: Dec 04 14:13 CST >"x86_64-nostdlib" time elapsed: 00:00:00 >---------------------------------------------------------- > >185/335 Testing: x86_64-pack-dyn-relocs-relr >185/335 Test: x86_64-pack-dyn-relocs-relr >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/pack-dyn-relocs-relr.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-pack-dyn-relocs-relr" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/pack-dyn-relocs-relr.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-pack-dyn-relocs=relr', did you mean '--pack-dyn-relocs=relr' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 19 >++ code=1 >++ echo 'command failed: 19: $CC -B. -o $t/exe2 $t/a.o -pie -Wl,-pack-dyn-relocs=relr' >command failed: 19: $CC -B. -o $t/exe2 $t/a.o -pie -Wl,-pack-dyn-relocs=relr >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Failed. >"x86_64-pack-dyn-relocs-relr" end time: Dec 04 14:13 CST >"x86_64-pack-dyn-relocs-relr" time elapsed: 00:00:00 >---------------------------------------------------------- > >186/335 Testing: x86_64-package-metadata >186/335 Test: x86_64-package-metadata >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/package-metadata.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-package-metadata" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/package-metadata.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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"}' >ld.lld: error: unknown argument '-package-metadata={"foo":"bar"}', did you mean '--package-metadata={"foo":"bar"}' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 11 >++ code=1 >++ echo 'command failed: 11: $CC -B. -o $t/exe $t/a.o -Wl,-package-metadata='\''{"foo":"bar"}'\''' >command failed: 11: $CC -B. -o $t/exe $t/a.o -Wl,-package-metadata='{"foo":"bar"}' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.21 sec >---------------------------------------------------------- >Test Failed. >"x86_64-package-metadata" end time: Dec 04 14:13 CST >"x86_64-package-metadata" time elapsed: 00:00:00 >---------------------------------------------------------- > >173/335 Testing: x86_64-mold-wrapper2 >173/335 Test: x86_64-mold-wrapper2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/mold-wrapper2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-mold-wrapper2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/mold-wrapper2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q '__[at]san_init' >+ nm mold >+ 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 ><end of output> >Test time = 1.25 sec >---------------------------------------------------------- >Test Passed. >"x86_64-mold-wrapper2" end time: Dec 04 14:13 CST >"x86_64-mold-wrapper2" time elapsed: 00:00:01 >---------------------------------------------------------- > >184/335 Testing: x86_64-omagic >184/335 Test: x86_64-omagic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/omagic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-omagic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/omagic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ echo 'int main() {}' >+ cc -static -o /dev/null -xc - >+ cat >+ cc -c -o out/test/elf/x86_64/omagic/a.o -xc - -fno-PIC >+ 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 ><end of output> >Test time = 0.42 sec >---------------------------------------------------------- >Test Passed. >"x86_64-omagic" end time: Dec 04 14:13 CST >"x86_64-omagic" time elapsed: 00:00:00 >---------------------------------------------------------- > >187/335 Testing: x86_64-physical-image-base >187/335 Test: x86_64-physical-image-base >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/physical-image-base.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-physical-image-base" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/physical-image-base.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 BusyBox >+ grep --version >+ 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 >ld.lld: error: unknown argument '--physical-image-base=0x800000' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 20 >++ code=1 >++ echo 'command failed: 20: $CC -B. -no-pie -o $t/exe1 $t/a.o -Wl,--image-base=0x200000 -Wl,--physical-image-base=0x800000' >command failed: 20: $CC -B. -no-pie -o $t/exe1 $t/a.o -Wl,--image-base=0x200000 -Wl,--physical-image-base=0x800000 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Failed. >"x86_64-physical-image-base" end time: Dec 04 14:13 CST >"x86_64-physical-image-base" time elapsed: 00:00:00 >---------------------------------------------------------- > >188/335 Testing: x86_64-pie >188/335 Test: x86_64-pie >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/pie.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-pie" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/pie.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.28 sec >---------------------------------------------------------- >Test Passed. >"x86_64-pie" end time: Dec 04 14:13 CST >"x86_64-pie" time elapsed: 00:00:00 >---------------------------------------------------------- > >192/335 Testing: x86_64-print-dependencies >192/335 Test: x86_64-print-dependencies >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/print-dependencies.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-print-dependencies" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/print-dependencies.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ 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 - >+ cat >+ 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_error 14 >++ code=1 >++ echo 'command failed: 14: grep -q '\''b\.o.*a\.o.*foo$'\'' $t/log' >command failed: 14: grep -q 'b\.o.*a\.o.*foo$' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Failed. >"x86_64-print-dependencies" end time: Dec 04 14:13 CST >"x86_64-print-dependencies" time elapsed: 00:00:00 >---------------------------------------------------------- > >191/335 Testing: x86_64-preinit-array >191/335 Test: x86_64-preinit-array >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/preinit-array.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-preinit-array" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/preinit-array.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/preinit-array/b.o -c -xc - >+ 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 ><end of output> >Test time = 0.31 sec >---------------------------------------------------------- >Test Passed. >"x86_64-preinit-array" end time: Dec 04 14:13 CST >"x86_64-preinit-array" time elapsed: 00:00:00 >---------------------------------------------------------- > >189/335 Testing: x86_64-plt-dso >189/335 Test: x86_64-plt-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/plt-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-plt-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/plt-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -c -o out/test/elf/x86_64/plt-dso/c.o -xc - >+ 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 ><end of output> >Test time = 0.42 sec >---------------------------------------------------------- >Test Passed. >"x86_64-plt-dso" end time: Dec 04 14:13 CST >"x86_64-plt-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >190/335 Testing: x86_64-pltgot >190/335 Test: x86_64-pltgot >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/pltgot.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-pltgot" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/pltgot.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.44 sec >---------------------------------------------------------- >Test Passed. >"x86_64-pltgot" end time: Dec 04 14:13 CST >"x86_64-pltgot" time elapsed: 00:00:00 >---------------------------------------------------------- > >167/335 Testing: x86_64-many-sections >167/335 Test: x86_64-many-sections >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/many-sections.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-many-sections" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/many-sections.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 1.98 sec >---------------------------------------------------------- >Test Passed. >"x86_64-many-sections" end time: Dec 04 14:13 CST >"x86_64-many-sections" time elapsed: 00:00:01 >---------------------------------------------------------- > >199/335 Testing: x86_64-reloc-rodata >199/335 Test: x86_64-reloc-rodata >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/reloc-rodata.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-reloc-rodata" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/reloc-rodata.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.04 sec >---------------------------------------------------------- >Test Passed. >"x86_64-reloc-rodata" end time: Dec 04 14:13 CST >"x86_64-reloc-rodata" time elapsed: 00:00:00 >---------------------------------------------------------- > >193/335 Testing: x86_64-protected-dynsym >193/335 Test: x86_64-protected-dynsym >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/protected-dynsym.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-protected-dynsym" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/protected-dynsym.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -Eq 'PROTECTED\b.*\bfoo\b' >+ readelf --symbols out/test/elf/x86_64/protected-dynsym/c.so >+ 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 ><end of output> >Test time = 0.44 sec >---------------------------------------------------------- >Test Passed. >"x86_64-protected-dynsym" end time: Dec 04 14:13 CST >"x86_64-protected-dynsym" time elapsed: 00:00:00 >---------------------------------------------------------- > >194/335 Testing: x86_64-protected >194/335 Test: x86_64-protected >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/protected.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-protected" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/protected.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q '3 4 0' >+ out/test/elf/x86_64/protected/exe >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Passed. >"x86_64-protected" end time: Dec 04 14:13 CST >"x86_64-protected" time elapsed: 00:00:00 >---------------------------------------------------------- > >198/335 Testing: x86_64-relax-got-load >198/335 Test: x86_64-relax-got-load >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relax-got-load.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relax-got-load" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relax-got-load.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -o out/test/elf/x86_64/relax-got-load/b.o -c -xc - -fPIC >+ cat >+ 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 ><end of output> >Test time = 0.32 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relax-got-load" end time: Dec 04 14:13 CST >"x86_64-relax-got-load" time elapsed: 00:00:00 >---------------------------------------------------------- > >195/335 Testing: x86_64-push-pop-state >195/335 Test: x86_64-push-pop-state >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/push-pop-state.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-push-pop-state" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/push-pop-state.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.54 sec >---------------------------------------------------------- >Test Passed. >"x86_64-push-pop-state" end time: Dec 04 14:13 CST >"x86_64-push-pop-state" time elapsed: 00:00:00 >---------------------------------------------------------- > >197/335 Testing: x86_64-range-extension-thunk2 >197/335 Test: x86_64-range-extension-thunk2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/range-extension-thunk2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-range-extension-thunk2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/range-extension-thunk2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><stdin>:3:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 3 | void f0(); > | ^ ><stdin>:24:6: note: conflicting prototype is here > 24 | void f0(int x) { printf("0 "); if (!x) f9(); } > | ^ ><stdin>:4:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 4 | void f1(); > | ^ ><stdin>:27:6: note: conflicting prototype is here > 27 | void f1(int x) { printf("1 "); f8(x); } > | ^ ><stdin>:27:34: warning: passing arguments to 'f8' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 27 | void f1(int x) { printf("1 "); f8(x); } > | ^ ><stdin>:5:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 5 | void f2(); > | ^ ><stdin>:30:6: note: conflicting prototype is here > 30 | void f2(int x) { printf("2 "); f7(x); } > | ^ ><stdin>:30:34: warning: passing arguments to 'f7' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 30 | void f2(int x) { printf("2 "); f7(x); } > | ^ ><stdin>:6:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 6 | void f3(); > | ^ ><stdin>:33:6: note: conflicting prototype is here > 33 | void f3(int x) { printf("3 "); f6(x); } > | ^ ><stdin>:33:34: warning: passing arguments to 'f6' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 33 | void f3(int x) { printf("3 "); f6(x); } > | ^ ><stdin>:7:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 7 | void f4(); > | ^ ><stdin>:36:6: note: conflicting prototype is here > 36 | void f4(int x) { printf("4 "); f5(x); } > | ^ ><stdin>:36:34: warning: passing arguments to 'f5' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 36 | void f4(int x) { printf("4 "); f5(x); } > | ^ ><stdin>:8:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 8 | void f5(); > | ^ ><stdin>:39:6: note: conflicting prototype is here > 39 | void f5(int x) { printf("5 "); f10(x); } > | ^ ><stdin>:39:35: warning: passing arguments to 'f10' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 39 | void f5(int x) { printf("5 "); f10(x); } > | ^ ><stdin>:9:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 9 | void f6(); > | ^ ><stdin>:42:6: note: conflicting prototype is here > 42 | void f6(int x) { printf("6 "); f4(x); } > | ^ ><stdin>:10:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 10 | void f7(); > | ^ ><stdin>:45:6: note: conflicting prototype is here > 45 | void f7(int x) { printf("7 "); f3(x); } > | ^ ><stdin>:11:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 11 | void f8(); > | ^ ><stdin>:48:6: note: conflicting prototype is here > 48 | void f8(int x) { printf("8 "); f2(x); } > | ^ ><stdin>:12:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 12 | void f9(); > | ^ ><stdin>:51:6: note: conflicting prototype is here > 51 | void f9(int x) { printf("9 "); f1(x); } > | ^ ><stdin>:13:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 13 | void f10(); > | ^ ><stdin>:54:6: note: conflicting prototype is here > 54 | void f10(int x) { printf("10 "); f19(x); } > | ^ ><stdin>:54:37: warning: passing arguments to 'f19' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 54 | void f10(int x) { printf("10 "); f19(x); } > | ^ ><stdin>:14:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 14 | void f11(); > | ^ ><stdin>:57:6: note: conflicting prototype is here > 57 | void f11(int x) { printf("11 "); f18(x); } > | ^ ><stdin>:57:37: warning: passing arguments to 'f18' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 57 | void f11(int x) { printf("11 "); f18(x); } > | ^ ><stdin>:15:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 15 | void f12(); > | ^ ><stdin>:60:6: note: conflicting prototype is here > 60 | void f12(int x) { printf("12 "); f17(x); } > | ^ ><stdin>:60:37: warning: passing arguments to 'f17' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 60 | void f12(int x) { printf("12 "); f17(x); } > | ^ ><stdin>:16:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 16 | void f13(); > | ^ ><stdin>:63:6: note: conflicting prototype is here > 63 | void f13(int x) { printf("13 "); f16(x); } > | ^ ><stdin>:63:37: warning: passing arguments to 'f16' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 63 | void f13(int x) { printf("13 "); f16(x); } > | ^ ><stdin>:17:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 17 | void f14(); > | ^ ><stdin>:66:6: note: conflicting prototype is here > 66 | void f14(int x) { printf("14 "); f15(x); } > | ^ ><stdin>:66:37: warning: passing arguments to 'f15' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] > 66 | void f14(int x) { printf("14 "); f15(x); } > | ^ ><stdin>:18:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 18 | void f15(); > | ^ ><stdin>:69:6: note: conflicting prototype is here > 69 | void f15(int x) { printf("15 "); f0(x + 1); } > | ^ ><stdin>:19:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 19 | void f16(); > | ^ ><stdin>:72:6: note: conflicting prototype is here > 72 | void f16(int x) { printf("16 "); f14(x); } > | ^ ><stdin>:20:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 20 | void f17(); > | ^ ><stdin>:75:6: note: conflicting prototype is here > 75 | void f17(int x) { printf("17 "); f13(x); } > | ^ ><stdin>:21:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 21 | void f18(); > | ^ ><stdin>:78:6: note: conflicting prototype is here > 78 | void f18(int x) { printf("18 "); f12(x); } > | ^ ><stdin>:22:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] > 22 | void f19(); > | ^ ><stdin>:81:6: note: conflicting prototype is here > 81 | void f19(int x) { printf("19 "); f11(x); } > | ^ >30 warnings generated. >+ 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 ><end of output> >Test time = 0.62 sec >---------------------------------------------------------- >Test Passed. >"x86_64-range-extension-thunk2" end time: Dec 04 14:13 CST >"x86_64-range-extension-thunk2" time elapsed: 00:00:00 >---------------------------------------------------------- > >196/335 Testing: x86_64-range-extension-thunk >196/335 Test: x86_64-range-extension-thunk >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/range-extension-thunk.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-range-extension-thunk" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/range-extension-thunk.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 = i686 ']' >+ '[' x86_64 = riscv32 ']' >+ '[' x86_64 = sparc64 ']' >+ '[' -n '' -a '' = power10 ']' >+ 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 ><end of output> >Test time = 0.73 sec >---------------------------------------------------------- >Test Passed. >"x86_64-range-extension-thunk" end time: Dec 04 14:13 CST >"x86_64-range-extension-thunk" time elapsed: 00:00:00 >---------------------------------------------------------- > >200/335 Testing: x86_64-relocatable-archive >200/335 Test: x86_64-relocatable-archive >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-archive.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relocatable-archive" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-archive.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -c -o out/test/elf/x86_64/relocatable-archive/b.o -xc - >+ cat >+ 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 ><end of output> >Test time = 0.77 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relocatable-archive" end time: Dec 04 14:13 CST >"x86_64-relocatable-archive" time elapsed: 00:00:00 >---------------------------------------------------------- > >202/335 Testing: x86_64-relocatable-debug-info >202/335 Test: x86_64-relocatable-debug-info >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-debug-info.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relocatable-debug-info" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-debug-info.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: out/test/elf/x86_64/relocatable-debug-info/c.o:(.debug_line_str): offset is outside the section >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 19 >++ code=1 >++ echo 'command failed: 19: $CC -B. -o $t/exe $t/c.o' >command failed: 19: $CC -B. -o $t/exe $t/c.o >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.78 sec >---------------------------------------------------------- >Test Failed. >"x86_64-relocatable-debug-info" end time: Dec 04 14:13 CST >"x86_64-relocatable-debug-info" time elapsed: 00:00:00 >---------------------------------------------------------- > >206/335 Testing: x86_64-relocatable-mergeable-sections >206/335 Test: x86_64-relocatable-mergeable-sections >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-mergeable-sections.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relocatable-mergeable-sections" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-mergeable-sections.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.55 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relocatable-mergeable-sections" end time: Dec 04 14:13 CST >"x86_64-relocatable-mergeable-sections" time elapsed: 00:00:00 >---------------------------------------------------------- > >205/335 Testing: x86_64-relocatable-merge-sections >205/335 Test: x86_64-relocatable-merge-sections >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-merge-sections.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relocatable-merge-sections" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-merge-sections.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.66 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relocatable-merge-sections" end time: Dec 04 14:13 CST >"x86_64-relocatable-merge-sections" time elapsed: 00:00:00 >---------------------------------------------------------- > >207/335 Testing: x86_64-relocatable-no-ehframe >207/335 Test: x86_64-relocatable-no-ehframe >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-no-ehframe.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relocatable-no-ehframe" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-no-ehframe.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ grep -q __tsan_init >+ nm mold >+ 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 ><end of output> >Test time = 0.65 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relocatable-no-ehframe" end time: Dec 04 14:13 CST >"x86_64-relocatable-no-ehframe" time elapsed: 00:00:00 >---------------------------------------------------------- > >210/335 Testing: x86_64-repro >210/335 Test: x86_64-repro >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/repro.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-repro" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/repro.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -c -o out/test/elf/x86_64/repro/a.o -xc - >+ cat >+ 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 >ld.lld: error: unknown argument '-repro' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 18 >++ code=1 >++ echo 'command failed: 18: $CC -B. -o $t/exe $t/a.o -Wl,-repro' >command failed: 18: $CC -B. -o $t/exe $t/a.o -Wl,-repro >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.45 sec >---------------------------------------------------------- >Test Failed. >"x86_64-repro" end time: Dec 04 14:13 CST >"x86_64-repro" time elapsed: 00:00:00 >---------------------------------------------------------- > >208/335 Testing: x86_64-relocatable >208/335 Test: x86_64-relocatable >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relocatable" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.79 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relocatable" end time: Dec 04 14:13 CST >"x86_64-relocatable" time elapsed: 00:00:00 >---------------------------------------------------------- > >201/335 Testing: x86_64-relocatable-c++ >201/335 Test: x86_64-relocatable-c++ >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-c++.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relocatable-c++" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-c++.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 = m68k ']' >+ '[' 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 ><end of output> >Test time = 1.66 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relocatable-c++" end time: Dec 04 14:13 CST >"x86_64-relocatable-c++" time elapsed: 00:00:01 >---------------------------------------------------------- > >209/335 Testing: x86_64-relro >209/335 Test: x86_64-relro >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relro.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relro" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relro.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q 'Hello world' >+ out/test/elf/x86_64/relro/exe1 >+ 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 ><end of output> >Test time = 0.68 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relro" end time: Dec 04 14:13 CST >"x86_64-relro" time elapsed: 00:00:00 >---------------------------------------------------------- > >203/335 Testing: x86_64-relocatable-exception >203/335 Test: x86_64-relocatable-exception >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-exception.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relocatable-exception" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-exception.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 = m68k ']' >+ '[' 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 ><end of output> >Test time = 1.58 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relocatable-exception" end time: Dec 04 14:13 CST >"x86_64-relocatable-exception" time elapsed: 00:00:01 >---------------------------------------------------------- > >214/335 Testing: x86_64-retain-symbols-file >214/335 Test: x86_64-retain-symbols-file >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/retain-symbols-file.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-retain-symbols-file" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/retain-symbols-file.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: version script assignment of 'global' to symbol 'foo' failed: symbol not defined >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 16 >++ code=1 >++ echo 'command failed: 16: $CC -B. -o $t/exe $t/a.o -Wl,--retain-symbols-file=$t/symbols' >command failed: 16: $CC -B. -o $t/exe $t/a.o -Wl,--retain-symbols-file=$t/symbols >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Failed. >"x86_64-retain-symbols-file" end time: Dec 04 14:13 CST >"x86_64-retain-symbols-file" time elapsed: 00:00:00 >---------------------------------------------------------- > >213/335 Testing: x86_64-response-file2 >213/335 Test: x86_64-response-file2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/response-file2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-response-file2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/response-file2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.32 sec >---------------------------------------------------------- >Test Passed. >"x86_64-response-file2" end time: Dec 04 14:13 CST >"x86_64-response-file2" time elapsed: 00:00:00 >---------------------------------------------------------- > >211/335 Testing: x86_64-require-defined >211/335 Test: x86_64-require-defined >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/require-defined.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-require-defined" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/require-defined.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -o out/test/elf/x86_64/require-defined/a.o -c -xc - >+ cat >+ 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 >ld.lld: error: unknown argument '-require-defined' >ld.lld: error: cannot open foobar: No such file or directory >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 18 >++ code=1 >++ echo 'command failed: 18: $CC -B. -o $t/exe $t/c.o $t/b.a -Wl,-require-defined,foobar' >command failed: 18: $CC -B. -o $t/exe $t/c.o $t/b.a -Wl,-require-defined,foobar >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.54 sec >---------------------------------------------------------- >Test Failed. >"x86_64-require-defined" end time: Dec 04 14:13 CST >"x86_64-require-defined" time elapsed: 00:00:00 >---------------------------------------------------------- > >212/335 Testing: x86_64-response-file >212/335 Test: x86_64-response-file >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/response-file.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-response-file" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/response-file.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Passed. >"x86_64-response-file" end time: Dec 04 14:13 CST >"x86_64-response-file" time elapsed: 00:00:00 >---------------------------------------------------------- > >216/335 Testing: x86_64-rodata-name >216/335 Test: x86_64-rodata-name >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/rodata-name.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-rodata-name" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/rodata-name.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/rodata-name.sh .sh >++ testname=rodata-name >++ echo -n 'Testing rodata-name ... ' >Testing rodata-name ... ++ t=out/test/elf/x86_64/rodata-name >++ mkdir -p out/test/elf/x86_64/rodata-name >+ '[' x86_64 = arm ']' >+ cat >+ cc -c -o out/test/elf/x86_64/rodata-name/a.o -x assembler - >+ cat >+ cc -c -o out/test/elf/x86_64/rodata-name/b.o -xc - >+ cc -B. -o out/test/elf/x86_64/rodata-name/exe out/test/elf/x86_64/rodata-name/a.o out/test/elf/x86_64/rodata-name/b.o >+ readelf -p .rodata.str1.1 out/test/elf/x86_64/rodata-name/exe >+ grep -q Hello >readelf: Warning: Section '.rodata.str1.1' was not dumped because it does not exist >++ on_error 46 >++ code=1 >++ echo 'command failed: 46: grep -q Hello' >command failed: 46: grep -q Hello >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Failed. >"x86_64-rodata-name" end time: Dec 04 14:13 CST >"x86_64-rodata-name" time elapsed: 00:00:00 >---------------------------------------------------------- > >220/335 Testing: x86_64-section-align >220/335 Test: x86_64-section-align >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/section-align.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-section-align" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/section-align.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/section-align/a.o -c -xc -fno-PIC - >+ 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 >ld.lld: error: unknown argument '--section-align=.foo=0x2000' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 9 >++ code=1 >++ echo 'command failed: 9: $CC -B. -o $t/exe1 $t/a.o -Wl,--section-align=.foo=0x2000' >command failed: 9: $CC -B. -o $t/exe1 $t/a.o -Wl,--section-align=.foo=0x2000 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.17 sec >---------------------------------------------------------- >Test Failed. >"x86_64-section-align" end time: Dec 04 14:13 CST >"x86_64-section-align" time elapsed: 00:00:00 >---------------------------------------------------------- > >219/335 Testing: x86_64-run-clang >219/335 Test: x86_64-run-clang >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/run-clang.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-run-clang" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/run-clang.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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.4.0/work/mold-2.4.0_build/mold-wrapper.so >++ pwd >+ MOLD_PATH=/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_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 ><end of output> >Test time = 0.34 sec >---------------------------------------------------------- >Test Passed. >"x86_64-run-clang" end time: Dec 04 14:13 CST >"x86_64-run-clang" time elapsed: 00:00:00 >---------------------------------------------------------- > >215/335 Testing: x86_64-reverse-sections >215/335 Test: x86_64-reverse-sections >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/reverse-sections.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-reverse-sections" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/reverse-sections.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.55 sec >---------------------------------------------------------- >Test Passed. >"x86_64-reverse-sections" end time: Dec 04 14:13 CST >"x86_64-reverse-sections" time elapsed: 00:00:00 >---------------------------------------------------------- > >221/335 Testing: x86_64-section-order >221/335 Test: x86_64-section-order >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/section-order.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-section-order" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/section-order.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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' >ld.lld: error: unknown argument '--section-order==0x100000 PHDR =0x200000 .fn2 TEXT =0x300000 .fn1 DATA BSS RODATA' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 18 >++ code=1 >++ echo 'command failed: 18: $CC -B. -o $t/exe1 $t/a.o -no-pie -Wl,--section-order='\''=0x100000 PHDR =0x200000 .fn2 TEXT =0x300000 .fn1 DATA BSS RODATA'\''' >command failed: 18: $CC -B. -o $t/exe1 $t/a.o -no-pie -Wl,--section-order='=0x100000 PHDR =0x200000 .fn2 TEXT =0x300000 .fn1 DATA BSS RODATA' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Failed. >"x86_64-section-order" end time: Dec 04 14:13 CST >"x86_64-section-order" time elapsed: 00:00:00 >---------------------------------------------------------- > >218/335 Testing: x86_64-rpath >218/335 Test: x86_64-rpath >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/rpath.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-rpath" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/rpath.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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/ >+ grep -Fq 'Library runpath: [/foo:/bar:/no/such/directory:/]' >+ readelf --dynamic out/test/elf/x86_64/rpath/exe1 >+ 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_error 15 >++ code=1 >++ echo 'command failed: 15: grep -Fq '\''Library runpath: [/foo:/bar:/baz]'\''' >command failed: 15: grep -Fq 'Library runpath: [/foo:/bar:/baz]' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.39 sec >---------------------------------------------------------- >Test Failed. >"x86_64-rpath" end time: Dec 04 14:13 CST >"x86_64-rpath" time elapsed: 00:00:00 >---------------------------------------------------------- > >217/335 Testing: x86_64-rosegment >217/335 Test: x86_64-rosegment >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/rosegment.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-rosegment" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/rosegment.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.64 sec >---------------------------------------------------------- >Test Passed. >"x86_64-rosegment" end time: Dec 04 14:13 CST >"x86_64-rosegment" time elapsed: 00:00:00 >---------------------------------------------------------- > >222/335 Testing: x86_64-section-start >222/335 Test: x86_64-section-start >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/section-start.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-section-start" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/section-start.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q 'main fn1 fn2 0x10000000 0x20000000' >+ out/test/elf/x86_64/section-start/exe1 >+ sed 's/0x[0-9a-f]*//' >+ readelf -W --segments out/test/elf/x86_64/section-start/exe1 >+ grep ' LOAD ' >+ 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 >+ out/test/elf/x86_64/section-start/exe2 >+ grep -q 'main fn1 fn2 0x20000000 0x10000000' >+ 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 ><end of output> >Test time = 0.51 sec >---------------------------------------------------------- >Test Passed. >"x86_64-section-start" end time: Dec 04 14:13 CST >"x86_64-section-start" time elapsed: 00:00:00 >---------------------------------------------------------- > >223/335 Testing: x86_64-shared-abs-sym >223/335 Test: x86_64-shared-abs-sym >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/shared-abs-sym.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-shared-abs-sym" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/shared-abs-sym.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ false >++ on_error 22 >++ code=1 >++ echo 'command failed: 22: false' >command failed: 22: false >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.50 sec >---------------------------------------------------------- >Test Failed. >"x86_64-shared-abs-sym" end time: Dec 04 14:13 CST >"x86_64-shared-abs-sym" time elapsed: 00:00:00 >---------------------------------------------------------- > >224/335 Testing: x86_64-shared >224/335 Test: x86_64-shared >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/shared.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-shared" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/shared.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.55 sec >---------------------------------------------------------- >Test Passed. >"x86_64-shared" end time: Dec 04 14:13 CST >"x86_64-shared" time elapsed: 00:00:00 >---------------------------------------------------------- > >227/335 Testing: x86_64-soname >227/335 Test: x86_64-soname >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/soname.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-soname" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/soname.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.36 sec >---------------------------------------------------------- >Test Passed. >"x86_64-soname" end time: Dec 04 14:13 CST >"x86_64-soname" time elapsed: 00:00:00 >---------------------------------------------------------- > >228/335 Testing: x86_64-spare-program-headers >228/335 Test: x86_64-spare-program-headers >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/spare-program-headers.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-spare-program-headers" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/spare-program-headers.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/spare-program-headers.sh .sh >++ testname=spare-program-headers >++ echo -n 'Testing spare-program-headers ... ' >Testing spare-program-headers ... ++ t=out/test/elf/x86_64/spare-program-headers >++ mkdir -p out/test/elf/x86_64/spare-program-headers >+ cc -o out/test/elf/x86_64/spare-program-headers/a.o -c -xc - >+ cat >+ cc -B. -o out/test/elf/x86_64/spare-program-headers/exe1 out/test/elf/x86_64/spare-program-headers/a.o >+ out/test/elf/x86_64/spare-program-headers/exe1 >+ grep -q 'Hello world' >++ readelf -Wl out/test/elf/x86_64/spare-program-headers/exe1 >++ wc -l >++ grep NULL >+ '[' 0 -eq 0 ']' >+ cc -B. -o out/test/elf/x86_64/spare-program-headers/exe2 out/test/elf/x86_64/spare-program-headers/a.o -Wl,--spare-program-headers=0 >ld.lld: error: unknown argument '--spare-program-headers=0' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 15 >++ code=1 >++ echo 'command failed: 15: $CC -B. -o $t/exe2 $t/a.o -Wl,--spare-program-headers=0' >command failed: 15: $CC -B. -o $t/exe2 $t/a.o -Wl,--spare-program-headers=0 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.35 sec >---------------------------------------------------------- >Test Failed. >"x86_64-spare-program-headers" end time: Dec 04 14:13 CST >"x86_64-spare-program-headers" time elapsed: 00:00:00 >---------------------------------------------------------- > >225/335 Testing: x86_64-shuffle-sections-seed >225/335 Test: x86_64-shuffle-sections-seed >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/shuffle-sections-seed.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-shuffle-sections-seed" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/shuffle-sections-seed.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >++ seq 1 1000 >+ cc -o out/test/elf/x86_64/shuffle-sections-seed/b.o -ffunction-sections -c -xc - >+ 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 >ld.lld: error: unknown argument '-shuffle-sections=42', did you mean '--shuffle-sections=42' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 19 >++ code=1 >++ echo 'command failed: 19: $CC -B. -o $t/exe2 $t/a.o $t/b.o -Wl,-shuffle-sections=42' >command failed: 19: $CC -B. -o $t/exe2 $t/a.o $t/b.o -Wl,-shuffle-sections=42 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.75 sec >---------------------------------------------------------- >Test Failed. >"x86_64-shuffle-sections-seed" end time: Dec 04 14:13 CST >"x86_64-shuffle-sections-seed" time elapsed: 00:00:00 >---------------------------------------------------------- > >231/335 Testing: x86_64-start-stop >231/335 Test: x86_64-start-stop >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/start-stop.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-start-stop" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/start-stop.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '--start-stop' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 8 >++ code=1 >++ echo 'command failed: 8: $CC -B. -o $t/exe1 $t/a.o -Wl,--start-stop' >command failed: 8: $CC -B. -o $t/exe1 $t/a.o -Wl,--start-stop >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.18 sec >---------------------------------------------------------- >Test Failed. >"x86_64-start-stop" end time: Dec 04 14:13 CST >"x86_64-start-stop" time elapsed: 00:00:00 >---------------------------------------------------------- > >226/335 Testing: x86_64-shuffle-sections >226/335 Test: x86_64-shuffle-sections >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/shuffle-sections.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-shuffle-sections" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/shuffle-sections.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-shuffle-sections', did you mean '--shuffle-sections' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 19 >++ code=1 >++ echo 'command failed: 19: $CC -B. -o $t/exe2 $t/a.o $t/b.o -Wl,-shuffle-sections' >command failed: 19: $CC -B. -o $t/exe2 $t/a.o $t/b.o -Wl,-shuffle-sections >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.83 sec >---------------------------------------------------------- >Test Failed. >"x86_64-shuffle-sections" end time: Dec 04 14:13 CST >"x86_64-shuffle-sections" time elapsed: 00:00:00 >---------------------------------------------------------- > >229/335 Testing: x86_64-start-lib >229/335 Test: x86_64-start-lib >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/start-lib.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-start-lib" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/start-lib.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-start-lib" end time: Dec 04 14:13 CST >"x86_64-start-lib" time elapsed: 00:00:00 >---------------------------------------------------------- > >230/335 Testing: x86_64-start-stop-symbol >230/335 Test: x86_64-start-stop-symbol >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/start-stop-symbol.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-start-stop-symbol" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/start-stop-symbol.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -c -o out/test/elf/x86_64/start-stop-symbol/c.o -xc - >+ 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 ><end of output> >Test time = 0.46 sec >---------------------------------------------------------- >Test Passed. >"x86_64-start-stop-symbol" end time: Dec 04 14:13 CST >"x86_64-start-stop-symbol" time elapsed: 00:00:00 >---------------------------------------------------------- > >234/335 Testing: x86_64-stdout >234/335 Test: x86_64-stdout >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/stdout.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-stdout" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/stdout.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q 'Hello world' >+ out/test/elf/x86_64/stdout/exe >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-stdout" end time: Dec 04 14:13 CST >"x86_64-stdout" time elapsed: 00:00:00 >---------------------------------------------------------- > >235/335 Testing: x86_64-strip-debug >235/335 Test: x86_64-strip-debug >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/strip-debug.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-strip-debug" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/strip-debug.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-strip-debug" end time: Dec 04 14:13 CST >"x86_64-strip-debug" time elapsed: 00:00:00 >---------------------------------------------------------- > >236/335 Testing: x86_64-strip >236/335 Test: x86_64-strip >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/strip.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-strip" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/strip.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.21 sec >---------------------------------------------------------- >Test Passed. >"x86_64-strip" end time: Dec 04 14:13 CST >"x86_64-strip" time elapsed: 00:00:00 >---------------------------------------------------------- > >232/335 Testing: x86_64-static-archive >232/335 Test: x86_64-static-archive >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/static-archive.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-static-archive" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/static-archive.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q 8 >+ out/test/elf/x86_64/static-archive/exe >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.47 sec >---------------------------------------------------------- >Test Passed. >"x86_64-static-archive" end time: Dec 04 14:13 CST >"x86_64-static-archive" time elapsed: 00:00:00 >---------------------------------------------------------- > >238/335 Testing: x86_64-symbol-version-lto >238/335 Test: x86_64-symbol-version-lto >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-version-lto.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-symbol-version-lto" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-version-lto.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -fPIC -c -o out/test/elf/x86_64/symbol-version-lto/a.o -xc - -flto >+ 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 >+ 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 ><end of output> >Test time = 0.26 sec >---------------------------------------------------------- >Test Passed. >"x86_64-symbol-version-lto" end time: Dec 04 14:13 CST >"x86_64-symbol-version-lto" time elapsed: 00:00:00 >---------------------------------------------------------- > >168/335 Testing: x86_64-many-sections2 >168/335 Test: x86_64-many-sections2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/many-sections2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-many-sections2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/many-sections2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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' >+ seq 1 100000 >+ sed 's/.*/.section .data.\0,"aw"\n.globl x\0\nx\0: .word 0\n/g' >+ 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 ><end of output> >Test time = 5.67 sec >---------------------------------------------------------- >Test Passed. >"x86_64-many-sections2" end time: Dec 04 14:13 CST >"x86_64-many-sections2" time elapsed: 00:00:05 >---------------------------------------------------------- > >239/335 Testing: x86_64-symbol-version >239/335 Test: x86_64-symbol-version >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-version.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-symbol-version" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-version.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.26 sec >---------------------------------------------------------- >Test Passed. >"x86_64-symbol-version" end time: Dec 04 14:13 CST >"x86_64-symbol-version" time elapsed: 00:00:00 >---------------------------------------------------------- > >240/335 Testing: x86_64-symbol-version2 >240/335 Test: x86_64-symbol-version2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-version2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-symbol-version2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-version2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.29 sec >---------------------------------------------------------- >Test Passed. >"x86_64-symbol-version2" end time: Dec 04 14:13 CST >"x86_64-symbol-version2" time elapsed: 00:00:00 >---------------------------------------------------------- > >241/335 Testing: x86_64-symbol-version3 >241/335 Test: x86_64-symbol-version3 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-version3.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-symbol-version3" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-version3.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.28 sec >---------------------------------------------------------- >Test Passed. >"x86_64-symbol-version3" end time: Dec 04 14:13 CST >"x86_64-symbol-version3" time elapsed: 00:00:00 >---------------------------------------------------------- > >233/335 Testing: x86_64-static-pie >233/335 Test: x86_64-static-pie >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/static-pie.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-static-pie" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/static-pie.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/static-pie.sh .sh >++ testname=static-pie >++ echo -n 'Testing static-pie ... ' >Testing static-pie ... ++ t=out/test/elf/x86_64/static-pie >++ mkdir -p out/test/elf/x86_64/static-pie >+ test_cflags -static-pie >+ echo 'int main() {}' >+ cc -static-pie -o /dev/null -xc - >+ cat >+ cc -o out/test/elf/x86_64/static-pie/a.o -c -xc - -fPIE >+ cc -B. -o out/test/elf/x86_64/static-pie/exe1 out/test/elf/x86_64/static-pie/a.o -static-pie >+ out/test/elf/x86_64/static-pie/exe1 >+ grep -q 'Hello world' >+ cc -B. -o out/test/elf/x86_64/static-pie/exe2 out/test/elf/x86_64/static-pie/a.o -static-pie -Wl,--no-relax >+ out/test/elf/x86_64/static-pie/exe2 >+ grep -q 'Hello world' >++ on_error 17 >++ code=1 >++ echo 'command failed: 17: grep -q '\''Hello world'\''' >command failed: 17: grep -q 'Hello world' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.73 sec >---------------------------------------------------------- >Test Failed. >"x86_64-static-pie" end time: Dec 04 14:13 CST >"x86_64-static-pie" time elapsed: 00:00:00 >---------------------------------------------------------- > >204/335 Testing: x86_64-relocatable-many-sections >204/335 Test: x86_64-relocatable-many-sections >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-many-sections.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-relocatable-many-sections" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/relocatable-many-sections.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -c -xc -o out/test/elf/x86_64/relocatable-many-sections/b.o - >+ cat >+ ./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 ><end of output> >Test time = 3.53 sec >---------------------------------------------------------- >Test Passed. >"x86_64-relocatable-many-sections" end time: Dec 04 14:13 CST >"x86_64-relocatable-many-sections" time elapsed: 00:00:03 >---------------------------------------------------------- > >237/335 Testing: x86_64-symbol-rank >237/335 Test: x86_64-symbol-rank >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-rank.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-symbol-rank" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symbol-rank.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.51 sec >---------------------------------------------------------- >Test Passed. >"x86_64-symbol-rank" end time: Dec 04 14:13 CST >"x86_64-symbol-rank" time elapsed: 00:00:00 >---------------------------------------------------------- > >242/335 Testing: x86_64-symtab-dso >242/335 Test: x86_64-symtab-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symtab-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-symtab-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symtab-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/symtab-dso/a.o -c -xc - >+ 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 ><end of output> >Test time = 0.28 sec >---------------------------------------------------------- >Test Passed. >"x86_64-symtab-dso" end time: Dec 04 14:13 CST >"x86_64-symtab-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >243/335 Testing: x86_64-symtab-section-symbols >243/335 Test: x86_64-symtab-section-symbols >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symtab-section-symbols.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-symtab-section-symbols" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symtab-section-symbols.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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_error 12 >++ code=1 >++ echo 'command failed: 12: grep -q '\''SECTION LOCAL DEFAULT'\''' >command failed: 12: grep -q 'SECTION LOCAL DEFAULT' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Failed. >"x86_64-symtab-section-symbols" end time: Dec 04 14:13 CST >"x86_64-symtab-section-symbols" time elapsed: 00:00:00 >---------------------------------------------------------- > >244/335 Testing: x86_64-symtab >244/335 Test: x86_64-symtab >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symtab.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-symtab" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/symtab.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -o out/test/elf/x86_64/symtab/b.o -c -x assembler - >+ 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 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-symtab" end time: Dec 04 14:13 CST >"x86_64-symtab" time elapsed: 00:00:00 >---------------------------------------------------------- > >246/335 Testing: x86_64-sysroot-linker-script >246/335 Test: x86_64-sysroot-linker-script >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/sysroot-linker-script.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-sysroot-linker-script" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/sysroot-linker-script.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.32 sec >---------------------------------------------------------- >Test Passed. >"x86_64-sysroot-linker-script" end time: Dec 04 14:13 CST >"x86_64-sysroot-linker-script" time elapsed: 00:00:00 >---------------------------------------------------------- > >250/335 Testing: x86_64-tbss-only >250/335 Test: x86_64-tbss-only >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tbss-only.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tbss-only" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tbss-only.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tbss-only.sh .sh >++ testname=tbss-only >++ echo -n 'Testing tbss-only ... ' >Testing tbss-only ... ++ t=out/test/elf/x86_64/tbss-only >++ mkdir -p out/test/elf/x86_64/tbss-only >+ cc -o out/test/elf/x86_64/tbss-only/a.o -c -xc - >+ cat >+ cc -B. -o out/test/elf/x86_64/tbss-only/exe out/test/elf/x86_64/tbss-only/a.o >+ out/test/elf/x86_64/tbss-only/exe >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tbss-only" end time: Dec 04 14:13 CST >"x86_64-tbss-only" time elapsed: 00:00:00 >---------------------------------------------------------- > >252/335 Testing: x86_64-thread-count >252/335 Test: x86_64-thread-count >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/thread-count.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-thread-count" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/thread-count.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/thread-count/a.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/thread-count/exe out/test/elf/x86_64/thread-count/a.o -Wl,-no-threads >ld.lld: error: unknown argument '-no-threads' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 11 >++ code=1 >++ echo 'command failed: 11: $CC -B. -o $t/exe $t/a.o -Wl,-no-threads' >command failed: 11: $CC -B. -o $t/exe $t/a.o -Wl,-no-threads >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.21 sec >---------------------------------------------------------- >Test Failed. >"x86_64-thread-count" end time: Dec 04 14:13 CST >"x86_64-thread-count" time elapsed: 00:00:00 >---------------------------------------------------------- > >249/335 Testing: x86_64-tail-call >249/335 Test: x86_64-tail-call >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tail-call.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tail-call" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tail-call.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.39 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tail-call" end time: Dec 04 14:13 CST >"x86_64-tail-call" time elapsed: 00:00:00 >---------------------------------------------------------- > >248/335 Testing: x86_64-sysroot2 >248/335 Test: x86_64-sysroot2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/sysroot2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-sysroot2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/sysroot2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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.4.0/work/mold-2.4.0_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 ><end of output> >Test time = 0.50 sec >---------------------------------------------------------- >Test Passed. >"x86_64-sysroot2" end time: Dec 04 14:13 CST >"x86_64-sysroot2" time elapsed: 00:00:00 >---------------------------------------------------------- > >245/335 Testing: x86_64-synthetic-symbols >245/335 Test: x86_64-synthetic-symbols >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/synthetic-symbols.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-synthetic-symbols" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/synthetic-symbols.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -c -o out/test/elf/x86_64/synthetic-symbols/b.o -xc - >+ 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 >+ cat >+ cc -c -o out/test/elf/x86_64/synthetic-symbols/c.o -xc - >+ 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 >++ on_error 92 >++ code=1 >++ echo 'command failed: 92: grep -q '\''^__ehdr_start=0x40000$'\'' $t/log' >command failed: 92: grep -q '^__ehdr_start=0x40000$' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.59 sec >---------------------------------------------------------- >Test Failed. >"x86_64-synthetic-symbols" end time: Dec 04 14:13 CST >"x86_64-synthetic-symbols" time elapsed: 00:00:00 >---------------------------------------------------------- > >254/335 Testing: x86_64-tls-common >254/335 Test: x86_64-tls-common >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-common.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-common" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-common.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: out/test/elf/x86_64/tls-common/a.o has an STT_TLS symbol but doesn't have an SHF_TLS section >ld.lld: error: out/test/elf/x86_64/tls-common/a.o has an STT_TLS symbol but doesn't have an SHF_TLS section >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 19 >++ code=1 >++ echo 'command failed: 19: $CC -B. -o $t/exe $t/a.o $t/b.o' >command failed: 19: $CC -B. -o $t/exe $t/a.o $t/b.o >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-common" end time: Dec 04 14:13 CST >"x86_64-tls-common" time elapsed: 00:00:00 >---------------------------------------------------------- > >251/335 Testing: x86_64-thin-archive >251/335 Test: x86_64-thin-archive >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/thin-archive.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-thin-archive" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/thin-archive.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/thin-archive/long-long-long-filename.o -c -xc - >+ 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.4.0/work/mold-2.4.0_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 >++ on_error 34 >++ code=1 >++ echo 'command failed: 34: grep -Eq '\''thin-archive/d.a\(.*/b.o\)'\'' $t/log' >command failed: 34: grep -Eq 'thin-archive/d.a\(.*/b.o\)' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.46 sec >---------------------------------------------------------- >Test Failed. >"x86_64-thin-archive" end time: Dec 04 14:13 CST >"x86_64-thin-archive" time elapsed: 00:00:00 >---------------------------------------------------------- > >247/335 Testing: x86_64-sysroot >247/335 Test: x86_64-sysroot >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/sysroot.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-sysroot" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/sysroot.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -c -o out/test/elf/x86_64/sysroot/b.o -xc - >+ 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 >+ cat >+ cc -c -o out/test/elf/x86_64/sysroot/c.o -xc - >+ 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 >ld.lld: error: unable to find library -lfoo >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 31 >++ code=1 >++ echo 'command failed: 31: $CC -B. -o $t/exe $t/c.o -Wl,--sysroot=$t/ '\''-Wl,-L$SYSROOTfoo/bar'\'' -lfoo' >command failed: 31: $CC -B. -o $t/exe $t/c.o -Wl,--sysroot=$t/ '-Wl,-L$SYSROOTfoo/bar' -lfoo >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.55 sec >---------------------------------------------------------- >Test Failed. >"x86_64-sysroot" end time: Dec 04 14:13 CST >"x86_64-sysroot" time elapsed: 00:00:00 >---------------------------------------------------------- > >255/335 Testing: x86_64-tls-df-static-tls >255/335 Test: x86_64-tls-df-static-tls >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-df-static-tls.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-df-static-tls" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-df-static-tls.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.34 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tls-df-static-tls" end time: Dec 04 14:13 CST >"x86_64-tls-df-static-tls" time elapsed: 00:00:00 >---------------------------------------------------------- > >253/335 Testing: x86_64-tls-alignment-multi >253/335 Test: x86_64-tls-alignment-multi >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-alignment-multi.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-alignment-multi" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-alignment-multi.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.42 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tls-alignment-multi" end time: Dec 04 14:13 CST >"x86_64-tls-alignment-multi" time elapsed: 00:00:00 >---------------------------------------------------------- > >256/335 Testing: x86_64-tls-dso >256/335 Test: x86_64-tls-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tls-dso" end time: Dec 04 14:13 CST >"x86_64-tls-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >262/335 Testing: x86_64-tls-irregular-start-addr >262/335 Test: x86_64-tls-irregular-start-addr >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-irregular-start-addr.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-irregular-start-addr" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-irregular-start-addr.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-relax', did you mean '--relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 14 >++ code=1 >++ echo 'command failed: 14: $CC -B. -o $t/exe1 $t/a.o -pie -Wl,-section-start=.tdata=0x100001 -Wl,-relax' >command failed: 14: $CC -B. -o $t/exe1 $t/a.o -pie -Wl,-section-start=.tdata=0x100001 -Wl,-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.19 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-irregular-start-addr" end time: Dec 04 14:13 CST >"x86_64-tls-irregular-start-addr" time elapsed: 00:00:00 >---------------------------------------------------------- > >257/335 Testing: x86_64-tls-gd-dlopen >257/335 Test: x86_64-tls-gd-dlopen >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-gd-dlopen.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-gd-dlopen" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-gd-dlopen.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tls-gd-dlopen" end time: Dec 04 14:13 CST >"x86_64-tls-gd-dlopen" time elapsed: 00:00:00 >---------------------------------------------------------- > >259/335 Testing: x86_64-tls-gd-to-ie >259/335 Test: x86_64-tls-gd-to-ie >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-gd-to-ie.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-gd-to-ie" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-gd-to-ie.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 28 >++ code=1 >++ echo 'command failed: 28: $CC -B. -shared -o $t/d.so $t/a.o -Wl,-no-relax' >command failed: 28: $CC -B. -shared -o $t/d.so $t/a.o -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.50 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-gd-to-ie" end time: Dec 04 14:13 CST >"x86_64-tls-gd-to-ie" time elapsed: 00:00:00 >---------------------------------------------------------- > >261/335 Testing: x86_64-tls-ie >261/335 Test: x86_64-tls-ie >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-ie.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-ie" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-ie.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - -fPIC >+ 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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 42 >++ code=1 >++ echo 'command failed: 42: $CC -B. -o $t/exe $t/b.so $t/c.o -Wl,-no-relax' >command failed: 42: $CC -B. -o $t/exe $t/b.so $t/c.o -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.50 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-ie" end time: Dec 04 14:13 CST >"x86_64-tls-ie" time elapsed: 00:00:00 >---------------------------------------------------------- > >264/335 Testing: x86_64-tls-large-static-image >264/335 Test: x86_64-tls-large-static-image >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-large-static-image.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-large-static-image" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-large-static-image.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.27 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tls-large-static-image" end time: Dec 04 14:13 CST >"x86_64-tls-large-static-image" time elapsed: 00:00:00 >---------------------------------------------------------- > >258/335 Testing: x86_64-tls-gd-noplt >258/335 Test: x86_64-tls-gd-noplt >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-gd-noplt.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-gd-noplt" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-gd-noplt.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ out/test/elf/x86_64/tls-gd-noplt/exe >+ grep -q '1 2 3 4 5 6' >+ 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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 41 >++ code=1 >++ echo 'command failed: 41: $CC -B. -o $t/exe $t/a.o $t/d.so $t/e.so -Wl,-no-relax' >command failed: 41: $CC -B. -o $t/exe $t/a.o $t/d.so $t/e.so -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.63 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-gd-noplt" end time: Dec 04 14:13 CST >"x86_64-tls-gd-noplt" time elapsed: 00:00:00 >---------------------------------------------------------- > >266/335 Testing: x86_64-tls-ld >266/335 Test: x86_64-tls-ld >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-ld.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-ld" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-ld.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-relax', did you mean '--relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 25 >++ code=1 >++ echo 'command failed: 25: $CC -B. -o $t/exe1 $t/a.o $t/b.o -Wl,-relax' >command failed: 25: $CC -B. -o $t/exe1 $t/a.o $t/b.o -Wl,-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-ld" end time: Dec 04 14:13 CST >"x86_64-tls-ld" time elapsed: 00:00:00 >---------------------------------------------------------- > >260/335 Testing: x86_64-tls-gd >260/335 Test: x86_64-tls-gd >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-gd.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-gd" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-gd.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ gcc -fPIC -c -o out/test/elf/x86_64/tls-gd/a.o -xc - >+ cat >+ 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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 42 >++ code=1 >++ echo 'command failed: 42: $CC -B. -o $t/exe2 $t/a.o $t/d.so $t/e.so -Wl,-no-relax' >command failed: 42: $CC -B. -o $t/exe2 $t/a.o $t/d.so $t/e.so -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.63 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-gd" end time: Dec 04 14:13 CST >"x86_64-tls-gd" time elapsed: 00:00:00 >---------------------------------------------------------- > >265/335 Testing: x86_64-tls-ld-noplt >265/335 Test: x86_64-tls-ld-noplt >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-ld-noplt.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-ld-noplt" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-ld-noplt.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 28 >++ code=1 >++ echo 'command failed: 28: $CC -B. -o $t/exe $t/a.o $t/b.o -Wl,-no-relax' >command failed: 28: $CC -B. -o $t/exe $t/a.o $t/b.o -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.35 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-ld-noplt" end time: Dec 04 14:13 CST >"x86_64-tls-ld-noplt" time elapsed: 00:00:00 >---------------------------------------------------------- > >267/335 Testing: x86_64-tls-le-error >267/335 Test: x86_64-tls-le-error >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-le-error.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-le-error" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-le-error.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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_error 10 >++ code=1 >++ echo 'command failed: 10: grep -q '\''relocation .* against `foo` can not be used when making a shared object; recompile with -fPIC'\'' $t/log' >command failed: 10: grep -q 'relocation .* against `foo` can not be used when making a shared object; recompile with -fPIC' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-le-error" end time: Dec 04 14:13 CST >"x86_64-tls-le-error" time elapsed: 00:00:00 >---------------------------------------------------------- > >263/335 Testing: x86_64-tls-large-alignment >263/335 Test: x86_64-tls-large-alignment >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-large-alignment.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-large-alignment" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-large-alignment.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -fPIC -c -o out/test/elf/x86_64/tls-large-alignment/c.o -xc - >+ 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 ><end of output> >Test time = 0.59 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tls-large-alignment" end time: Dec 04 14:13 CST >"x86_64-tls-large-alignment" time elapsed: 00:00:00 >---------------------------------------------------------- > >269/335 Testing: x86_64-tls-nopic >269/335 Test: x86_64-tls-nopic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-nopic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-nopic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-nopic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ gcc -c -o out/test/elf/x86_64/tls-nopic/a.o -xc - >+ 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 -no-pie >+ out/test/elf/x86_64/tls-nopic/exe >+ grep -q '3 5 3 5' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.28 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tls-nopic" end time: Dec 04 14:13 CST >"x86_64-tls-nopic" time elapsed: 00:00:00 >---------------------------------------------------------- > >268/335 Testing: x86_64-tls-le >268/335 Test: x86_64-tls-le >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-le.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-le" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-le.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 28 >++ code=1 >++ echo 'command failed: 28: $CC -B. -o $t/exe $t/a.o $t/b.o -Wl,-no-relax' >command failed: 28: $CC -B. -o $t/exe $t/a.o $t/b.o -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.37 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tls-le" end time: Dec 04 14:13 CST >"x86_64-tls-le" time elapsed: 00:00:00 >---------------------------------------------------------- > >270/335 Testing: x86_64-tls-pic >270/335 Test: x86_64-tls-pic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-pic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-pic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-pic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ gcc -fPIC -c -o out/test/elf/x86_64/tls-pic/a.o -xc - >+ 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 ><end of output> >Test time = 0.29 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tls-pic" end time: Dec 04 14:13 CST >"x86_64-tls-pic" time elapsed: 00:00:00 >---------------------------------------------------------- > >273/335 Testing: x86_64-tlsdesc-import >273/335 Test: x86_64-tlsdesc-import >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-import.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tlsdesc-import" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-import.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.34 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tlsdesc-import" end time: Dec 04 14:13 CST >"x86_64-tlsdesc-import" time elapsed: 00:00:00 >---------------------------------------------------------- > >272/335 Testing: x86_64-tlsdesc-dlopen >272/335 Test: x86_64-tlsdesc-dlopen >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-dlopen.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tlsdesc-dlopen" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-dlopen.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ']' >+ cat >+ gcc -fPIC -c -o out/test/elf/x86_64/tlsdesc-dlopen/a.o -xc - -mtls-dialect=gnu2 >+ 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 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tlsdesc-dlopen" end time: Dec 04 14:13 CST >"x86_64-tlsdesc-dlopen" time elapsed: 00:00:00 >---------------------------------------------------------- > >275/335 Testing: x86_64-tlsdesc-local-dynamic >275/335 Test: x86_64-tlsdesc-local-dynamic >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-local-dynamic.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tlsdesc-local-dynamic" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-local-dynamic.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.38 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tlsdesc-local-dynamic" end time: Dec 04 14:13 CST >"x86_64-tlsdesc-local-dynamic" time elapsed: 00:00:00 >---------------------------------------------------------- > >271/335 Testing: x86_64-tls-small-alignment >271/335 Test: x86_64-tls-small-alignment >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-small-alignment.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tls-small-alignment" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tls-small-alignment.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -fPIC -c -o out/test/elf/x86_64/tls-small-alignment/a.o -xassembler - >+ 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 ><end of output> >Test time = 0.53 sec >---------------------------------------------------------- >Test Passed. >"x86_64-tls-small-alignment" end time: Dec 04 14:13 CST >"x86_64-tls-small-alignment" time elapsed: 00:00:00 >---------------------------------------------------------- > >279/335 Testing: x86_64-trace >279/335 Test: x86_64-trace >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/trace.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-trace" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/trace.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-trace" end time: Dec 04 14:13 CST >"x86_64-trace" time elapsed: 00:00:00 >---------------------------------------------------------- > >277/335 Testing: x86_64-tlsdesc >277/335 Test: x86_64-tlsdesc >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tlsdesc" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 40 >++ code=1 >++ echo 'command failed: 40: $CC -B. -o $t/exe2 $t/a.o $t/b.o -Wl,-no-relax' >command failed: 40: $CC -B. -o $t/exe2 $t/a.o $t/b.o -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.38 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tlsdesc" end time: Dec 04 14:13 CST >"x86_64-tlsdesc" time elapsed: 00:00:00 >---------------------------------------------------------- > >274/335 Testing: x86_64-tlsdesc-initial-exec >274/335 Test: x86_64-tlsdesc-initial-exec >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-initial-exec.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tlsdesc-initial-exec" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-initial-exec.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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_error 39 >++ code=1 >++ echo 'command failed: 39: grep -Eq '\''TLS.?DESC'\'' $t/log2' >command failed: 39: grep -Eq 'TLS.?DESC' $t/log2 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.57 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tlsdesc-initial-exec" end time: Dec 04 14:13 CST >"x86_64-tlsdesc-initial-exec" time elapsed: 00:00:00 >---------------------------------------------------------- > >278/335 Testing: x86_64-trace-symbol >278/335 Test: x86_64-trace-symbol >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/trace-symbol.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-trace-symbol" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/trace-symbol.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >++ on_error 34 >++ code=1 >++ echo 'command failed: 34: grep -q '\''trace-symbol: .*/a.o: reference to foo'\'' $t/log' >command failed: 34: grep -q 'trace-symbol: .*/a.o: reference to foo' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.45 sec >---------------------------------------------------------- >Test Failed. >"x86_64-trace-symbol" end time: Dec 04 14:13 CST >"x86_64-trace-symbol" time elapsed: 00:00:00 >---------------------------------------------------------- > >276/335 Testing: x86_64-tlsdesc-static >276/335 Test: x86_64-tlsdesc-static >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-static.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-tlsdesc-static" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/tlsdesc-static.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: error: unknown argument '-no-relax', did you mean '--no-relax' >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 25 >++ code=1 >++ echo 'command failed: 25: $CC -B. -o $t/exe2 $t/a.o $t/b.o -static -Wl,-no-relax' >command failed: 25: $CC -B. -o $t/exe2 $t/a.o $t/b.o -static -Wl,-no-relax >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.56 sec >---------------------------------------------------------- >Test Failed. >"x86_64-tlsdesc-static" end time: Dec 04 14:13 CST >"x86_64-tlsdesc-static" time elapsed: 00:00:00 >---------------------------------------------------------- > >283/335 Testing: x86_64-verbose >283/335 Test: x86_64-verbose >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/verbose.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-verbose" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/verbose.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -c -xc -o out/test/elf/x86_64/verbose/a.o - >+ cat >+ cc -B. -Wl,--verbose -o out/test/elf/x86_64/verbose/exe out/test/elf/x86_64/verbose/a.o >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/Scrt1.o >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/crti.o >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/crtbeginS.o >ld.lld: out/test/elf/x86_64/verbose/a.o >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc.a >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc.a >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/libc.so >ld.lld: /lib64/libc.so.6 >ld.lld: /usr/lib64/libc_nonshared.a >ld.lld: /lib64/ld-linux-x86-64.so.2 >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc.a >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc.a >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/crtendS.o >ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/crtn.o >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-verbose" end time: Dec 04 14:13 CST >"x86_64-verbose" time elapsed: 00:00:00 >---------------------------------------------------------- > >284/335 Testing: x86_64-version-script-search-paths >284/335 Test: x86_64-version-script-search-paths >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script-search-paths.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script-search-paths" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script-search-paths.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script-search-paths" end time: Dec 04 14:13 CST >"x86_64-version-script-search-paths" time elapsed: 00:00:00 >---------------------------------------------------------- > >285/335 Testing: x86_64-version-script >285/335 Test: x86_64-version-script >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.21 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script" end time: Dec 04 14:13 CST >"x86_64-version-script" time elapsed: 00:00:00 >---------------------------------------------------------- > >282/335 Testing: x86_64-unresolved-symbols >282/335 Test: x86_64-unresolved-symbols >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/unresolved-symbols.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-unresolved-symbols" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/unresolved-symbols.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -c -o out/test/elf/x86_64/unresolved-symbols/a.o -xc - >+ cat >+ 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 > 6: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND foo >+ false >++ on_error 16 >++ code=1 >++ echo 'command failed: 16: false' >command failed: 16: false >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.43 sec >---------------------------------------------------------- >Test Failed. >"x86_64-unresolved-symbols" end time: Dec 04 14:13 CST >"x86_64-unresolved-symbols" time elapsed: 00:00:00 >---------------------------------------------------------- > >286/335 Testing: x86_64-version-script10 >286/335 Test: x86_64-version-script10 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script10.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script10" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script10.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script10" end time: Dec 04 14:13 CST >"x86_64-version-script10" time elapsed: 00:00:00 >---------------------------------------------------------- > >281/335 Testing: x86_64-undefined2 >281/335 Test: x86_64-undefined2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/undefined2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-undefined2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/undefined2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cc -o out/test/elf/x86_64/undefined2/b.o -c -x assembler - >+ cat >+ 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 ><end of output> >Test time = 0.48 sec >---------------------------------------------------------- >Test Passed. >"x86_64-undefined2" end time: Dec 04 14:13 CST >"x86_64-undefined2" time elapsed: 00:00:00 >---------------------------------------------------------- > >287/335 Testing: x86_64-version-script11 >287/335 Test: x86_64-version-script11 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script11.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script11" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script11.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script11" end time: Dec 04 14:13 CST >"x86_64-version-script11" time elapsed: 00:00:00 >---------------------------------------------------------- > >280/335 Testing: x86_64-undefined >280/335 Test: x86_64-undefined >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/undefined.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-undefined" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/undefined.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -static -o /dev/null -xc - >+ echo 'int main() {}' >+ 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 ><end of output> >Test time = 0.57 sec >---------------------------------------------------------- >Test Passed. >"x86_64-undefined" end time: Dec 04 14:13 CST >"x86_64-undefined" time elapsed: 00:00:00 >---------------------------------------------------------- > >288/335 Testing: x86_64-version-script12 >288/335 Test: x86_64-version-script12 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script12.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script12" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script12.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script12" end time: Dec 04 14:13 CST >"x86_64-version-script12" time elapsed: 00:00:00 >---------------------------------------------------------- > >289/335 Testing: x86_64-version-script13 >289/335 Test: x86_64-version-script13 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script13.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script13" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script13.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script13" end time: Dec 04 14:13 CST >"x86_64-version-script13" time elapsed: 00:00:00 >---------------------------------------------------------- > >290/335 Testing: x86_64-version-script14 >290/335 Test: x86_64-version-script14 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script14.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script14" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script14.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.27 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script14" end time: Dec 04 14:13 CST >"x86_64-version-script14" time elapsed: 00:00:00 >---------------------------------------------------------- > >292/335 Testing: x86_64-version-script16 >292/335 Test: x86_64-version-script16 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script16.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script16" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script16.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script16" end time: Dec 04 14:13 CST >"x86_64-version-script16" time elapsed: 00:00:00 >---------------------------------------------------------- > >291/335 Testing: x86_64-version-script15 >291/335 Test: x86_64-version-script15 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script15.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script15" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script15.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >++ on_error 23 >++ code=1 >++ echo 'command failed: 23: grep -q '\'' azZ'\'' $t/log' >command failed: 23: grep -q ' azZ' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Failed. >"x86_64-version-script15" end time: Dec 04 14:13 CST >"x86_64-version-script15" time elapsed: 00:00:00 >---------------------------------------------------------- > >294/335 Testing: x86_64-version-script18 >294/335 Test: x86_64-version-script18 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script18.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script18" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script18.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ readelf --wide --dyn-syms out/test/elf/x86_64/version-script18/c.so >+ grep libalpha >+ grep -q Bar >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script18" end time: Dec 04 14:13 CST >"x86_64-version-script18" time elapsed: 00:00:00 >---------------------------------------------------------- > >295/335 Testing: x86_64-version-script19 >295/335 Test: x86_64-version-script19 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script19.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script19" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script19.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script19" end time: Dec 04 14:13 CST >"x86_64-version-script19" time elapsed: 00:00:00 >---------------------------------------------------------- > >297/335 Testing: x86_64-version-script20 >297/335 Test: x86_64-version-script20 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script20.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script20" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script20.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script20.sh .sh >++ testname=version-script20 >++ echo -n 'Testing version-script20 ... ' >Testing version-script20 ... ++ t=out/test/elf/x86_64/version-script20 >++ mkdir -p out/test/elf/x86_64/version-script20 >+ cat >+ cat >+ cc -fPIC -c -o out/test/elf/x86_64/version-script20/b.o -xc - >+ cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script20/a.ver -o out/test/elf/x86_64/version-script20/c.so out/test/elf/x86_64/version-script20/b.o >+ readelf -W --dyn-syms out/test/elf/x86_64/version-script20/c.so >+ grep -Fq foo_x@@VER2 out/test/elf/x86_64/version-script20/log >+ grep -Fq foo_y@@VER1 out/test/elf/x86_64/version-script20/log >+ grep -Fq foo_z@@VER1 out/test/elf/x86_64/version-script20/log >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.25 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script20" end time: Dec 04 14:13 CST >"x86_64-version-script20" time elapsed: 00:00:00 >---------------------------------------------------------- > >298/335 Testing: x86_64-version-script21 >298/335 Test: x86_64-version-script21 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script21.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script21" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script21.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script21.sh .sh >++ testname=version-script21 >++ echo -n 'Testing version-script21 ... ' >Testing version-script21 ... ++ t=out/test/elf/x86_64/version-script21 >++ mkdir -p out/test/elf/x86_64/version-script21 >+ cat >+ cat >+ cc -fPIC -c -o out/test/elf/x86_64/version-script21/b.o -xc - >+ cc -B. -shared -Wl,--version-script=out/test/elf/x86_64/version-script21/a.ver -o out/test/elf/x86_64/version-script21/c.so out/test/elf/x86_64/version-script21/b.o >+ readelf -W --dyn-syms out/test/elf/x86_64/version-script21/c.so >+ grep -Fq foo_x@@VER1 out/test/elf/x86_64/version-script21/log >+ grep -Fq foo_y@@VER2 out/test/elf/x86_64/version-script21/log >+ grep -Fq foo_z@@VER2 out/test/elf/x86_64/version-script21/log >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script21" end time: Dec 04 14:13 CST >"x86_64-version-script21" time elapsed: 00:00:00 >---------------------------------------------------------- > >301/335 Testing: x86_64-version-script5 >301/335 Test: x86_64-version-script5 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script5.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script5" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script5.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script5" end time: Dec 04 14:13 CST >"x86_64-version-script5" time elapsed: 00:00:00 >---------------------------------------------------------- > >300/335 Testing: x86_64-version-script4 >300/335 Test: x86_64-version-script4 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script4.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script4" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script4.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script4" end time: Dec 04 14:13 CST >"x86_64-version-script4" time elapsed: 00:00:00 >---------------------------------------------------------- > >296/335 Testing: x86_64-version-script2 >296/335 Test: x86_64-version-script2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script2" end time: Dec 04 14:13 CST >"x86_64-version-script2" time elapsed: 00:00:00 >---------------------------------------------------------- > >303/335 Testing: x86_64-version-script7 >303/335 Test: x86_64-version-script7 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script7.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script7" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script7.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script7" end time: Dec 04 14:13 CST >"x86_64-version-script7" time elapsed: 00:00:00 >---------------------------------------------------------- > >299/335 Testing: x86_64-version-script3 >299/335 Test: x86_64-version-script3 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script3.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script3" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script3.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script3" end time: Dec 04 14:13 CST >"x86_64-version-script3" time elapsed: 00:00:00 >---------------------------------------------------------- > >302/335 Testing: x86_64-version-script6 >302/335 Test: x86_64-version-script6 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script6.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script6" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script6.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ c++ -fPIC -c -o out/test/elf/x86_64/version-script6/b.o -xc - >+ 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 ><end of output> >Test time = 0.38 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script6" end time: Dec 04 14:13 CST >"x86_64-version-script6" time elapsed: 00:00:00 >---------------------------------------------------------- > >305/335 Testing: x86_64-version-script9 >305/335 Test: x86_64-version-script9 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script9.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script9" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script9.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.22 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script9" end time: Dec 04 14:13 CST >"x86_64-version-script9" time elapsed: 00:00:00 >---------------------------------------------------------- > >293/335 Testing: x86_64-version-script17 >293/335 Test: x86_64-version-script17 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script17.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script17" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script17.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -B. -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 ><end of output> >Test time = 0.72 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script17" end time: Dec 04 14:13 CST >"x86_64-version-script17" time elapsed: 00:00:00 >---------------------------------------------------------- > >304/335 Testing: x86_64-version-script8 >304/335 Test: x86_64-version-script8 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script8.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version-script8" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version-script8.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-version-script8" end time: Dec 04 14:13 CST >"x86_64-version-script8" time elapsed: 00:00:00 >---------------------------------------------------------- > >307/335 Testing: x86_64-versioned-undef >307/335 Test: x86_64-versioned-undef >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/versioned-undef.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-versioned-undef" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/versioned-undef.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -fPIC -c -o out/test/elf/x86_64/versioned-undef/a.o -xc - >+ echo 'VER1 { local: *; }; VER2 { local: *; }; VER3 { local: *; };' >+ cc -B. -shared -o out/test/elf/x86_64/versioned-undef/c.so out/test/elf/x86_64/versioned-undef/a.o -Wl,--version-script=out/test/elf/x86_64/versioned-undef/b.ver >+ cat >+ cc -c -o out/test/elf/x86_64/versioned-undef/d.o -xc - >+ cc -B. -o out/test/elf/x86_64/versioned-undef/exe out/test/elf/x86_64/versioned-undef/d.o out/test/elf/x86_64/versioned-undef/c.so >ld.lld: error: undefined symbol: foo@VER1 >>>> referenced by - >>>> out/test/elf/x86_64/versioned-undef/d.o:(main) >>>> did you mean: foo >>>> defined in: out/test/elf/x86_64/versioned-undef/c.so > >ld.lld: error: undefined symbol: foo@VER2 >>>> referenced by - >>>> out/test/elf/x86_64/versioned-undef/d.o:(main) >>>> did you mean: foo >>>> defined in: out/test/elf/x86_64/versioned-undef/c.so >cc: error: linker command failed with exit code 1 (use -v to see invocation) >++ on_error 42 >++ code=1 >++ echo 'command failed: 42: $CC -B. -o $t/exe $t/d.o $t/c.so' >command failed: 42: $CC -B. -o $t/exe $t/d.o $t/c.so >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Failed. >"x86_64-versioned-undef" end time: Dec 04 14:13 CST >"x86_64-versioned-undef" time elapsed: 00:00:00 >---------------------------------------------------------- > >311/335 Testing: x86_64-warn-symbol-type >311/335 Test: x86_64-warn-symbol-type >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/warn-symbol-type.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-warn-symbol-type" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/warn-symbol-type.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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_error 18 >++ code=1 >++ echo 'command failed: 18: grep -q "warning: symbol type mismatch: times" $t/log' >command failed: 18: grep -q "warning: symbol type mismatch: times" $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Failed. >"x86_64-warn-symbol-type" end time: Dec 04 14:13 CST >"x86_64-warn-symbol-type" time elapsed: 00:00:00 >---------------------------------------------------------- > >310/335 Testing: x86_64-warn-once >310/335 Test: x86_64-warn-once >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/warn-once.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-warn-once" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/warn-once.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >++ grep 'undefined symbol:.* foo$' out/test/elf/x86_64/warn-once/log >++ wc -l >+ '[' 1 = 1 ']' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.31 sec >---------------------------------------------------------- >Test Passed. >"x86_64-warn-once" end time: Dec 04 14:13 CST >"x86_64-warn-once" time elapsed: 00:00:00 >---------------------------------------------------------- > >309/335 Testing: x86_64-warn-common >309/335 Test: x86_64-warn-common >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/warn-common.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-warn-common" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/warn-common.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -fcommon -c -xc -o out/test/elf/x86_64/warn-common/b.o - >+ 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_error 20 >++ code=1 >++ echo 'command failed: 20: grep -Fq '\''multiple common symbols'\'' $t/log' >command failed: 20: grep -Fq 'multiple common symbols' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.38 sec >---------------------------------------------------------- >Test Failed. >"x86_64-warn-common" end time: Dec 04 14:13 CST >"x86_64-warn-common" time elapsed: 00:00:00 >---------------------------------------------------------- > >308/335 Testing: x86_64-visibility >308/335 Test: x86_64-visibility >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/visibility.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-visibility" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/visibility.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -xc -c -o out/test/elf/x86_64/visibility/b.o - >+ 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 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-visibility" end time: Dec 04 14:13 CST >"x86_64-visibility" time elapsed: 00:00:00 >---------------------------------------------------------- > >314/335 Testing: x86_64-weak-export-exe >314/335 Test: x86_64-weak-export-exe >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-export-exe.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-weak-export-exe" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-export-exe.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -fPIC -c -o out/test/elf/x86_64/weak-export-exe/a.o -xc - >+ 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' >+ false >++ on_error 15 >++ code=1 >++ echo 'command failed: 15: false' >command failed: 15: false >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Failed. >"x86_64-weak-export-exe" end time: Dec 04 14:13 CST >"x86_64-weak-export-exe" time elapsed: 00:00:00 >---------------------------------------------------------- > >312/335 Testing: x86_64-warn-unresolved-symbols >312/335 Test: x86_64-warn-unresolved-symbols >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/warn-unresolved-symbols.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-warn-unresolved-symbols" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/warn-unresolved-symbols.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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' >+ 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 >+ 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 ><end of output> >Test time = 0.41 sec >---------------------------------------------------------- >Test Passed. >"x86_64-warn-unresolved-symbols" end time: Dec 04 14:13 CST >"x86_64-warn-unresolved-symbols" time elapsed: 00:00:00 >---------------------------------------------------------- > >306/335 Testing: x86_64-version >306/335 Test: x86_64-version >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-version" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/version.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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' >+ ./mold -V >+ grep -q elf_x86_64 >+ ./mold -V >+ grep -q elf_i386 >+ cat >+ cc -c -xc -o out/test/elf/x86_64/version/a.o - >+ rm -f out/test/elf/x86_64/version/exe >+ cc -B. -Wl,--version -o out/test/elf/x86_64/version/exe1 out/test/elf/x86_64/version/a.o >+ grep -q '[ms]old' >++ on_error 23 >++ code=1 >++ echo 'command failed: 23: grep -q '\''[ms]old'\''' >command failed: 23: grep -q '[ms]old' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.66 sec >---------------------------------------------------------- >Test Failed. >"x86_64-version" end time: Dec 04 14:13 CST >"x86_64-version" time elapsed: 00:00:00 >---------------------------------------------------------- > >313/335 Testing: x86_64-weak-export-dso >313/335 Test: x86_64-weak-export-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-export-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-weak-export-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-export-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -fPIC -c -o out/test/elf/x86_64/weak-export-dso/a.o -xc - >+ cat >+ 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 >+ readelf --dyn-syms out/test/elf/x86_64/weak-export-dso/b.so >+ grep -q 'WEAK DEFAULT UND foo' >+ 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 ><end of output> >Test time = 0.38 sec >---------------------------------------------------------- >Test Passed. >"x86_64-weak-export-dso" end time: Dec 04 14:13 CST >"x86_64-weak-export-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >317/335 Testing: x86_64-weak-undef2 >317/335 Test: x86_64-weak-undef2 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-undef2.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-weak-undef2" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-undef2.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cc -c -o out/test/elf/x86_64/weak-undef2/a.o -xc - >+ cat >+ 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 ><end of output> >Test time = 0.27 sec >---------------------------------------------------------- >Test Passed. >"x86_64-weak-undef2" end time: Dec 04 14:13 CST >"x86_64-weak-undef2" time elapsed: 00:00:00 >---------------------------------------------------------- > >322/335 Testing: x86_64-z-cet-report >322/335 Test: x86_64-z-cet-report >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-cet-report.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-cet-report" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-cet-report.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >++ on_error 12 >++ code=1 >++ echo 'command failed: 12: grep -q '\''a.o: -cet-report=warning: missing GNU_PROPERTY_X86_FEATURE_1_IBT'\'' $t/log' >command failed: 12: grep -q 'a.o: -cet-report=warning: missing GNU_PROPERTY_X86_FEATURE_1_IBT' $t/log >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.29 sec >---------------------------------------------------------- >Test Failed. >"x86_64-z-cet-report" end time: Dec 04 14:13 CST >"x86_64-z-cet-report" time elapsed: 00:00:00 >---------------------------------------------------------- > >315/335 Testing: x86_64-weak-undef-dso >315/335 Test: x86_64-weak-undef-dso >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-undef-dso.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-weak-undef-dso" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-undef-dso.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -c -o out/test/elf/x86_64/weak-undef-dso/a.o -fPIC -xc - >+ 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 >+ out/test/elf/x86_64/weak-undef-dso/exe1 >+ grep -q bar=-1 >+ 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 ><end of output> >Test time = 0.62 sec >---------------------------------------------------------- >Test Passed. >"x86_64-weak-undef-dso" end time: Dec 04 14:13 CST >"x86_64-weak-undef-dso" time elapsed: 00:00:00 >---------------------------------------------------------- > >318/335 Testing: x86_64-weak-undef4 >318/335 Test: x86_64-weak-undef4 >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-undef4.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-weak-undef4" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-undef4.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.55 sec >---------------------------------------------------------- >Test Passed. >"x86_64-weak-undef4" end time: Dec 04 14:13 CST >"x86_64-weak-undef4" time elapsed: 00:00:00 >---------------------------------------------------------- > >316/335 Testing: x86_64-weak-undef >316/335 Test: x86_64-weak-undef >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-undef.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-weak-undef" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/weak-undef.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 - >+ cat >+ cc -fcommon -xc -c -o out/test/elf/x86_64/weak-undef/c.o - >+ 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 ><end of output> >Test time = 0.68 sec >---------------------------------------------------------- >Test Passed. >"x86_64-weak-undef" end time: Dec 04 14:13 CST >"x86_64-weak-undef" time elapsed: 00:00:00 >---------------------------------------------------------- > >319/335 Testing: x86_64-whole-archive >319/335 Test: x86_64-whole-archive >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/whole-archive.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-whole-archive" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/whole-archive.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/whole-archive/a.o -c -x assembler - >+ 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 ><end of output> >Test time = 0.54 sec >---------------------------------------------------------- >Test Passed. >"x86_64-whole-archive" end time: Dec 04 14:13 CST >"x86_64-whole-archive" time elapsed: 00:00:00 >---------------------------------------------------------- > >326/335 Testing: x86_64-z-nodefaultlib >326/335 Test: x86_64-z-nodefaultlib >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-nodefaultlib.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-nodefaultlib" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-nodefaultlib.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/z-nodefaultlib/a.o -c -xc - >+ 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 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-nodefaultlib" end time: Dec 04 14:13 CST >"x86_64-z-nodefaultlib" time elapsed: 00:00:00 >---------------------------------------------------------- > >321/335 Testing: x86_64-wrap >321/335 Test: x86_64-wrap >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/wrap.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-wrap" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/wrap.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ 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 - >+ 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 ><end of output> >Test time = 0.69 sec >---------------------------------------------------------- >Test Passed. >"x86_64-wrap" end time: Dec 04 14:13 CST >"x86_64-wrap" time elapsed: 00:00:00 >---------------------------------------------------------- > >320/335 Testing: x86_64-wrap-lto >320/335 Test: x86_64-wrap-lto >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/wrap-lto.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-wrap-lto" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/wrap-lto.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.76 sec >---------------------------------------------------------- >Test Passed. >"x86_64-wrap-lto" end time: Dec 04 14:13 CST >"x86_64-wrap-lto" time elapsed: 00:00:00 >---------------------------------------------------------- > >328/335 Testing: x86_64-z-now >328/335 Test: x86_64-z-now >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-now.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-now" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-now.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.24 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-now" end time: Dec 04 14:13 CST >"x86_64-z-now" time elapsed: 00:00:00 >---------------------------------------------------------- > >323/335 Testing: x86_64-z-defs >323/335 Test: x86_64-z-defs >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-defs.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-defs" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-defs.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.65 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-defs" end time: Dec 04 14:13 CST >"x86_64-z-defs" time elapsed: 00:00:00 >---------------------------------------------------------- > >327/335 Testing: x86_64-z-nodump >327/335 Test: x86_64-z-nodump >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-nodump.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-nodump" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-nodump.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ readelf --dynamic out/test/elf/x86_64/z-nodump/b.so >+ grep -Eq 'Flags:.*NODUMP' >+ 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 >ld.lld: warning: unknown -z value: nodump >+ readelf --dynamic out/test/elf/x86_64/z-nodump/b.so >+ grep -Eq 'Flags:.*NODUMP' >++ on_error 12 >++ code=1 >++ echo 'command failed: 12: grep -Eq '\''Flags:.*NODUMP'\''' >command failed: 12: grep -Eq 'Flags:.*NODUMP' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.30 sec >---------------------------------------------------------- >Test Failed. >"x86_64-z-nodump" end time: Dec 04 14:13 CST >"x86_64-z-nodump" time elapsed: 00:00:00 >---------------------------------------------------------- > >334/335 Testing: x86_64-z-start-stop-visibility >334/335 Test: x86_64-z-start-stop-visibility >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-start-stop-visibility.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-start-stop-visibility" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-start-stop-visibility.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.08 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-start-stop-visibility" end time: Dec 04 14:13 CST >"x86_64-z-start-stop-visibility" time elapsed: 00:00:00 >---------------------------------------------------------- > >330/335 Testing: x86_64-z-pack-relative-relocs >330/335 Test: x86_64-z-pack-relative-relocs >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-pack-relative-relocs.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-pack-relative-relocs" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-pack-relative-relocs.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ grep -q GLIBC_ABI_DT_RELR out/test/elf/x86_64/z-pack-relative-relocs/log >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-pack-relative-relocs" end time: Dec 04 14:13 CST >"x86_64-z-pack-relative-relocs" time elapsed: 00:00:00 >---------------------------------------------------------- > >325/335 Testing: x86_64-z-max-page-size >325/335 Test: x86_64-z-max-page-size >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-max-page-size.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-max-page-size" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-max-page-size.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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' >+ readelf -W --segments out/test/elf/x86_64/z-max-page-size/exe1 >+ grep -q 'LOAD.*R 0x10000$' >+ 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' >+ readelf -W --segments out/test/elf/x86_64/z-max-page-size/exe2 >+ grep -q 'LOAD.*R 0x100000$' >+ 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 ><end of output> >Test time = 0.51 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-max-page-size" end time: Dec 04 14:13 CST >"x86_64-z-max-page-size" time elapsed: 00:00:00 >---------------------------------------------------------- > >329/335 Testing: x86_64-z-origin >329/335 Test: x86_64-z-origin >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-origin.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-origin" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-origin.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ readelf --dynamic out/test/elf/x86_64/z-origin/exe >+ grep -Eq '\(FLAGS\)\s+ORIGIN' >+ readelf --dynamic out/test/elf/x86_64/z-origin/exe >+ grep -Eq 'Flags:.*ORIGIN' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.26 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-origin" end time: Dec 04 14:13 CST >"x86_64-z-origin" time elapsed: 00:00:00 >---------------------------------------------------------- > >335/335 Testing: x86_64-z-unknown >335/335 Test: x86_64-z-unknown >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-unknown.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-unknown" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-unknown.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.07 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-unknown" end time: Dec 04 14:13 CST >"x86_64-z-unknown" time elapsed: 00:00:00 >---------------------------------------------------------- > >333/335 Testing: x86_64-z-stack-size >333/335 Test: x86_64-z-stack-size >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-stack-size.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-stack-size" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-stack-size.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 ><end of output> >Test time = 0.19 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-stack-size" end time: Dec 04 14:13 CST >"x86_64-z-stack-size" time elapsed: 00:00:00 >---------------------------------------------------------- > >331/335 Testing: x86_64-z-sectionheader >331/335 Test: x86_64-z-sectionheader >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-sectionheader.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-sectionheader" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-sectionheader.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: warning: unknown -z value: 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_error 15 >++ code=1 >++ echo 'command failed: 15: grep -Eq '\''Size of section headers:\s+0 '\''' >command failed: 15: grep -Eq 'Size of section headers:\s+0 ' >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.23 sec >---------------------------------------------------------- >Test Failed. >"x86_64-z-sectionheader" end time: Dec 04 14:13 CST >"x86_64-z-sectionheader" time elapsed: 00:00:00 >---------------------------------------------------------- > >324/335 Testing: x86_64-z-dynamic-undefined-weak >324/335 Test: x86_64-z-dynamic-undefined-weak >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-dynamic-undefined-weak.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-dynamic-undefined-weak" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-dynamic-undefined-weak.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >ld.lld: warning: unknown -z value: 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 >ld.lld: warning: unknown -z value: nodynamic-undefined-weak >+ cat >+ cc -o out/test/elf/x86_64/z-dynamic-undefined-weak/e.o -c -xc - >+ 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_error 27 >++ code=1 >++ echo 'command failed: 27: grep -q 0' >command failed: 27: grep -q 0 >++ trap - EXIT >++ exit 1 ><end of output> >Test time = 0.76 sec >---------------------------------------------------------- >Test Failed. >"x86_64-z-dynamic-undefined-weak" end time: Dec 04 14:13 CST >"x86_64-z-dynamic-undefined-weak" time elapsed: 00:00:00 >---------------------------------------------------------- > >332/335 Testing: x86_64-z-separate-code >332/335 Test: x86_64-z-separate-code >Command: "/usr/bin/bash" "-x" "/var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-separate-code.sh" >Directory: /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0_build >"x86_64-z-separate-code" start time: Dec 04 14:13 CST >Output: >---------------------------------------------------------- >++ dirname /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/z-separate-code.sh >+ . /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/test/elf/common.inc >++ export LC_ALL=C >++ LC_ALL=C >++ '[' -z x86_64 ']' >++ '[' -z '' ']' >++ MACHINE=x86_64 >++ TESTDIR=out/test/elf/x86_64 >++ CC=cc >++ CXX=c++ >++ GCC=gcc >++ GXX=g++ >++ OBJDUMP=objdump >++ OBJCOPY=objcopy >++ STRIP=strip >++ QEMU= >++ '[' x86_64 = x86_64 -o x86_64 = i686 -o x86_64 = arm ']' >++ tlsdesc_opt=-mtls-dialect=gnu2 >++ trap 'on_error $LINENO' ERR >++ trap on_exit EXIT >+++ basename /var/tmp/portage/sys-devel/mold-2.4.0/work/mold-2.4.0/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 >+ cat >+ cc -o out/test/elf/x86_64/z-separate-code/a.o -c -xc - >+ cc -B. -o out/test/elf/x86_64/z-separate-code/exe1 out/test/elf/x86_64/z-separate-code/a.o -Wl,-z,separate-loadable-segments >+ out/test/elf/x86_64/z-separate-code/exe1 >+ grep -q 'Hello world' >+ cc -B. -o out/test/elf/x86_64/z-separate-code/exe2 out/test/elf/x86_64/z-separate-code/a.o -Wl,-z,separate-code -Wl,-z,norelro >+ out/test/elf/x86_64/z-separate-code/exe2 >+ grep -q 'Hello world' >+ cc -B. -o out/test/elf/x86_64/z-separate-code/exe3 out/test/elf/x86_64/z-separate-code/a.o -Wl,-z,noseparate-code -Wl,-z,norelro >+ out/test/elf/x86_64/z-separate-code/exe3 >+ grep -q 'Hello world' >+ on_exit >+ echo OK >OK >+ exit 0 ><end of output> >Test time = 0.40 sec >---------------------------------------------------------- >Test Passed. >"x86_64-z-separate-code" end time: Dec 04 14:13 CST >"x86_64-z-separate-code" time elapsed: 00:00:00 >---------------------------------------------------------- > >End testing: Dec 04 14:13 CST
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 918967
:
876248
|
876249
| 877241