nios2: Call _bfd_elf_maybe_set_textrel to set DF_TEXTREL
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Jun 2020 16:25:51 +0000 (09:25 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 3 Jun 2020 16:25:51 +0000 (09:25 -0700)
commitd4d8aee345704f7c39ebe9910cc08386708637b1
treef5991b22c9669e94e28b62f58f3329a15a7e8c48
parent58ee44efbc3798a8224e685aa47b224dc67efe7d
nios2: Call _bfd_elf_maybe_set_textrel to set DF_TEXTREL

Call _bfd_elf_maybe_set_textrel to set DF_TEXTREL by scanning dynamic
relocations in read-only section.

PR ld/26066
* elf32-nios2.c (nios2_elf32_size_dynamic_sections): Call
_bfd_elf_maybe_set_textrel to set DF_TEXTREL.
bfd/ChangeLog
bfd/elf32-nios2.c