]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[GOLD] powerpc DT_RELACOUNT
authorAlan Modra <amodra@gmail.com>
Thu, 22 Jun 2023 23:18:38 +0000 (08:48 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 23 Jun 2023 11:36:41 +0000 (21:06 +0930)
commit7ad52a2357f1d6eb886f548bdb4dae7e15d5f827
tree9ece543ec4665c5951418dc488abdb377b85dc86
parent9f6be18644299ae40cb3d2844d1d38797a112c3c
[GOLD] powerpc DT_RELACOUNT

DT_RELACOUNT was calculated incorrectly, and relative relocs not
sorted as they should be to the start of .rela.dyn, due to adding one
particular class of dynamic reloc using the wrong "add" method.

* powerpc.cc (Target_powerpc::Scan::global): Add relative
dyn relocs for ADDR64 and similar using add_global_relative.

(cherry picked from commit 027614abf11de9e79a335df4e1f9a788b7ab0063)
gold/powerpc.cc