ld/testsuite: Adjust for ELF_MAXPAGESIZE 0x1000
authorHans-Peter Nilsson <hp@axis.com>
Wed, 11 Jan 2023 15:34:04 +0000 (16:34 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Thu, 12 Jan 2023 16:24:43 +0000 (17:24 +0100)
commitb305015577bb92d3041e55a72ca8cd43f7c05748
tree7e8f3bd4bc5713fff9e85e5ffa0f896be747f3c3
parentc777aa9765b6892c1ef7d7584385b9377071248e
ld/testsuite: Adjust for ELF_MAXPAGESIZE 0x1000

Many tests reflect a setting of ELF_MAXPAGESIZE to 64 KiB.
With ELF_MAXPAGESIZE changed to 4 KiB, layout is sometimes
different and symbols end up in other places.  Avoid churn
and regexpification of old test patterns by passing the
max-page-size setting active at the time.

ld/testsuite:

* testsuite/ld-arm/arm-elf.exp,
        testsuite/ld-arm/non-contiguous-arm2.d,
        testsuite/ld-arm/non-contiguous-arm3.d,
        testsuite/ld-arm/non-contiguous-arm5.d,
        testsuite/ld-arm/non-contiguous-arm6.d,
        testsuite/ld-arm/thumb-plt-got.d, testsuite/ld-arm/thumb-plt.d:
Pass -z max-page-size=0x10000 explicitly to test that rely on
that value in output-matching patterns.
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-arm/non-contiguous-arm2.d
ld/testsuite/ld-arm/non-contiguous-arm3.d
ld/testsuite/ld-arm/non-contiguous-arm5.d
ld/testsuite/ld-arm/non-contiguous-arm6.d
ld/testsuite/ld-arm/thumb-plt-got.d
ld/testsuite/ld-arm/thumb-plt.d