* 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.
This commit is contained in:
Jakub Jelinek 2001-12-15 08:54:13 +00:00
parent a6c47c143a
commit 68f691521a
4 changed files with 81 additions and 30 deletions

View file

@ -3002,6 +3002,9 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
if (dynobj == NULL)
return true;
if (! _bfd_elf_maybe_strip_eh_frame_hdr (info))
return false;
if (elf_hash_table (info)->dynamic_sections_created)
{
struct elf_info_failed eif;