aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-12-15 08:54:13 +0000
committerJakub Jelinek <jakub@redhat.com>2001-12-15 08:54:13 +0000
commit68f691521af7fe788646af93634bc03d68b57dfd (patch)
tree6ac445e908744198209cdfdcc26aec6a8db8d63b /bfd/elflink.h
parenta6c47c143af59ad4f499d25ed6713a3b9b4bb67a (diff)
downloadgdb-68f691521af7fe788646af93634bc03d68b57dfd.zip
gdb-68f691521af7fe788646af93634bc03d68b57dfd.tar.gz
gdb-68f691521af7fe788646af93634bc03d68b57dfd.tar.bz2
* 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.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index a5e348d..3117748 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -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;