* elflink.c (bfd_elf_discard_info): Look for next .eh_frame if
first one is zero size or discarded. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set most of glink_eh_frame contents here.. (ppc_elf_finish_dynamic_sections): ..rather than here. Just set offset to .glink.
This commit is contained in:
parent
5d4f7eb2f0
commit
7e01508c91
3 changed files with 73 additions and 50 deletions
|
@ -12489,10 +12489,10 @@ bfd_elf_discard_info (bfd *output_bfd, struct bfd_link_info *info)
|
|||
if (!info->relocatable)
|
||||
{
|
||||
eh = bfd_get_section_by_name (abfd, ".eh_frame");
|
||||
if (eh != NULL
|
||||
&& (eh->size == 0
|
||||
|| bfd_is_abs_section (eh->output_section)))
|
||||
eh = NULL;
|
||||
while (eh != NULL
|
||||
&& (eh->size == 0
|
||||
|| bfd_is_abs_section (eh->output_section)))
|
||||
eh = bfd_get_next_section_by_name (eh);
|
||||
}
|
||||
|
||||
stab = bfd_get_section_by_name (abfd, ".stab");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue