]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
nds32, sh, kvx: DT_JMPREL/DT_PLTRELSZ
authorAlan Modra <amodra@gmail.com>
Thu, 24 Aug 2023 01:22:19 +0000 (10:52 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 24 Aug 2023 06:24:39 +0000 (15:54 +0930)
commitfb9b7fbf17f50fcfabf6e3d7d06a93e1f17c52b7
treebbb1b44838dd32de708ae59886cddda29e7121d6
parent8eb7b3a7dbc24de0c9c938f00f2387351045cbdf
nds32, sh, kvx: DT_JMPREL/DT_PLTRELSZ

As commit fa4f2d46f9 did for x86, there a few other targets that
wrongly use the output section rather than the dynamic section for
DT_JMPREL and others.

* elfnn-kvx.c (elfNN_kvx_finish_dynamic_sections): Use input
section for DT_JMPREL.
* elf32-sh.c (sh_elf_finish_dynamic_sections): Use input
section for DT_JMPREL and DT_PLTRELSZ.
* elf32-nds32.c (nds32_elf_finish_dynamic_sections): Likewise,
and for DT_PLTGOT and when adjusting DT_RELA.
bfd/elf32-nds32.c
bfd/elf32-sh.c
bfd/elfnn-kvx.c