summaryrefslogtreecommitdiff
path: root/bfd/elf-eh-frame.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2007-01-04 13:30:39 +0000
committerAlan Modra <amodra@bigpond.net.au>2007-01-04 13:30:39 +0000
commit458af5539aabcf3c16ad7cbdbefef5a9618e6416 (patch)
treef98812aa3dd2988907af6c70801d76d22f374afc /bfd/elf-eh-frame.c
parent1afd8d56a2bb9c0896867e7da9d9381531daf04b (diff)
downloadbinutils-redhat-458af5539aabcf3c16ad7cbdbefef5a9618e6416.tar.gz
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
SEC_EXCLUDE on zero size .eh_frame.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r--bfd/elf-eh-frame.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index 2aa61e14e2..acc75a8569 100644
--- a/bfd/elf-eh-frame.c
+++ b/bfd/elf-eh-frame.c
@@ -927,8 +927,6 @@ _bfd_elf_discard_section_eh_frame
/* Resize the sec as needed. */
sec->rawsize = sec->size;
sec->size = offset;
- if (sec->size == 0)
- sec->flags |= SEC_EXCLUDE;
free (ehbuf);
if (ecies)