]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR30536, ppc64el gold linker produces unusable clang-16 binary
authorAlan Modra <amodra@gmail.com>
Wed, 21 Jun 2023 13:14:09 +0000 (22:44 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Jun 2023 13:34:24 +0000 (23:04 +0930)
commit03f49a0619c5598eea80511efef5a88c4f7bb293
tree79926b45944220392956caccc5b3d66d2a79232f
parent756b006e0db6bc0ea7013b790d98c12734fc0c77
PR30536, ppc64el gold linker produces unusable clang-16 binary

In commit 0961e631575b, the fix for PR30217, make_lplt_section and
make_brlt_section were changed to use rela_dyn_ rather than their own
separate dynamic reloc sections.  This fails miserably whenever brlt_
is needed for long branches, due to needing to iterate sizing and thus
reset brlt_ sizes.

PR 30536
PR 30217
* powerpc.cc (Target_powerpc::make_brlt_section): Don't use
rela_dyn_.

(cherry picked from commit dc808a2ebab337b5517add4c1aad298cf836c239)
gold/powerpc.cc