]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfin: Skip non SEC_ALLOC section for R_BFIN_FUNCDESC
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Jan 2021 13:23:58 +0000 (05:23 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Jan 2021 13:24:10 +0000 (05:24 -0800)
commit8ca9c7eb6773dd3cc9c536787b3489d36356ccf7
tree3084a04974633d66d8cd28c05682d67f203ada12
parent5a10699ff38a272864067da46a3cb349d072c16c
bfin: Skip non SEC_ALLOC section for R_BFIN_FUNCDESC

Linker should never generate dynamic relocations for relocations in
non-SEC_ALLOC section which has no impact on run-time behavior.  Such
relocations should be resolved to 0.

PR ld/26688
* elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
section for R_BFIN_FUNCDESC.
bfd/ChangeLog
bfd/elf32-bfin.c