LM32 linker segmentation faults
PR 24596 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault on NULL output_section. * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
This commit is contained in:
parent
c83004d526
commit
a0f6fd217f
3 changed files with 11 additions and 2 deletions
|
@ -1444,7 +1444,8 @@ lm32_elf_finish_dynamic_sections (bfd *output_bfd,
|
|||
FALSE, FALSE, TRUE);
|
||||
if (hend
|
||||
&& (hend->type == bfd_link_hash_defined
|
||||
|| hend->type == bfd_link_hash_defweak))
|
||||
|| hend->type == bfd_link_hash_defweak)
|
||||
&& hend->u.def.section->output_section != NULL)
|
||||
{
|
||||
bfd_vma value =
|
||||
lm32fdpic_fixup32_section (info)->output_section->vma
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue