]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Move DT_RELR tag setting to elflink.c
authorAlan Modra <amodra@gmail.com>
Thu, 13 Jan 2022 00:29:30 +0000 (10:59 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 13 Jan 2022 03:42:43 +0000 (14:12 +1030)
commit9c3d7d9b7ed5f442fea1ddcb41fc1e0488f51588
treeb235b4cc382656f2fdc9e92832af28f08579b271
parent0ae1246717ffbabda5d54be8def95f4424147c0f
Move DT_RELR tag setting to elflink.c

This makes the code setting DT_RELR tags generally available.  Many
targets will be able to use the defaults.  Those that can't should set
up sh_entsize for .relr.dyn output section before reaching the dynamic
tag code in bfd_elf_final_link.

* elflink.c (bfd_elf_final_link): Set up DT_RELR tags and sh_entsize.
* elfxx-x86.c (_bfd_x86_elf_finish_dynamic_sections): Don't do any
of that here.
bfd/elflink.c
bfd/elfxx-x86.c