Aligned vs. unaligned ppc32 relocs
authorAlan Modra <amodra@gmail.com>
Wed, 14 Aug 2019 07:01:05 +0000 (16:31 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 16 Aug 2019 04:07:54 +0000 (13:37 +0930)
commit63f6e94fb3cc5b6a2cfb8c28686f150e7226ab7e
tree61b7056baab6cde1bcf791bb73ed2d27c26d40d9
parentd8f9e51c361dfb53de3eca8d84f8938380af60ff
Aligned vs. unaligned ppc32 relocs

Given R_PPC_ADDR32 or R_PPC_UADDR32 relocs, this patch generates
R_PPC_ADDR32 or R_PPC_UADDR32 dynamic relocs from either type
depending on whether r_offset is 4-byte aligned, and similarly for
R_PPC_ADDR16/R_PPC_UADDR16.

* elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
bfd/ChangeLog
bfd/elf32-ppc.c