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:41:08 +0000 (17:41 +0100)
commitcd331e1d7375d999dd4428ac85e40f4f77512298
tree7b53bcdefb9026856463a659660dd941358f1a71
parent999e7ed7a2bfd3a65468b383222d441a8071d8e4
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.
(cherry picked from commit b305015577bb92d3041e55a72ca8cd43f7c05748)
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