x86: Check if needed dynamic relocation section is created
Since elf_link_read_relocs_from_section aborts for bad relocation,
further relocations won't be processed and needed dynamic relocation
section won't be created. Skip dynamic relocation count if needed
dynamic relocation section hasn't been created.
PR ld/34448
* elfxx-x86.c (_bfd_x86_elf_late_size_sections): Skip dynamic
relocation count if needed dynamic relocation section hasn't been
created.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
1 file changed