mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
PR21910, segfault in common symbol override test when hash-style=gnu
PR 21910 * elflink.c (bfd_elf_final_link): Don't segfault when sections needed to define various dynamic tags have been discarded.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2017-08-07 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 21910
|
||||||
|
* elflink.c (bfd_elf_final_link): Don't segfault when sections
|
||||||
|
needed to define various dynamic tags have been discarded.
|
||||||
|
|
||||||
2017-08-07 Nick Clifton <nickc@redhat.com>
|
2017-08-07 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR 21884
|
PR 21884
|
||||||
|
@ -12342,7 +12342,7 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
|
|||||||
get_vma:
|
get_vma:
|
||||||
o = bfd_get_linker_section (dynobj, name);
|
o = bfd_get_linker_section (dynobj, name);
|
||||||
do_vma:
|
do_vma:
|
||||||
if (o == NULL)
|
if (o == NULL || bfd_is_abs_section (o->output_section))
|
||||||
{
|
{
|
||||||
_bfd_error_handler
|
_bfd_error_handler
|
||||||
(_("could not find section %s"), name);
|
(_("could not find section %s"), name);
|
||||||
|
Reference in New Issue
Block a user