Only give FDE encoding warnings if --eh-frame-hdr was specified.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 5 Dec 2019 21:20:12 +0000 (13:20 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 5 Dec 2019 21:20:12 +0000 (13:20 -0800)
commitbce7c9d6fbba85c351ee343843dc9adc285e44a3
tree04523c95a4a8546bbd9896dd64351b72ef79c792
parentb858499daf0a824a518bac8bc13495ad856ab10d
Only give FDE encoding warnings if --eh-frame-hdr was specified.

This bug was observed on nios2-linux-gnu with some C++ programs
linked with -pie or -shared.  The nios2 ABI doesn't include appropriate
relocations in this instance and GCC is also being patched not to pass
--eh-frame-hdr to the linker in those cases.

2019-12-05  Sandra Loosemore  <sandra@codesourcery.com>

        bfd/
        * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Make
        FDE encoding warning conditional.
bfd/ChangeLog
bfd/elf-eh-frame.c