Delete _bfd_elf_get_dynamic_reloc_section
Removes the `_bfd_elf_get_dynamic_reloc_section` function as it is no longer needed.
Alan Modra proposes removing the _bfd_elf_get_dynamic_reloc_section function from the binutils library. The function is no longer necessary because _bfd_elf_make_dynamic_reloc_section now guarantees that elf_section_data(sec)->sreloc is set to the dynamic reloc section. The patch also updates several files to get the dynamic reloc section via elf_section_data.
In Details
_bfd_elf_get_dynamic_reloc_section was used to find the dynamic relocation section associated with a given section in ELF objects. This patch cleans up redundant code after a previous change made the dynamic relocation section directly accessible via elf_section_data. Affected files include target-specific relocation code in the BFD library.
For Context
This patch removes a function used to find dynamic relocation information in ELF files. ELF files contain code, data, and metadata, including relocation information that describes how to update addresses when the file is loaded into memory. A previous change made this information easier to access, so this patch removes the now-unnecessary function, simplifying the code and potentially improving performance. BFD is the library that handles reading and writing object files.