alpha: Warn DT_TEXTREL with -M
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 21 Apr 2020 12:20:11 +0000 (05:20 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 21 Apr 2020 12:20:23 +0000 (05:20 -0700)
commit1f7f2abbc31ee9e6d4faca58bef14d8ee8cb1bd2
tree44da9a8479c288ed3df24c23fb2a1ce24f57fd7a
parente04f33c09f85b936d544c78b1fa6b1134dfbcecd
alpha: Warn DT_TEXTREL with -M

This fixes:

FAIL: DT_TEXTREL map file warning

* elf64-alpha.c (alpha_elf_reloc_entry): Replace reltext with
sec.
(elf64_alpha_check_relocs): Set sec instead of reltext.  Warn
DT_TEXTREL with -M.
(elf64_alpha_calc_dynrel_sizes): Warn DT_TEXTREL with -M.
bfd/ChangeLog
bfd/elf64-alpha.c