]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix x86 ld testsuite fails with glibc < 2.28
authorAlan Modra <amodra@gmail.com>
Wed, 10 Jun 2020 03:38:15 +0000 (13:08 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 10 Jun 2020 12:49:07 +0000 (22:19 +0930)
commit84df1f9dcb8ef24cc38db4cc0939e99752c4e42b
treee86e56f70a0991e1b6a5313c88787109615b7974
parent7ab967941150b2f79fc089893bf51e6bb53d245b
Fix x86 ld testsuite fails with glibc < 2.28

* testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
(check_pr25749b): Add optional args.  Set expected pass file
from args.  Run -1b and -2a tests with passall.out.
* testsuite/ld-elf/passall.out: New file.
* testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
* testsuite/ld-elf/pr25749-2.c: Likewise.
* testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
regexp_diff to compare expected output from running binary.
ld/ChangeLog
ld/testsuite/ld-elf/linux-x86.exp
ld/testsuite/ld-elf/passall.out [new file with mode: 0644]
ld/testsuite/ld-elf/pr25749-1.c
ld/testsuite/ld-elf/pr25749-2.c
ld/testsuite/lib/ld-lib.exp