]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Return the alignment required from c64_valid_cap_range
authorMatthew Malcomson <matthew.malcomson@arm.com>
Thu, 10 Feb 2022 18:15:47 +0000 (18:15 +0000)
committerMatthew Malcomson <matthew.malcomson@arm.com>
Thu, 10 Feb 2022 18:16:27 +0000 (18:16 +0000)
commit5a9e7a184dd05b707113ed5a2890241c8fa2be36
treeba4ac0b829b202077add0af1f7cbf8df6bcf99cc
parente10c835d8438317ae2f55648dfc14c11be8030f6
Return the alignment required from c64_valid_cap_range

We were specifying section alignment requirements based on the alignment
that the section base happened to have.  This sometimes resulted in very
strange alignment requests that were much greater than actually
required.
That is not usually a problem, but it does give unnecessary padding upon
re-adjustments due to changing the PCC bounds after individual sections
have been padded.

This patch adds an interface such that we return the alignment actually
required for exact capability bounds from c64_valid_cap_range.  We then
use that alignment as our alignment requirement on the sections which
have a section-sized symbol associated with them.
bfd/elfnn-aarch64.c