]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix tests after rebase of 36b6002396d onto 8504495ada4
authorMatthew Malcomson <matthew.malcomson@arm.com>
Fri, 4 Nov 2022 10:01:53 +0000 (10:01 +0000)
committerMatthew Malcomson <matthew.malcomson@arm.com>
Fri, 4 Nov 2022 10:03:08 +0000 (10:03 +0000)
commit816fc4e7c2e808384a3eae81844c76c908a1f8a3
treeabf78328039f0f6e8badf5f3e4077ced0a99a5e2
parentf8c6b621d4ed4cf68f595845f0222530f8d00de0
Fix tests after rebase of 36b6002396d onto 8504495ada4

When we started to account for function stubs when determining our
PCC bounds and section bounds we stopped including padding to make PCC
bounds precise in the highest section that should be included in the PCC
range.  Instead we put such padding *after* that section.

Our patch handling IFUNC's was written in parallel, and its testcases
were using the previous setup (where PCC padding was included in the
last section).  Hence when calculating a fragment that we should see in
our testcase we took the highest address in the last RELRO section.

After the application of both patches that approach no longer works.
With the new mechanism for padding there is no longer in general a
guarantee that any value in the section table could correspond to the
PCC bounds (since the alignment of the first writeable section could be
high enough such that the PCC bounds are somewhere between the end of
the last RELRO section and the start of the first WRITE section).
However for all these testcases the start of the first WRITE section
seems good enough to not be flaky.
ld/testsuite/ld-aarch64/morello-ifunc-a.d
ld/testsuite/ld-aarch64/morello-ifunc.d
ld/testsuite/ld-aarch64/morello-ifunc1-a.d
ld/testsuite/ld-aarch64/morello-ifunc1-b.d
ld/testsuite/ld-aarch64/morello-ifunc1.d
ld/testsuite/ld-aarch64/morello-ifunc4.d