* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
SEC_EXCLUDE on zero size .eh_frame.
This commit is contained in:
parent
f9e182823d
commit
b327f31f6d
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-01-04 Jie Zhang <jie.zhang@analog.com>
|
||||
|
||||
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
|
||||
SEC_EXCLUDE on zero size .eh_frame.
|
||||
|
||||
2006-12-31 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* bfd.c (bfd_record_phdr): Call bfd_zalloc instead of bfd_alloc
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue