* elf-bfd.h (_bfd_elf_maybe_strip_eh_frame_hdr): New prototype.
commit2e8607554b086ca9676ce540325691f2913d2e81
authorJakub Jelinek <jakub@redhat.com>
Sat, 15 Dec 2001 08:54:13 +0000 (15 08:54 +0000)
committerJakub Jelinek <jakub@redhat.com>
Sat, 15 Dec 2001 08:54:13 +0000 (15 08:54 +0000)
tree7c73d0f617a25acc98a3f21d0cff635dcbcfa459
parentb43aed32c0c3bdf2553ca391b91d8cafcc80421c
* elf-bfd.h (_bfd_elf_maybe_strip_eh_frame_hdr): New prototype.
* elf-eh-frame.c (struct eh_frame_hdr_info): Add strip.
(_bfd_elf_discard_section_eh_frame): Don't create .eh_frame_hdr
sec_info here.  Free ehbuf.
(_bfd_elf_discard_section_eh_frame_hdr): Don't size the section
if hdr_info->strip.
(_bfd_elf_maybe_strip_eh_frame_hdr): New.
* elflink.h (size_dynamic_sections): Call it.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf-eh-frame.c
bfd/elflink.h