PR30824 internal error with -z pack-relative-relocs
commitf91074ebd8dc8077c9c778a42360e77a636dce5e
authorAlan Modra <amodra@gmail.com>
Tue, 16 Jan 2024 00:36:23 +0000 (16 11:06 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 17 Jan 2024 23:08:14 +0000 (18 09:38 +1030)
tree3470afe23d06c21b527f587609a910deba217644
parent16666ccc91295d1568c5c2cb0e7600694840dfd9
PR30824 internal error with -z pack-relative-relocs

This corrects a counting problem, where prior to relocate_section relr
encoded relative relocs were allowed when it was known they were on
even boundaries, but relocate_section can only put relative relocs
(non-relr) on eight byte boundaries.

PR 30824
* elf64-ppc.c (RELR_ALIGN): Define, use throughout.
(maybe_relr): New function, use throughout.
bfd/elf64-ppc.c